From 51ef1e110aef75dac84517e9d1d895ca92c7e426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Thu, 11 Sep 2025 12:50:29 +0200 Subject: [PATCH] Remove the use of six package. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The package aspires to compatibility with Python >= 3.6, so compatibility with Python 2 is not needed any more. The commit strive to be completely functional neutral, no other changes were made in the code. Fixes: https://github.com/oracle/oci-cli/issues/984 Signed-off-by: Matěj Cepl --- THIRD_PARTY_LICENSES.txt | 26 - requirements.txt | 1 - .../generated/accessgovernancecp_cli.py | 9 +- .../applicationdependencymanagement_cli.py | 73 +- .../generated/aidataplatform_cli.py | 19 +- .../generated/aiservicedocument_cli.py | 41 +- .../generated/aiservicelanguage_cli.py | 45 +- .../generated/aiservicespeech_cli.py | 33 +- .../generated/aiservicevision_cli.py | 77 +- .../generated/analytics_cli.py | 73 +- .../generated/announcement_cli.py | 9 +- .../generated/announcementsubscription_cli.py | 19 +- .../generated/announcementspreferences_cli.py | 5 +- .../oci_cli_service/generated/service_cli.py | 1 - .../generated/apiplatform_cli.py | 15 +- .../generated/apimetadata_cli.py | 3 +- .../generated/privilegedapicontrol_cli.py | 9 +- .../generated/privilegedapirequests_cli.py | 11 +- .../generated/privilegedapiworkrequest_cli.py | 9 +- .../generated/apigateway_cli.py | 41 +- .../generated/deployment_cli.py | 13 +- .../oci_cli_gateway/generated/gateway_cli.py | 17 +- .../generated/subscribers_cli.py | 13 +- .../generated/usageplans_cli.py | 13 +- .../generated/workrequests_cli.py | 9 +- .../oci_cli_config/generated/config_cli.py | 27 +- .../generated/apmdomain_cli.py | 23 +- .../generated/apmsynthetic_cli.py | 69 +- .../generated/attributes_cli.py | 1 - .../src/oci_cli_query/generated/query_cli.py | 1 - .../generated/scheduledquery_cli.py | 7 +- .../src/oci_cli_trace/generated/trace_cli.py | 13 +- .../generated/appmgmtcontrol_cli.py | 13 +- .../generated/artifacts_cli.py | 59 +- .../src/oci_cli_audit/generated/audit_cli.py | 1 - .../generated/autoscaling_cli.py | 37 +- .../oci_cli_bastion/generated/bastion_cli.py | 21 +- .../generated/batchcomputing_cli.py | 67 +- .../bds/src/oci_cli_bds/generated/bds_cli.py | 363 ++++--- .../generated/blockchainplatform_cli.py | 61 +- .../oci_cli_budget/generated/budget_cli.py | 23 +- .../oci_cli_cost_ad/generated/costad_cli.py | 21 +- .../generated/capacitymanagement_cli.py | 45 +- .../generated/demandsignal_cli.py | 13 +- .../generated/internaldemandsignal_cli.py | 13 +- .../generated/certificates_cli.py | 11 +- .../generated/certificatesmanagement_cli.py | 81 +- .../generated/incident_cli.py | 7 +- .../oci_cli_common/generated/common_cli.py | 9 +- .../discovery_cli_extended.py | 3 +- .../generated/discovery_cli.py | 27 +- .../generated/inventory_cli.py | 35 +- .../inventory_cli_extended.py | 3 +- .../generated/ocbagentsvc_cli.py | 37 +- .../cloud_guard_cli_extended.py | 9 +- .../generated/cloudguard_cli.py | 261 +++-- .../generated/migration_cli.py | 69 +- .../migration_cli_extended.py | 3 +- .../generated/diagnosis_cli.py | 23 +- .../generated/clusterplacementgroupscp_cli.py | 21 +- .../generated/computecloudatcustomer_cli.py | 17 +- .../generated/computeinstanceagent_cli.py | 7 +- .../oci_cli_plugin/generated/plugin_cli.py | 7 +- .../generated/pluginconfig_cli.py | 1 - .../containerengine_cli_extended.py | 5 +- .../generated/containerengine_cli.py | 105 +- .../generated/containerinstance_cli.py | 27 +- .../generated/containerregistry_cli.py | 1 - .../blockstorage_cli_extended.py | 5 +- .../generated/blockstorage_cli.py | 83 +- .../oci_cli_compute/compute_cli_extended.py | 7 +- .../oci_cli_compute/generated/compute_cli.py | 213 ++-- .../generated/computemanagement_cli.py | 63 +- .../generated/virtualnetwork_cli.py | 411 ++++---- .../virtualnetwork_cli_extended.py | 5 +- .../oci_cli_cost_ad/generated/costad_cli.py | 21 +- .../generated/dashboard_cli.py | 11 +- .../generated/dashboardgroup_cli.py | 9 +- .../generated/datacatalog_cli.py | 617 ++++++----- .../generated/dataflow_cli.py | 75 +- .../generated/dataintegration_cli.py | 989 +++++++++--------- .../generated/datalabelingmanagement_cli.py | 29 +- .../generated/datalabeling_cli.py | 25 +- .../generated/datasafe_cli.py | 639 ++++++----- .../datascience_cli_extended.py | 74 +- .../generated/datascience_cli.py | 315 +++--- .../oci_cli_database/database_cli_extended.py | 19 +- .../generated/database_cli.py | 881 ++++++++-------- .../dbmanagement_cli_extended.py | 5 +- .../generated/dbmanagement_cli.py | 845 ++++++++------- .../generated/diagnosability_cli.py | 9 +- .../generated/managedmysqldatabases_cli.py | 25 +- .../oci_cli_perfhub/generated/perfhub_cli.py | 3 +- .../generated/sqltuning_cli.py | 217 ++-- .../generated/databasemigration_cli.py | 211 ++-- .../generated/databasetools_cli.py | 135 ++- .../generated/databasetoolsruntime_cli.py | 237 +++-- .../generated/baseinfra_cli.py | 63 +- .../generated/dblifecyclemanagement_cli.py | 9 +- .../generated/dbmulticloudawsprovider_cli.py | 23 +- .../generated/dbmulticloudgcpprovider_cli.py | 25 +- .../multicloudresourcediscovery_cli.py | 9 +- .../oracledbazureblobcontainer_cli.py | 9 +- .../generated/oracledbazureblobmount_cli.py | 9 +- .../generated/oracledbazureconnector_cli.py | 13 +- .../generated/oracledbazurekey_cli.py | 3 +- .../generated/oracledbazurevault_cli.py | 13 +- .../oracledbazurevaultassociation_cli.py | 11 +- .../generated/workrequest_cli.py | 9 +- .../generated/instance_cli.py | 17 +- .../generated/delegateaccesscontrol_cli.py | 39 +- .../generated/workrequest_cli.py | 7 +- .../generated/occdemandsignal_cli.py | 11 +- .../generated/occmetricalarm_cli.py | 7 +- .../generated/desktopservice_cli.py | 35 +- .../src/oci_cli_devops/devops_cli_extended.py | 5 +- .../oci_cli_devops/generated/devops_cli.py | 379 ++++--- .../src/oci_cli_stack/generated/stack_cli.py | 21 +- .../generated/disasterrecovery_cli.py | 61 +- .../distributedautonomousdbservice_cli.py | 45 +- ...distributeddbprivateendpointservice_cli.py | 11 +- .../generated/distributeddbservice_cli.py | 41 +- .../distributeddbworkrequestservice_cli.py | 7 +- .../distributedautonomousdbservice_cli.py | 45 +- ...distributeddbprivateendpointservice_cli.py | 13 +- .../generated/distributeddbservice_cli.py | 41 +- .../distributeddbworkrequestservice_cli.py | 7 +- .../dns/src/oci_cli_dns/generated/dns_cli.py | 119 ++- .../generated/emwarehouse_cli.py | 21 +- .../src/oci_cli_email/generated/email_cli.py | 67 +- .../oci_cli_email_dp/generated/emaildp_cli.py | 1 - .../oci_cli_events/generated/events_cli.py | 9 +- .../generated/filestorage_cli.py | 121 ++- .../generated/fleetappsmanagement_cli.py | 81 +- .../generated/fleetappsmanagementadmin_cli.py | 55 +- .../fleetappsmanagementcatalog_cli.py | 15 +- ...leetappsmanagementmaintenancewindow_cli.py | 7 +- .../fleetappsmanagementoperations_cli.py | 63 +- .../fleetappsmanagementprovision_cli.py | 9 +- .../fleetappsmanagementrunbooks_cli.py | 43 +- .../fleetappsmanagementworkrequest_cli.py | 7 +- .../generated/fleetsoftwareupdate_cli.py | 119 ++- .../generated/functionsinvoke_cli.py | 3 +- .../generated/functionsmanagement_cli.py | 39 +- .../generated/fusionapplications_cli.py | 241 +++-- .../generated/guardeddatapipeline_cli.py | 23 +- .../generated/generativeai_cli.py | 145 ++- .../generated/generativeaiagent_cli.py | 77 +- .../generated/generativeaiagentruntime_cli.py | 19 +- .../enrichmentjob_cli_extended.py | 5 +- .../generated/enrichmentjob_cli.py | 19 +- .../generated/generatesql_cli.py | 7 +- .../generated/generativeaiinference_cli.py | 1 - .../generated/genericartifactscontent_cli.py | 15 +- .../generated/goldengate_cli.py | 257 +++-- .../generated/governancerule_cli.py | 25 +- .../generated/workrequest_cli.py | 9 +- .../generated/healthchecks_cli.py | 21 +- .../generated/identity_cli.py | 275 +++-- .../oci_cli_identity/identity_cli_extended.py | 15 +- .../generated/dataplane_cli.py | 1 - .../generated/identitydomains_cli.py | 351 ++++--- .../generated/integrationinstance_cli.py | 47 +- .../iot/src/oci_cli_iot/generated/iot_cli.py | 87 +- .../iot/src/oci_cli_iot/iot_cli_extended.py | 5 +- .../generated/javamanagementservice_cli.py | 193 ++-- .../generated/javadownload_cli.py | 29 +- .../generated/jmsutils_cli.py | 19 +- .../src/oci_cli_ekm/generated/ekm_cli.py | 7 +- .../generated/kmscrypto_cli.py | 1 - .../generated/kmshsmcluster_cli.py | 31 +- .../generated/kmsmanagement_cli.py | 41 +- .../kms_management_cli_extended.py | 11 +- .../generated/kmsvault_cli.py | 29 +- .../generated/licensemanager_cli.py | 13 +- .../oci_cli_limits/generated/limits_cli.py | 5 +- .../oci_cli_quotas/generated/quotas_cli.py | 11 +- .../generated/limitsincrease_cli.py | 15 +- .../generated/loadbalancer_cli.py | 181 ++-- .../oci_cli_load_balancer/lb_cli_extended.py | 1 - .../oci_cli_lockbox/generated/lockbox_cli.py | 33 +- .../generated/loganalytics_cli.py | 583 ++++++----- .../generated/loggingmanagement_cli.py | 57 +- .../oci_cli_logging/generated/logging_cli.py | 3 +- .../generated/logsearch_cli.py | 1 - .../generated/lustrefilestorage_cli.py | 41 +- .../generated/kafkacluster_cli.py | 61 +- .../generated/managementagent_cli.py | 53 +- .../generated/dashxapis_cli.py | 23 +- .../management_dashboard_cli_extended.py | 3 +- .../oci_cli_account/generated/account_cli.py | 1 - .../generated/marketplace_cli.py | 51 +- .../generated/attachment_cli.py | 17 +- .../src/oci_cli_offer/generated/offer_cli.py | 13 +- .../generated/offerquote_cli.py | 15 +- .../generated/quoteattachment_cli.py | 17 +- .../generated/marketplacepublisher_cli.py | 141 ++- .../generated/mediaservices_cli.py | 99 +- .../generated/mediastream_cli.py | 1 - .../generated/macdevice_cli.py | 11 +- .../generated/macorder_cli.py | 17 +- .../generated/modeldeployment_cli.py | 5 +- .../modeldeployment_cli_extended.py | 5 +- .../generated/monitoring_cli.py | 21 +- .../generated/metadata_cli.py | 1 - .../generated/multicloudsmetadata_cli.py | 3 +- .../generated/multicloudalerts_cli.py | 1 - .../generated/multicloudpolicies_cli.py | 1 - .../generated/multicloudresources_cli.py | 1 - .../generated/multicloudsubscriptions_cli.py | 1 - .../generated/omhubnetworkanchor_cli.py | 3 +- .../generated/omhubresourceanchor_cli.py | 3 +- .../generated/bluegreendeployments_cli.py | 11 +- .../generated/channels_cli.py | 19 +- .../generated/dbbackups_cli.py | 15 +- .../db_system_cli_extended.py | 5 +- .../generated/dbsystem_cli.py | 39 +- .../generated/mysqlaas_cli.py | 7 +- .../generated/replicas_cli.py | 7 +- .../generated/workrequests_cli.py | 9 +- .../generated/networkfirewall_cli.py | 311 +++--- .../generated/networkloadbalancer_cli.py | 101 +- .../src/oci_cli_nosql/generated/nosql_cli.py | 43 +- .../generated/objectstorage_cli.py | 229 ++-- .../get_object_tasks.py | 7 +- .../objectstorage_cli_extended.py | 13 +- .../test_object_storage_bulk_operations.py | 5 +- .../tests/unit/test_get_object_tasks.py | 9 +- .../generated/oceinstance_cli.py | 15 +- .../generated/occmetrics_cli.py | 3 +- .../src/oci_cli_byol/generated/byol_cli.py | 11 +- .../generated/byolallocation_cli.py | 9 +- .../oci_cli_cluster/generated/cluster_cli.py | 7 +- .../generated/datastore_cli.py | 11 +- .../generated/datastorecluster_cli.py | 21 +- .../generated/esxihost_cli.py | 13 +- .../generated/managementappliance_cli.py | 7 +- .../src/oci_cli_sddc/generated/sddc_cli.py | 19 +- .../generated/workrequest_cli.py | 7 +- .../generated/management_cli.py | 291 +++--- .../oda/src/oci_cli_oda/generated/oda_cli.py | 35 +- .../generated/odapackage_cli.py | 21 +- .../generated/billingschedule_cli.py | 1 - .../generated/commitment_cli.py | 3 +- .../generated/computedusage_cli.py | 3 +- .../generated/invoicesummary_cli.py | 1 - .../generated/organizationsubscription_cli.py | 1 - .../generated/ratecard_cli.py | 1 - .../generated/subscribedservice_cli.py | 3 +- .../generated/subscription_cli.py | 1 - .../generated/notificationcontrolplane_cli.py | 9 +- .../generated/notificationdataplane_cli.py | 17 +- .../generated/opainstance_cli.py | 21 +- .../generated/opensearchcluster_cli.py | 25 +- .../generated/opensearchclusterbackup_cli.py | 7 +- .../opensearchclusterpipeline_cli.py | 7 +- .../generated/accessrequests_cli.py | 19 +- .../generated/operatoractions_cli.py | 3 +- .../generated/operatorcontrol_cli.py | 9 +- .../operatorcontrolassignment_cli.py | 13 +- .../generated/operationsinsights_cli.py | 325 +++--- .../generated/optimizer_cli.py | 29 +- .../generated/dynamicset_cli.py | 19 +- .../src/oci_cli_event/generated/event_cli.py | 15 +- .../generated/lifecycleenvironment_cli.py | 21 +- .../generated/managedinstance_cli.py | 67 +- .../generated/managedinstancegroup_cli.py | 53 +- .../generated/managementstation_cli.py | 19 +- .../generated/onboarding_cli.py | 27 +- .../generated/reportingmanagedinstance_cli.py | 3 +- .../generated/scheduledjob_cli.py | 11 +- .../generated/softwaresource_cli.py | 63 +- .../generated/workrequest_cli.py | 9 +- .../generated/addressruleservice_cli.py | 3 +- .../generated/addressservice_cli.py | 3 +- .../generated/invoiceservice_cli.py | 9 +- .../generated/subscriptionservice_cli.py | 9 +- .../generated/billingschedule_cli.py | 1 - .../generated/organizationsubscription_cli.py | 1 - .../generated/commitment_cli.py | 3 +- .../generated/ratecard_cli.py | 1 - .../generated/subscription_cli.py | 1 - .../generated/computedusage_cli.py | 3 +- .../generated/privateserviceaccess_cli.py | 17 +- .../generated/postgresql_cli.py | 79 +- .../src/oci_cli_queue/generated/queue_cli.py | 21 +- .../generated/queueadmin_cli.py | 23 +- .../generated/databaserecovery_cli.py | 47 +- .../generated/ocicachebackup_cli.py | 11 +- .../generated/ocicacheconfigset_cli.py | 11 +- .../generated/ocicachedefaultconfigset_cli.py | 3 +- .../generated/ocicacheengineoptions_cli.py | 1 - .../generated/ocicacheuser_cli.py | 15 +- .../generated/rediscluster_cli.py | 25 +- .../generated/redisidentity_cli.py | 3 +- .../generated/monitoredregion_cli.py | 5 +- .../resourceanalyticsinstance_cli.py | 21 +- .../generated/tenancyattachment_cli.py | 7 +- .../generated/resourcemanager_cli.py | 103 +- .../resourcemanager_cli_extended.py | 5 +- .../generated/schedule_cli.py | 21 +- .../generated/resourcesearch_cli.py | 3 +- .../rover/src/oci_cli_rover/rover_utils.py | 11 +- .../generated/roverbundle_cli.py | 17 +- .../generated/rovercluster_cli.py | 13 +- .../rovercluster_cli_extended.py | 1 - .../rovercluster_utils.py | 11 +- .../generated/roverentitlement_cli.py | 9 +- .../generated/rovernode_cli.py | 27 +- .../rovernode_cli_extended.py | 15 +- .../src/oci_cli_shape/generated/shape_cli.py | 1 - .../generated/workrequests_cli.py | 9 +- .../generated/connectorplugins_cli.py | 3 +- .../generated/serviceconnector_cli.py | 39 +- .../oci_cli_secrets/generated/secrets_cli.py | 5 +- .../generated/securityattribute_cli.py | 45 +- .../generated/partnerintegeration_cli.py | 3 +- .../generated/subscription_cli.py | 21 +- .../generated/servicecatalog_cli.py | 35 +- .../generated/servicemanagerproxy_cli.py | 3 +- .../generated/stackmonitoring_cli.py | 151 ++- .../oci_cli_stream/generated/stream_cli.py | 21 +- .../generated/streamadmin_cli.py | 31 +- .../oci_cli_domain/generated/domain_cli.py | 7 +- .../generated/domaingovernance_cli.py | 7 +- .../generated/governance_cli.py | 9 +- .../src/oci_cli_link/generated/link_cli.py | 7 +- .../generated/linkfeatures_cli.py | 1 - .../oci_cli_orders/generated/orders_cli.py | 5 +- .../generated/organization_cli.py | 19 +- .../generated/recipientinvitation_cli.py | 9 +- .../generated/senderinvitation_cli.py | 7 +- .../generated/subscription_cli.py | 15 +- .../generated/workrequest_cli.py | 7 +- .../generated/threatintel_cli.py | 3 +- .../generated/resources_cli.py | 1 - .../oci_cli_rewards/generated/rewards_cli.py | 13 +- .../generated/usagelimits_cli.py | 1 - .../generated/usageapi_cli.py | 49 +- .../oci_cli_vaults/generated/vaults_cli.py | 37 +- .../generated/vbsinstance_cli.py | 15 +- .../generated/vbinstance_cli.py | 27 +- .../generated/vnmonitoring_cli.py | 17 +- .../generated/vulnerabilityscanning_cli.py | 83 +- .../waa/src/oci_cli_waa/generated/waa_cli.py | 21 +- .../generated/workrequest_cli.py | 7 +- .../generated/redirect_cli.py | 9 +- .../src/oci_cli_waas/generated/waas_cli.py | 121 ++- .../src/oci_cli_waas/waas_cli_extended.py | 3 +- .../waf/src/oci_cli_waf/generated/waf_cli.py | 35 +- .../weblogicmanagementservice_cli.py | 93 +- ...logicmanagementserviceconfiguration_cli.py | 1 - .../generated/workrequest_cli.py | 7 +- .../zpr/src/oci_cli_zpr/generated/zpr_cli.py | 19 +- setup.py | 1 - src/oci_cli/aliasing/parameter_alias.py | 5 +- src/oci_cli/cli_root.py | 3 +- src/oci_cli/cli_session.py | 7 +- src/oci_cli/cli_util.py | 35 +- src/oci_cli/custom_types/cli_datetime.py | 3 +- .../object_storage_bulk_operation_output.py | 10 +- src/oci_cli/formatting.py | 3 +- src/oci_cli/json_skeleton_utils.py | 5 +- src/oci_cli/raw_request_cli.py | 3 +- tests/test_cli_setup.py | 12 - tests/test_config_container.py | 3 +- tests/test_json_skeleton_command_coverage.py | 7 +- tests/test_root_options.py | 3 +- tests/util.py | 13 +- 369 files changed, 8541 insertions(+), 8952 deletions(-) diff --git a/THIRD_PARTY_LICENSES.txt b/THIRD_PARTY_LICENSES.txt index 04a60c62f..096f58fe4 100644 --- a/THIRD_PARTY_LICENSES.txt +++ b/THIRD_PARTY_LICENSES.txt @@ -1235,32 +1235,6 @@ LICENSE: https://github.com/rholder/retrying/blob/master/LICENSE =============================================================================== -six -============= -LICENSE: https://github.com/benjaminp/six/blob/master/LICENSE - -Copyright (c) 2010-2020 Benjamin Peterson - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -=============================================================================== - - terminaltables ============== LICENSE: https://github.com/Robpol86/terminaltables/blob/master/LICENSE diff --git a/requirements.txt b/requirements.txt index 1fdd5291b..8fce231a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -42,7 +42,6 @@ pytz>=2016.10,<=2026.2 requests==2.27.0; python_version == '3.6' requests==2.31.0; python_version == '3.7' requests>=2.32.4,<3.0.0; python_version > '3.7' -six>=1.15.0,<2.0.0 sphinx==3.3.0; python_version < '3.7' sphinx==5.3.0; python_version >= '3.7' and python_version < '3.13' sphinx==6.2.1; python_version == '3.13' diff --git a/services/access_governance_cp/src/oci_cli_access_governance_cp/generated/accessgovernancecp_cli.py b/services/access_governance_cp/src/oci_cli_access_governance_cp/generated/accessgovernancecp_cli.py index 9b700b6f0..5737868a2 100644 --- a/services/access_governance_cp/src/oci_cli_access_governance_cp/generated/accessgovernancecp_cli.py +++ b/services/access_governance_cp/src/oci_cli_access_governance_cp/generated/accessgovernancecp_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -56,7 +55,7 @@ def governance_instance_group(): @cli_util.wrap_exceptions def change_governance_instance_compartment(ctx, from_json, governance_instance_id, compartment_id, if_match): - if isinstance(governance_instance_id, six.string_types) and len(governance_instance_id.strip()) == 0: + if isinstance(governance_instance_id, str) and len(governance_instance_id.strip()) == 0: raise click.UsageError('Parameter --governance-instance-id cannot be whitespace or empty string') kwargs = {} @@ -163,7 +162,7 @@ def create_governance_instance(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_governance_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, governance_instance_id, if_match): - if isinstance(governance_instance_id, six.string_types) and len(governance_instance_id.strip()) == 0: + if isinstance(governance_instance_id, str) and len(governance_instance_id.strip()) == 0: raise click.UsageError('Parameter --governance-instance-id cannot be whitespace or empty string') kwargs = {} @@ -222,7 +221,7 @@ def delete_governance_instance(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_governance_instance(ctx, from_json, governance_instance_id): - if isinstance(governance_instance_id, six.string_types) and len(governance_instance_id.strip()) == 0: + if isinstance(governance_instance_id, str) and len(governance_instance_id.strip()) == 0: raise click.UsageError('Parameter --governance-instance-id cannot be whitespace or empty string') kwargs = {} @@ -336,7 +335,7 @@ def list_governance_instances(ctx, from_json, all_pages, page_size, compartment_ @cli_util.wrap_exceptions def update_governance_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, governance_instance_id, display_name, description, license_type, defined_tags, freeform_tags, if_match): - if isinstance(governance_instance_id, six.string_types) and len(governance_instance_id.strip()) == 0: + if isinstance(governance_instance_id, str) and len(governance_instance_id.strip()) == 0: raise click.UsageError('Parameter --governance-instance-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: diff --git a/services/adm/src/oci_cli_application_dependency_management/generated/applicationdependencymanagement_cli.py b/services/adm/src/oci_cli_application_dependency_management/generated/applicationdependencymanagement_cli.py index 081b6968f..a107bfdb4 100644 --- a/services/adm/src/oci_cli_application_dependency_management/generated/applicationdependencymanagement_cli.py +++ b/services/adm/src/oci_cli_application_dependency_management/generated/applicationdependencymanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -93,7 +92,7 @@ def vulnerability_audit_group(): @cli_util.wrap_exceptions def activate_remediation_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, if_match): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -148,7 +147,7 @@ def activate_remediation_recipe(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def cancel_remediation_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_run_id, if_match): - if isinstance(remediation_run_id, six.string_types) and len(remediation_run_id.strip()) == 0: + if isinstance(remediation_run_id, str) and len(remediation_run_id.strip()) == 0: raise click.UsageError('Parameter --remediation-run-id cannot be whitespace or empty string') kwargs = {} @@ -197,7 +196,7 @@ def cancel_remediation_run(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -226,7 +225,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_knowledge_base_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, knowledge_base_id, compartment_id, if_match): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') kwargs = {} @@ -287,7 +286,7 @@ def change_knowledge_base_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_remediation_recipe_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, compartment_id, if_match): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -345,7 +344,7 @@ def change_remediation_recipe_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_remediation_run_compartment(ctx, from_json, remediation_run_id, compartment_id, if_match): - if isinstance(remediation_run_id, six.string_types) and len(remediation_run_id.strip()) == 0: + if isinstance(remediation_run_id, str) and len(remediation_run_id.strip()) == 0: raise click.UsageError('Parameter --remediation-run-id cannot be whitespace or empty string') kwargs = {} @@ -376,7 +375,7 @@ def change_remediation_run_compartment(ctx, from_json, remediation_run_id, compa @cli_util.wrap_exceptions def change_vulnerability_audit_compartment(ctx, from_json, vulnerability_audit_id, compartment_id, if_match): - if isinstance(vulnerability_audit_id, six.string_types) and len(vulnerability_audit_id.strip()) == 0: + if isinstance(vulnerability_audit_id, str) and len(vulnerability_audit_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-audit-id cannot be whitespace or empty string') kwargs = {} @@ -1686,7 +1685,7 @@ def create_vulnerability_audit_external_resource_vulnerability_audit_source(ctx, @cli_util.wrap_exceptions def deactivate_remediation_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, if_match): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -1742,7 +1741,7 @@ def deactivate_remediation_recipe(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_knowledge_base(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, knowledge_base_id, if_match): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') kwargs = {} @@ -1798,7 +1797,7 @@ def delete_knowledge_base(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_remediation_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, if_match): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -1854,7 +1853,7 @@ def delete_remediation_recipe(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_remediation_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_run_id, if_match): - if isinstance(remediation_run_id, six.string_types) and len(remediation_run_id.strip()) == 0: + if isinstance(remediation_run_id, str) and len(remediation_run_id.strip()) == 0: raise click.UsageError('Parameter --remediation-run-id cannot be whitespace or empty string') kwargs = {} @@ -1918,7 +1917,7 @@ def delete_remediation_run(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_vulnerability_audit(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vulnerability_audit_id, if_match): - if isinstance(vulnerability_audit_id, six.string_types) and len(vulnerability_audit_id.strip()) == 0: + if isinstance(vulnerability_audit_id, str) and len(vulnerability_audit_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-audit-id cannot be whitespace or empty string') kwargs = {} @@ -1977,7 +1976,7 @@ def delete_vulnerability_audit(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_knowledge_base(ctx, from_json, knowledge_base_id): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') kwargs = {} @@ -1999,7 +1998,7 @@ def get_knowledge_base(ctx, from_json, knowledge_base_id): @cli_util.wrap_exceptions def get_remediation_recipe(ctx, from_json, remediation_recipe_id): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -2021,7 +2020,7 @@ def get_remediation_recipe(ctx, from_json, remediation_recipe_id): @cli_util.wrap_exceptions def get_remediation_run(ctx, from_json, remediation_run_id): - if isinstance(remediation_run_id, six.string_types) and len(remediation_run_id.strip()) == 0: + if isinstance(remediation_run_id, str) and len(remediation_run_id.strip()) == 0: raise click.UsageError('Parameter --remediation-run-id cannot be whitespace or empty string') kwargs = {} @@ -2044,10 +2043,10 @@ def get_remediation_run(ctx, from_json, remediation_run_id): @cli_util.wrap_exceptions def get_stage(ctx, from_json, remediation_run_id, stage_type): - if isinstance(remediation_run_id, six.string_types) and len(remediation_run_id.strip()) == 0: + if isinstance(remediation_run_id, str) and len(remediation_run_id.strip()) == 0: raise click.UsageError('Parameter --remediation-run-id cannot be whitespace or empty string') - if isinstance(stage_type, six.string_types) and len(stage_type.strip()) == 0: + if isinstance(stage_type, str) and len(stage_type.strip()) == 0: raise click.UsageError('Parameter --stage-type cannot be whitespace or empty string') kwargs = {} @@ -2070,7 +2069,7 @@ def get_stage(ctx, from_json, remediation_run_id, stage_type): @cli_util.wrap_exceptions def get_vulnerability_audit(ctx, from_json, vulnerability_audit_id): - if isinstance(vulnerability_audit_id, six.string_types) and len(vulnerability_audit_id.strip()) == 0: + if isinstance(vulnerability_audit_id, str) and len(vulnerability_audit_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-audit-id cannot be whitespace or empty string') kwargs = {} @@ -2092,7 +2091,7 @@ def get_vulnerability_audit(ctx, from_json, vulnerability_audit_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2125,7 +2124,7 @@ def list_application_dependency_recommendations(ctx, from_json, all_pages, page_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(remediation_run_id, six.string_types) and len(remediation_run_id.strip()) == 0: + if isinstance(remediation_run_id, str) and len(remediation_run_id.strip()) == 0: raise click.UsageError('Parameter --remediation-run-id cannot be whitespace or empty string') kwargs = {} @@ -2194,7 +2193,7 @@ def list_application_dependency_vulnerabilities(ctx, from_json, all_pages, page_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vulnerability_audit_id, six.string_types) and len(vulnerability_audit_id.strip()) == 0: + if isinstance(vulnerability_audit_id, str) and len(vulnerability_audit_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-audit-id cannot be whitespace or empty string') kwargs = {} @@ -2458,7 +2457,7 @@ def list_stages(ctx, from_json, all_pages, page_size, remediation_run_id, type, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(remediation_run_id, six.string_types) and len(remediation_run_id.strip()) == 0: + if isinstance(remediation_run_id, str) and len(remediation_run_id.strip()) == 0: raise click.UsageError('Parameter --remediation-run-id cannot be whitespace or empty string') kwargs = {} @@ -2518,7 +2517,7 @@ def list_vulnerabilities(ctx, from_json, all_pages, page_size, vulnerability_aud if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vulnerability_audit_id, six.string_types) and len(vulnerability_audit_id.strip()) == 0: + if isinstance(vulnerability_audit_id, str) and len(vulnerability_audit_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-audit-id cannot be whitespace or empty string') kwargs = {} @@ -2650,7 +2649,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2707,7 +2706,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2825,7 +2824,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_knowledge_base(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, knowledge_base_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2907,7 +2906,7 @@ def update_knowledge_base(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_remediation_recipe(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, display_name, scm_configuration, verify_configuration, detect_configuration, network_configuration, knowledge_base_id, is_run_triggered_on_kb_change, freeform_tags, defined_tags, if_match): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') if not force: if scm_configuration or verify_configuration or detect_configuration or network_configuration or freeform_tags or defined_tags: @@ -3010,7 +3009,7 @@ def update_remediation_recipe(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_remediation_recipe_oci_code_repository_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, scm_configuration_branch, scm_configuration_is_automerge_enabled, scm_configuration_oci_code_repository_id, display_name, verify_configuration, detect_configuration, network_configuration, knowledge_base_id, is_run_triggered_on_kb_change, freeform_tags, defined_tags, if_match, scm_configuration_build_file_location): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') if not force: if verify_configuration or detect_configuration or network_configuration or freeform_tags or defined_tags: @@ -3122,7 +3121,7 @@ def update_remediation_recipe_oci_code_repository_configuration(ctx, from_json, @cli_util.wrap_exceptions def update_remediation_recipe_external_scm_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, scm_configuration_branch, scm_configuration_is_automerge_enabled, scm_configuration_external_scm_type, scm_configuration_repository_url, scm_configuration_pat_secret_id, display_name, verify_configuration, detect_configuration, network_configuration, knowledge_base_id, is_run_triggered_on_kb_change, freeform_tags, defined_tags, if_match, scm_configuration_build_file_location, scm_configuration_username): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') if not force: if verify_configuration or detect_configuration or network_configuration or freeform_tags or defined_tags: @@ -3237,7 +3236,7 @@ def update_remediation_recipe_external_scm_configuration(ctx, from_json, force, @cli_util.wrap_exceptions def update_remediation_recipe_jenkins_pipeline_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, verify_configuration_username, verify_configuration_pat_secret_id, verify_configuration_jenkins_url, verify_configuration_job_name, display_name, scm_configuration, detect_configuration, network_configuration, knowledge_base_id, is_run_triggered_on_kb_change, freeform_tags, defined_tags, if_match, verify_configuration_additional_parameters): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') if not force: if scm_configuration or detect_configuration or network_configuration or freeform_tags or defined_tags: @@ -3343,7 +3342,7 @@ def update_remediation_recipe_jenkins_pipeline_configuration(ctx, from_json, for @cli_util.wrap_exceptions def update_remediation_recipe_none_verify_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, display_name, scm_configuration, detect_configuration, network_configuration, knowledge_base_id, is_run_triggered_on_kb_change, freeform_tags, defined_tags, if_match): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') if not force: if scm_configuration or detect_configuration or network_configuration or freeform_tags or defined_tags: @@ -3444,7 +3443,7 @@ def update_remediation_recipe_none_verify_configuration(ctx, from_json, force, w @cli_util.wrap_exceptions def update_remediation_recipe_oci_dev_ops_build_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, verify_configuration_pipeline_id, display_name, scm_configuration, detect_configuration, network_configuration, knowledge_base_id, is_run_triggered_on_kb_change, freeform_tags, defined_tags, if_match, verify_configuration_additional_parameters): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') if not force: if scm_configuration or detect_configuration or network_configuration or freeform_tags or defined_tags: @@ -3552,7 +3551,7 @@ def update_remediation_recipe_oci_dev_ops_build_configuration(ctx, from_json, fo @cli_util.wrap_exceptions def update_remediation_recipe_git_hub_actions_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, verify_configuration_repository_url, verify_configuration_pat_secret_id, verify_configuration_username, verify_configuration_workflow_name, display_name, scm_configuration, detect_configuration, network_configuration, knowledge_base_id, is_run_triggered_on_kb_change, freeform_tags, defined_tags, if_match, verify_configuration_additional_parameters): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') if not force: if scm_configuration or detect_configuration or network_configuration or freeform_tags or defined_tags: @@ -3663,7 +3662,7 @@ def update_remediation_recipe_git_hub_actions_configuration(ctx, from_json, forc @cli_util.wrap_exceptions def update_remediation_recipe_git_lab_pipeline_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_recipe_id, verify_configuration_repository_url, verify_configuration_username, verify_configuration_pat_secret_id, verify_configuration_trigger_secret_id, display_name, scm_configuration, detect_configuration, network_configuration, knowledge_base_id, is_run_triggered_on_kb_change, freeform_tags, defined_tags, if_match, verify_configuration_additional_parameters): - if isinstance(remediation_recipe_id, six.string_types) and len(remediation_recipe_id.strip()) == 0: + if isinstance(remediation_recipe_id, str) and len(remediation_recipe_id.strip()) == 0: raise click.UsageError('Parameter --remediation-recipe-id cannot be whitespace or empty string') if not force: if scm_configuration or detect_configuration or network_configuration or freeform_tags or defined_tags: @@ -3764,7 +3763,7 @@ def update_remediation_recipe_git_lab_pipeline_configuration(ctx, from_json, for @cli_util.wrap_exceptions def update_remediation_run(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remediation_run_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(remediation_run_id, six.string_types) and len(remediation_run_id.strip()) == 0: + if isinstance(remediation_run_id, str) and len(remediation_run_id.strip()) == 0: raise click.UsageError('Parameter --remediation-run-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3836,7 +3835,7 @@ def update_remediation_run(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_vulnerability_audit(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vulnerability_audit_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(vulnerability_audit_id, six.string_types) and len(vulnerability_audit_id.strip()) == 0: + if isinstance(vulnerability_audit_id, str) and len(vulnerability_audit_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-audit-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ai_data_platform/src/oci_cli_ai_data_platform/generated/aidataplatform_cli.py b/services/ai_data_platform/src/oci_cli_ai_data_platform/generated/aidataplatform_cli.py index b20c65bf6..c4b6cd0fa 100644 --- a/services/ai_data_platform/src/oci_cli_ai_data_platform/generated/aidataplatform_cli.py +++ b/services/ai_data_platform/src/oci_cli_ai_data_platform/generated/aidataplatform_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -80,7 +79,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -109,7 +108,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_ai_data_platform_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ai_data_platform_id, compartment_id, if_match): - if isinstance(ai_data_platform_id, six.string_types) and len(ai_data_platform_id.strip()) == 0: + if isinstance(ai_data_platform_id, str) and len(ai_data_platform_id.strip()) == 0: raise click.UsageError('Parameter --ai-data-platform-id cannot be whitespace or empty string') kwargs = {} @@ -270,7 +269,7 @@ def create_ai_data_platform(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_ai_data_platform(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ai_data_platform_id, is_force_delete, if_match): - if isinstance(ai_data_platform_id, six.string_types) and len(ai_data_platform_id.strip()) == 0: + if isinstance(ai_data_platform_id, str) and len(ai_data_platform_id.strip()) == 0: raise click.UsageError('Parameter --ai-data-platform-id cannot be whitespace or empty string') kwargs = {} @@ -330,7 +329,7 @@ def delete_ai_data_platform(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def enable_ai_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ai_data_platform_id, vector_db_id, vector_db_admin_cred, vector_db_admin_secret_id, if_match): - if isinstance(ai_data_platform_id, six.string_types) and len(ai_data_platform_id.strip()) == 0: + if isinstance(ai_data_platform_id, str) and len(ai_data_platform_id.strip()) == 0: raise click.UsageError('Parameter --ai-data-platform-id cannot be whitespace or empty string') kwargs = {} @@ -394,7 +393,7 @@ def enable_ai_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def get_ai_data_platform(ctx, from_json, ai_data_platform_id): - if isinstance(ai_data_platform_id, six.string_types) and len(ai_data_platform_id.strip()) == 0: + if isinstance(ai_data_platform_id, str) and len(ai_data_platform_id.strip()) == 0: raise click.UsageError('Parameter --ai-data-platform-id cannot be whitespace or empty string') kwargs = {} @@ -416,7 +415,7 @@ def get_ai_data_platform(ctx, from_json, ai_data_platform_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -515,7 +514,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -572,7 +571,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -698,7 +697,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_ai_data_platform(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ai_data_platform_id, display_name, ai_data_platform_type, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(ai_data_platform_id, six.string_types) and len(ai_data_platform_id.strip()) == 0: + if isinstance(ai_data_platform_id, str) and len(ai_data_platform_id.strip()) == 0: raise click.UsageError('Parameter --ai-data-platform-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: diff --git a/services/ai_document/src/oci_cli_ai_service_document/generated/aiservicedocument_cli.py b/services/ai_document/src/oci_cli_ai_service_document/generated/aiservicedocument_cli.py index 316341503..5e632bf19 100644 --- a/services/ai_document/src/oci_cli_ai_service_document/generated/aiservicedocument_cli.py +++ b/services/ai_document/src/oci_cli_ai_service_document/generated/aiservicedocument_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -97,7 +96,7 @@ def processor_job_group(): @cli_util.wrap_exceptions def add_model_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, type, related_resource_id, message, if_match, is_lock_override): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -165,7 +164,7 @@ def add_model_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def add_project_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, type, related_resource_id, message, if_match, is_lock_override): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -388,7 +387,7 @@ def analyze_document_inline_document_details(ctx, from_json, features, document_ @cli_util.wrap_exceptions def cancel_processor_job(ctx, from_json, processor_job_id, if_match): - if isinstance(processor_job_id, six.string_types) and len(processor_job_id.strip()) == 0: + if isinstance(processor_job_id, str) and len(processor_job_id.strip()) == 0: raise click.UsageError('Parameter --processor-job-id cannot be whitespace or empty string') kwargs = {} @@ -414,7 +413,7 @@ def cancel_processor_job(ctx, from_json, processor_job_id, if_match): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -441,7 +440,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match, is_lock_override): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -475,7 +474,7 @@ def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match, @cli_util.wrap_exceptions def change_project_compartment(ctx, from_json, project_id, compartment_id, if_match, is_lock_override): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -1027,7 +1026,7 @@ def create_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, if_match, is_lock_override): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -1086,7 +1085,7 @@ def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, if_match, is_lock_override): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -1139,7 +1138,7 @@ def delete_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def get_model(ctx, from_json, model_id): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -1163,7 +1162,7 @@ def get_model(ctx, from_json, model_id): @cli_util.wrap_exceptions def get_model_type(ctx, from_json, model_type, compartment_id, model_sub_type): - if isinstance(model_type, six.string_types) and len(model_type.strip()) == 0: + if isinstance(model_type, str) and len(model_type.strip()) == 0: raise click.UsageError('Parameter --model-type cannot be whitespace or empty string') kwargs = {} @@ -1189,7 +1188,7 @@ def get_model_type(ctx, from_json, model_type, compartment_id, model_sub_type): @cli_util.wrap_exceptions def get_processor_job(ctx, from_json, processor_job_id): - if isinstance(processor_job_id, six.string_types) and len(processor_job_id.strip()) == 0: + if isinstance(processor_job_id, str) and len(processor_job_id.strip()) == 0: raise click.UsageError('Parameter --processor-job-id cannot be whitespace or empty string') kwargs = {} @@ -1211,7 +1210,7 @@ def get_processor_job(ctx, from_json, processor_job_id): @cli_util.wrap_exceptions def get_project(ctx, from_json, project_id): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -1233,7 +1232,7 @@ def get_project(ctx, from_json, project_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1391,7 +1390,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1448,7 +1447,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1565,7 +1564,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def patch_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, operations, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -1629,7 +1628,7 @@ def patch_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def remove_model_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, type, if_match, is_lock_override): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -1689,7 +1688,7 @@ def remove_model_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def remove_project_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, type, if_match, is_lock_override): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -1754,7 +1753,7 @@ def remove_project_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, display_name, description, inference_units, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1840,7 +1839,7 @@ def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_project(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, display_name, description, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ai_language/src/oci_cli_ai_service_language/generated/aiservicelanguage_cli.py b/services/ai_language/src/oci_cli_ai_service_language/generated/aiservicelanguage_cli.py index b32f01591..3d4cddf29 100644 --- a/services/ai_language/src/oci_cli_ai_service_language/generated/aiservicelanguage_cli.py +++ b/services/ai_language/src/oci_cli_ai_service_language/generated/aiservicelanguage_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -537,7 +536,7 @@ def batch_language_translation(ctx, from_json, documents, alias, endpoint_id, no @cli_util.wrap_exceptions def cancel_job(ctx, from_json, job_id, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -563,7 +562,7 @@ def cancel_job(ctx, from_json, job_id, if_match): @cli_util.wrap_exceptions def change_endpoint_compartment(ctx, from_json, endpoint_id, compartment_id, if_match): - if isinstance(endpoint_id, six.string_types) and len(endpoint_id.strip()) == 0: + if isinstance(endpoint_id, str) and len(endpoint_id.strip()) == 0: raise click.UsageError('Parameter --endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -594,7 +593,7 @@ def change_endpoint_compartment(ctx, from_json, endpoint_id, compartment_id, if_ @cli_util.wrap_exceptions def change_job_compartment(ctx, from_json, job_id, compartment_id, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -625,7 +624,7 @@ def change_job_compartment(ctx, from_json, job_id, compartment_id, if_match): @cli_util.wrap_exceptions def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -656,7 +655,7 @@ def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match) @cli_util.wrap_exceptions def change_project_compartment(ctx, from_json, project_id, compartment_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -2658,7 +2657,7 @@ def create_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, endpoint_id, if_match): - if isinstance(endpoint_id, six.string_types) and len(endpoint_id.strip()) == 0: + if isinstance(endpoint_id, str) and len(endpoint_id.strip()) == 0: raise click.UsageError('Parameter --endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2714,7 +2713,7 @@ def delete_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2770,7 +2769,7 @@ def delete_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -2826,7 +2825,7 @@ def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -3026,7 +3025,7 @@ def detect_language_text_classification(ctx, from_json, text): @cli_util.wrap_exceptions def get_endpoint(ctx, from_json, endpoint_id): - if isinstance(endpoint_id, six.string_types) and len(endpoint_id.strip()) == 0: + if isinstance(endpoint_id, str) and len(endpoint_id.strip()) == 0: raise click.UsageError('Parameter --endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3048,7 +3047,7 @@ def get_endpoint(ctx, from_json, endpoint_id): @cli_util.wrap_exceptions def get_job(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -3070,7 +3069,7 @@ def get_job(ctx, from_json, job_id): @cli_util.wrap_exceptions def get_model(ctx, from_json, model_id): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -3092,7 +3091,7 @@ def get_model(ctx, from_json, model_id): @cli_util.wrap_exceptions def get_model_type(ctx, from_json, model_type): - if isinstance(model_type, six.string_types) and len(model_type.strip()) == 0: + if isinstance(model_type, str) and len(model_type.strip()) == 0: raise click.UsageError('Parameter --model-type cannot be whitespace or empty string') kwargs = {} @@ -3114,7 +3113,7 @@ def get_model_type(ctx, from_json, model_type): @cli_util.wrap_exceptions def get_project(ctx, from_json, project_id): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -3136,7 +3135,7 @@ def get_project(ctx, from_json, project_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3234,7 +3233,7 @@ def list_evaluation_results(ctx, from_json, all_pages, page_size, model_id, limi if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -3479,7 +3478,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3536,7 +3535,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3656,7 +3655,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, endpoint_id, display_name, alias, description, model_id, inference_units, freeform_tags, defined_tags, if_match): - if isinstance(endpoint_id, six.string_types) and len(endpoint_id.strip()) == 0: + if isinstance(endpoint_id, str) and len(endpoint_id.strip()) == 0: raise click.UsageError('Parameter --endpoint-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3742,7 +3741,7 @@ def update_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, display_name, description, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -3808,7 +3807,7 @@ def update_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3888,7 +3887,7 @@ def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_project(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ai_speech/src/oci_cli_ai_service_speech/generated/aiservicespeech_cli.py b/services/ai_speech/src/oci_cli_ai_service_speech/generated/aiservicespeech_cli.py index e7e32d9f5..3d5935fdd 100644 --- a/services/ai_speech/src/oci_cli_ai_service_speech/generated/aiservicespeech_cli.py +++ b/services/ai_speech/src/oci_cli_ai_service_speech/generated/aiservicespeech_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -76,7 +75,7 @@ def synthesize_speech_group(): @cli_util.wrap_exceptions def cancel_transcription_job(ctx, from_json, transcription_job_id, if_match): - if isinstance(transcription_job_id, six.string_types) and len(transcription_job_id.strip()) == 0: + if isinstance(transcription_job_id, str) and len(transcription_job_id.strip()) == 0: raise click.UsageError('Parameter --transcription-job-id cannot be whitespace or empty string') kwargs = {} @@ -102,10 +101,10 @@ def cancel_transcription_job(ctx, from_json, transcription_job_id, if_match): @cli_util.wrap_exceptions def cancel_transcription_task(ctx, from_json, transcription_job_id, transcription_task_id, if_match): - if isinstance(transcription_job_id, six.string_types) and len(transcription_job_id.strip()) == 0: + if isinstance(transcription_job_id, str) and len(transcription_job_id.strip()) == 0: raise click.UsageError('Parameter --transcription-job-id cannot be whitespace or empty string') - if isinstance(transcription_task_id, six.string_types) and len(transcription_task_id.strip()) == 0: + if isinstance(transcription_task_id, str) and len(transcription_task_id.strip()) == 0: raise click.UsageError('Parameter --transcription-task-id cannot be whitespace or empty string') kwargs = {} @@ -132,7 +131,7 @@ def cancel_transcription_task(ctx, from_json, transcription_job_id, transcriptio @cli_util.wrap_exceptions def change_customization_compartment(ctx, from_json, customization_id, compartment_id, if_match): - if isinstance(customization_id, six.string_types) and len(customization_id.strip()) == 0: + if isinstance(customization_id, str) and len(customization_id.strip()) == 0: raise click.UsageError('Parameter --customization-id cannot be whitespace or empty string') kwargs = {} @@ -163,7 +162,7 @@ def change_customization_compartment(ctx, from_json, customization_id, compartme @cli_util.wrap_exceptions def change_transcription_job_compartment(ctx, from_json, transcription_job_id, compartment_id, if_match): - if isinstance(transcription_job_id, six.string_types) and len(transcription_job_id.strip()) == 0: + if isinstance(transcription_job_id, str) and len(transcription_job_id.strip()) == 0: raise click.UsageError('Parameter --transcription-job-id cannot be whitespace or empty string') kwargs = {} @@ -714,7 +713,7 @@ def create_transcription_job_object_list_inline_input_location(ctx, from_json, w @cli_util.wrap_exceptions def delete_customization(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, customization_id, if_match): - if isinstance(customization_id, six.string_types) and len(customization_id.strip()) == 0: + if isinstance(customization_id, str) and len(customization_id.strip()) == 0: raise click.UsageError('Parameter --customization-id cannot be whitespace or empty string') kwargs = {} @@ -778,7 +777,7 @@ def delete_customization(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_transcription_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, transcription_job_id, if_match): - if isinstance(transcription_job_id, six.string_types) and len(transcription_job_id.strip()) == 0: + if isinstance(transcription_job_id, str) and len(transcription_job_id.strip()) == 0: raise click.UsageError('Parameter --transcription-job-id cannot be whitespace or empty string') kwargs = {} @@ -837,7 +836,7 @@ def delete_transcription_job(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def get_customization(ctx, from_json, customization_id): - if isinstance(customization_id, six.string_types) and len(customization_id.strip()) == 0: + if isinstance(customization_id, str) and len(customization_id.strip()) == 0: raise click.UsageError('Parameter --customization-id cannot be whitespace or empty string') kwargs = {} @@ -859,7 +858,7 @@ def get_customization(ctx, from_json, customization_id): @cli_util.wrap_exceptions def get_transcription_job(ctx, from_json, transcription_job_id): - if isinstance(transcription_job_id, six.string_types) and len(transcription_job_id.strip()) == 0: + if isinstance(transcription_job_id, str) and len(transcription_job_id.strip()) == 0: raise click.UsageError('Parameter --transcription-job-id cannot be whitespace or empty string') kwargs = {} @@ -882,10 +881,10 @@ def get_transcription_job(ctx, from_json, transcription_job_id): @cli_util.wrap_exceptions def get_transcription_task(ctx, from_json, transcription_job_id, transcription_task_id): - if isinstance(transcription_job_id, six.string_types) and len(transcription_job_id.strip()) == 0: + if isinstance(transcription_job_id, str) and len(transcription_job_id.strip()) == 0: raise click.UsageError('Parameter --transcription-job-id cannot be whitespace or empty string') - if isinstance(transcription_task_id, six.string_types) and len(transcription_task_id.strip()) == 0: + if isinstance(transcription_task_id, str) and len(transcription_task_id.strip()) == 0: raise click.UsageError('Parameter --transcription-task-id cannot be whitespace or empty string') kwargs = {} @@ -1044,7 +1043,7 @@ def list_transcription_tasks(ctx, from_json, all_pages, page_size, transcription if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(transcription_job_id, six.string_types) and len(transcription_job_id.strip()) == 0: + if isinstance(transcription_job_id, str) and len(transcription_job_id.strip()) == 0: raise click.UsageError('Parameter --transcription-job-id cannot be whitespace or empty string') kwargs = {} @@ -1334,7 +1333,7 @@ def synthesize_speech_tts_base_audio_config(ctx, from_json, file, text, audio_co @cli_util.wrap_exceptions def update_customization(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, customization_id, alias, display_name, description, model_details, training_dataset, freeform_tags, defined_tags, if_match): - if isinstance(customization_id, six.string_types) and len(customization_id.strip()) == 0: + if isinstance(customization_id, str) and len(customization_id.strip()) == 0: raise click.UsageError('Parameter --customization-id cannot be whitespace or empty string') if not force: if model_details or training_dataset or freeform_tags or defined_tags: @@ -1423,7 +1422,7 @@ def update_customization(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_customization_object_storage_dataset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, customization_id, training_dataset_location_details, alias, display_name, description, model_details, freeform_tags, defined_tags, if_match, training_dataset_entity_type): - if isinstance(customization_id, six.string_types) and len(customization_id.strip()) == 0: + if isinstance(customization_id, str) and len(customization_id.strip()) == 0: raise click.UsageError('Parameter --customization-id cannot be whitespace or empty string') if not force: if model_details or freeform_tags or defined_tags: @@ -1518,7 +1517,7 @@ def update_customization_object_storage_dataset(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_customization_entity_list_dataset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, customization_id, alias, display_name, description, model_details, freeform_tags, defined_tags, if_match, training_dataset_reference_examples, training_dataset_entity_list): - if isinstance(customization_id, six.string_types) and len(customization_id.strip()) == 0: + if isinstance(customization_id, str) and len(customization_id.strip()) == 0: raise click.UsageError('Parameter --customization-id cannot be whitespace or empty string') if not force: if model_details or freeform_tags or defined_tags: @@ -1609,7 +1608,7 @@ def update_customization_entity_list_dataset(ctx, from_json, force, wait_for_sta @cli_util.wrap_exceptions def update_transcription_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, transcription_job_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(transcription_job_id, six.string_types) and len(transcription_job_id.strip()) == 0: + if isinstance(transcription_job_id, str) and len(transcription_job_id.strip()) == 0: raise click.UsageError('Parameter --transcription-job-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ai_vision/src/oci_cli_ai_service_vision/generated/aiservicevision_cli.py b/services/ai_vision/src/oci_cli_ai_service_vision/generated/aiservicevision_cli.py index 62ca309cd..4874253ed 100644 --- a/services/ai_vision/src/oci_cli_ai_service_vision/generated/aiservicevision_cli.py +++ b/services/ai_vision/src/oci_cli_ai_service_vision/generated/aiservicevision_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -404,7 +403,7 @@ def analyze_image_inline_image_details(ctx, from_json, features, image_data, com @cli_util.wrap_exceptions def cancel_document_job(ctx, from_json, document_job_id, if_match): - if isinstance(document_job_id, six.string_types) and len(document_job_id.strip()) == 0: + if isinstance(document_job_id, str) and len(document_job_id.strip()) == 0: raise click.UsageError('Parameter --document-job-id cannot be whitespace or empty string') kwargs = {} @@ -429,7 +428,7 @@ def cancel_document_job(ctx, from_json, document_job_id, if_match): @cli_util.wrap_exceptions def cancel_image_job(ctx, from_json, image_job_id, if_match): - if isinstance(image_job_id, six.string_types) and len(image_job_id.strip()) == 0: + if isinstance(image_job_id, str) and len(image_job_id.strip()) == 0: raise click.UsageError('Parameter --image-job-id cannot be whitespace or empty string') kwargs = {} @@ -454,7 +453,7 @@ def cancel_image_job(ctx, from_json, image_job_id, if_match): @cli_util.wrap_exceptions def cancel_video_job(ctx, from_json, video_job_id, if_match): - if isinstance(video_job_id, six.string_types) and len(video_job_id.strip()) == 0: + if isinstance(video_job_id, str) and len(video_job_id.strip()) == 0: raise click.UsageError('Parameter --video-job-id cannot be whitespace or empty string') kwargs = {} @@ -480,7 +479,7 @@ def cancel_video_job(ctx, from_json, video_job_id, if_match): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -506,7 +505,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -537,7 +536,7 @@ def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match) @cli_util.wrap_exceptions def change_project_compartment(ctx, from_json, project_id, compartment_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -571,7 +570,7 @@ def change_project_compartment(ctx, from_json, project_id, compartment_id, if_ma @cli_util.wrap_exceptions def change_stream_group_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_group_id, compartment_id, if_match): - if isinstance(stream_group_id, six.string_types) and len(stream_group_id.strip()) == 0: + if isinstance(stream_group_id, str) and len(stream_group_id.strip()) == 0: raise click.UsageError('Parameter --stream-group-id cannot be whitespace or empty string') kwargs = {} @@ -632,7 +631,7 @@ def change_stream_group_compartment(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def change_stream_job_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_job_id, compartment_id, if_match): - if isinstance(stream_job_id, six.string_types) and len(stream_job_id.strip()) == 0: + if isinstance(stream_job_id, str) and len(stream_job_id.strip()) == 0: raise click.UsageError('Parameter --stream-job-id cannot be whitespace or empty string') kwargs = {} @@ -693,7 +692,7 @@ def change_stream_job_compartment(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def change_stream_source_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_source_id, compartment_id, if_match): - if isinstance(stream_source_id, six.string_types) and len(stream_source_id.strip()) == 0: + if isinstance(stream_source_id, str) and len(stream_source_id.strip()) == 0: raise click.UsageError('Parameter --stream-source-id cannot be whitespace or empty string') kwargs = {} @@ -751,7 +750,7 @@ def change_stream_source_compartment(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def change_vision_private_endpoint_compartment(ctx, from_json, vision_private_endpoint_id, compartment_id, if_match): - if isinstance(vision_private_endpoint_id, six.string_types) and len(vision_private_endpoint_id.strip()) == 0: + if isinstance(vision_private_endpoint_id, str) and len(vision_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --vision-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -1814,7 +1813,7 @@ def create_vision_private_endpoint(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -1870,7 +1869,7 @@ def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -1926,7 +1925,7 @@ def delete_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_stream_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_group_id, if_match): - if isinstance(stream_group_id, six.string_types) and len(stream_group_id.strip()) == 0: + if isinstance(stream_group_id, str) and len(stream_group_id.strip()) == 0: raise click.UsageError('Parameter --stream-group-id cannot be whitespace or empty string') kwargs = {} @@ -1982,7 +1981,7 @@ def delete_stream_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_stream_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_job_id, if_match): - if isinstance(stream_job_id, six.string_types) and len(stream_job_id.strip()) == 0: + if isinstance(stream_job_id, str) and len(stream_job_id.strip()) == 0: raise click.UsageError('Parameter --stream-job-id cannot be whitespace or empty string') kwargs = {} @@ -2038,7 +2037,7 @@ def delete_stream_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_stream_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_source_id, if_match): - if isinstance(stream_source_id, six.string_types) and len(stream_source_id.strip()) == 0: + if isinstance(stream_source_id, str) and len(stream_source_id.strip()) == 0: raise click.UsageError('Parameter --stream-source-id cannot be whitespace or empty string') kwargs = {} @@ -2094,7 +2093,7 @@ def delete_stream_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_vision_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vision_private_endpoint_id, if_match): - if isinstance(vision_private_endpoint_id, six.string_types) and len(vision_private_endpoint_id.strip()) == 0: + if isinstance(vision_private_endpoint_id, str) and len(vision_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --vision-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2145,7 +2144,7 @@ def delete_vision_private_endpoint(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def get_document_job(ctx, from_json, document_job_id): - if isinstance(document_job_id, six.string_types) and len(document_job_id.strip()) == 0: + if isinstance(document_job_id, str) and len(document_job_id.strip()) == 0: raise click.UsageError('Parameter --document-job-id cannot be whitespace or empty string') kwargs = {} @@ -2167,7 +2166,7 @@ def get_document_job(ctx, from_json, document_job_id): @cli_util.wrap_exceptions def get_image_job(ctx, from_json, image_job_id): - if isinstance(image_job_id, six.string_types) and len(image_job_id.strip()) == 0: + if isinstance(image_job_id, str) and len(image_job_id.strip()) == 0: raise click.UsageError('Parameter --image-job-id cannot be whitespace or empty string') kwargs = {} @@ -2189,7 +2188,7 @@ def get_image_job(ctx, from_json, image_job_id): @cli_util.wrap_exceptions def get_model(ctx, from_json, model_id): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -2211,7 +2210,7 @@ def get_model(ctx, from_json, model_id): @cli_util.wrap_exceptions def get_project(ctx, from_json, project_id): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -2233,7 +2232,7 @@ def get_project(ctx, from_json, project_id): @cli_util.wrap_exceptions def get_stream_group(ctx, from_json, stream_group_id): - if isinstance(stream_group_id, six.string_types) and len(stream_group_id.strip()) == 0: + if isinstance(stream_group_id, str) and len(stream_group_id.strip()) == 0: raise click.UsageError('Parameter --stream-group-id cannot be whitespace or empty string') kwargs = {} @@ -2255,7 +2254,7 @@ def get_stream_group(ctx, from_json, stream_group_id): @cli_util.wrap_exceptions def get_stream_job(ctx, from_json, stream_job_id): - if isinstance(stream_job_id, six.string_types) and len(stream_job_id.strip()) == 0: + if isinstance(stream_job_id, str) and len(stream_job_id.strip()) == 0: raise click.UsageError('Parameter --stream-job-id cannot be whitespace or empty string') kwargs = {} @@ -2277,7 +2276,7 @@ def get_stream_job(ctx, from_json, stream_job_id): @cli_util.wrap_exceptions def get_stream_source(ctx, from_json, stream_source_id): - if isinstance(stream_source_id, six.string_types) and len(stream_source_id.strip()) == 0: + if isinstance(stream_source_id, str) and len(stream_source_id.strip()) == 0: raise click.UsageError('Parameter --stream-source-id cannot be whitespace or empty string') kwargs = {} @@ -2299,7 +2298,7 @@ def get_stream_source(ctx, from_json, stream_source_id): @cli_util.wrap_exceptions def get_video_job(ctx, from_json, video_job_id): - if isinstance(video_job_id, six.string_types) and len(video_job_id.strip()) == 0: + if isinstance(video_job_id, str) and len(video_job_id.strip()) == 0: raise click.UsageError('Parameter --video-job-id cannot be whitespace or empty string') kwargs = {} @@ -2321,7 +2320,7 @@ def get_video_job(ctx, from_json, video_job_id): @cli_util.wrap_exceptions def get_vision_private_endpoint(ctx, from_json, vision_private_endpoint_id): - if isinstance(vision_private_endpoint_id, six.string_types) and len(vision_private_endpoint_id.strip()) == 0: + if isinstance(vision_private_endpoint_id, str) and len(vision_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --vision-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2343,7 +2342,7 @@ def get_vision_private_endpoint(ctx, from_json, vision_private_endpoint_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2746,7 +2745,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2803,7 +2802,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2917,7 +2916,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def start_stream_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_job_id, if_match): - if isinstance(stream_job_id, six.string_types) and len(stream_job_id.strip()) == 0: + if isinstance(stream_job_id, str) and len(stream_job_id.strip()) == 0: raise click.UsageError('Parameter --stream-job-id cannot be whitespace or empty string') kwargs = {} @@ -2972,7 +2971,7 @@ def start_stream_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def stop_stream_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_job_id, if_match): - if isinstance(stream_job_id, six.string_types) and len(stream_job_id.strip()) == 0: + if isinstance(stream_job_id, str) and len(stream_job_id.strip()) == 0: raise click.UsageError('Parameter --stream-job-id cannot be whitespace or empty string') kwargs = {} @@ -3032,7 +3031,7 @@ def stop_stream_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3112,7 +3111,7 @@ def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_project(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3196,7 +3195,7 @@ def update_project(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_stream_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_group_id, display_name, is_enabled, stream_source_ids, stream_overlaps, freeform_tags, defined_tags, if_match): - if isinstance(stream_group_id, six.string_types) and len(stream_group_id.strip()) == 0: + if isinstance(stream_group_id, str) and len(stream_group_id.strip()) == 0: raise click.UsageError('Parameter --stream-group-id cannot be whitespace or empty string') if not force: if stream_source_ids or stream_overlaps or freeform_tags or defined_tags: @@ -3286,7 +3285,7 @@ def update_stream_group(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_stream_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_job_id, stream_source_id, features, stream_output_location, display_name, freeform_tags, defined_tags, if_match): - if isinstance(stream_job_id, six.string_types) and len(stream_job_id.strip()) == 0: + if isinstance(stream_job_id, str) and len(stream_job_id.strip()) == 0: raise click.UsageError('Parameter --stream-job-id cannot be whitespace or empty string') if not force: if features or stream_output_location or freeform_tags or defined_tags: @@ -3378,7 +3377,7 @@ def update_stream_job(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_stream_job_object_storage_output_location(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_job_id, stream_output_location_namespace_name, stream_output_location_bucket_name, stream_output_location_prefix, stream_source_id, features, display_name, freeform_tags, defined_tags, if_match): - if isinstance(stream_job_id, six.string_types) and len(stream_job_id.strip()) == 0: + if isinstance(stream_job_id, str) and len(stream_job_id.strip()) == 0: raise click.UsageError('Parameter --stream-job-id cannot be whitespace or empty string') if not force: if features or freeform_tags or defined_tags: @@ -3467,7 +3466,7 @@ def update_stream_job_object_storage_output_location(ctx, from_json, force, wait @cli_util.wrap_exceptions def update_stream_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_source_id, stream_source_details, display_name, freeform_tags, defined_tags, if_match): - if isinstance(stream_source_id, six.string_types) and len(stream_source_id.strip()) == 0: + if isinstance(stream_source_id, str) and len(stream_source_id.strip()) == 0: raise click.UsageError('Parameter --stream-source-id cannot be whitespace or empty string') if not force: if stream_source_details or freeform_tags or defined_tags: @@ -3549,7 +3548,7 @@ def update_stream_source(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_stream_source_rtsp_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_source_id, stream_source_details_stream_network_access_details, stream_source_details_camera_url, display_name, freeform_tags, defined_tags, if_match, stream_source_details_secret_id): - if isinstance(stream_source_id, six.string_types) and len(stream_source_id.strip()) == 0: + if isinstance(stream_source_id, str) and len(stream_source_id.strip()) == 0: raise click.UsageError('Parameter --stream-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3634,7 +3633,7 @@ def update_stream_source_rtsp_source_details(ctx, from_json, force, wait_for_sta @cli_util.wrap_exceptions def update_vision_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vision_private_endpoint_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(vision_private_endpoint_id, six.string_types) and len(vision_private_endpoint_id.strip()) == 0: + if isinstance(vision_private_endpoint_id, str) and len(vision_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --vision-private-endpoint-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/analytics/src/oci_cli_analytics/generated/analytics_cli.py b/services/analytics/src/oci_cli_analytics/generated/analytics_cli.py index b8d3500c5..87a72c454 100644 --- a/services/analytics/src/oci_cli_analytics/generated/analytics_cli.py +++ b/services/analytics/src/oci_cli_analytics/generated/analytics_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -66,7 +65,7 @@ def work_request_group(): @cli_util.wrap_exceptions def change_analytics_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, compartment_id, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -127,7 +126,7 @@ def change_analytics_instance_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_analytics_instance_network_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, network_endpoint_details, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -190,7 +189,7 @@ def change_analytics_instance_network_endpoint(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def change_analytics_instance_network_endpoint_private_endpoint_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, network_endpoint_details_vcn_id, network_endpoint_details_subnet_id, if_match, network_endpoint_details_network_security_group_ids): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -262,7 +261,7 @@ def change_analytics_instance_network_endpoint_private_endpoint_details(ctx, fro @cli_util.wrap_exceptions def change_analytics_instance_network_endpoint_public_endpoint_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, if_match, network_endpoint_details_whitelisted_ips, network_endpoint_details_whitelisted_vcns, network_endpoint_details_whitelisted_services): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -687,7 +686,7 @@ def create_analytics_instance_public_endpoint_details(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def create_private_access_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, display_name, vcn_id, subnet_id, private_source_dns_zones, private_source_scan_hosts, network_security_group_ids): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -757,7 +756,7 @@ def create_private_access_channel(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def create_resource_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, resource_name, capacity, display_name, description): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -827,7 +826,7 @@ def create_resource_group(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def create_vanity_url(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, hosts, private_key, public_certificate, ca_certificate, description, passphrase): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -895,7 +894,7 @@ def create_vanity_url(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_analytics_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -952,10 +951,10 @@ def delete_analytics_instance(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_private_access_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_access_channel_key, analytics_instance_id, if_match): - if isinstance(private_access_channel_key, six.string_types) and len(private_access_channel_key.strip()) == 0: + if isinstance(private_access_channel_key, str) and len(private_access_channel_key.strip()) == 0: raise click.UsageError('Parameter --private-access-channel-key cannot be whitespace or empty string') - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1013,10 +1012,10 @@ def delete_private_access_channel(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_resource_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, analytics_instance_resource_group_id, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') - if isinstance(analytics_instance_resource_group_id, six.string_types) and len(analytics_instance_resource_group_id.strip()) == 0: + if isinstance(analytics_instance_resource_group_id, str) and len(analytics_instance_resource_group_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-resource-group-id cannot be whitespace or empty string') kwargs = {} @@ -1074,10 +1073,10 @@ def delete_resource_group(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_vanity_url(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, vanity_url_key, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') - if isinstance(vanity_url_key, six.string_types) and len(vanity_url_key.strip()) == 0: + if isinstance(vanity_url_key, str) and len(vanity_url_key.strip()) == 0: raise click.UsageError('Parameter --vanity-url-key cannot be whitespace or empty string') kwargs = {} @@ -1131,7 +1130,7 @@ def delete_vanity_url(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1155,7 +1154,7 @@ def delete_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def get_analytics_instance(ctx, from_json, analytics_instance_id): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1178,10 +1177,10 @@ def get_analytics_instance(ctx, from_json, analytics_instance_id): @cli_util.wrap_exceptions def get_private_access_channel(ctx, from_json, private_access_channel_key, analytics_instance_id): - if isinstance(private_access_channel_key, six.string_types) and len(private_access_channel_key.strip()) == 0: + if isinstance(private_access_channel_key, str) and len(private_access_channel_key.strip()) == 0: raise click.UsageError('Parameter --private-access-channel-key cannot be whitespace or empty string') - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1205,10 +1204,10 @@ def get_private_access_channel(ctx, from_json, private_access_channel_key, analy @cli_util.wrap_exceptions def get_resource_group(ctx, from_json, analytics_instance_id, analytics_instance_resource_group_id): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') - if isinstance(analytics_instance_resource_group_id, six.string_types) and len(analytics_instance_resource_group_id.strip()) == 0: + if isinstance(analytics_instance_resource_group_id, str) and len(analytics_instance_resource_group_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-resource-group-id cannot be whitespace or empty string') kwargs = {} @@ -1231,7 +1230,7 @@ def get_resource_group(ctx, from_json, analytics_instance_id, analytics_instance @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1333,7 +1332,7 @@ def list_resource_groups(ctx, from_json, all_pages, page_size, analytics_instanc if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1392,7 +1391,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1445,7 +1444,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1559,7 +1558,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def scale_analytics_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, capacity, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1620,7 +1619,7 @@ def scale_analytics_instance(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def set_feature_bundle(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, feature_bundle, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1683,7 +1682,7 @@ def set_feature_bundle(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def set_kms_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, kms_key_id, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1743,7 +1742,7 @@ def set_kms_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def start_analytics_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1798,7 +1797,7 @@ def start_analytics_instance(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def stop_analytics_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1864,7 +1863,7 @@ def stop_analytics_instance(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_analytics_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, description, email_notification, license_type, defined_tags, freeform_tags, update_channel, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -1953,10 +1952,10 @@ def update_analytics_instance(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_private_access_channel(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, private_access_channel_key, analytics_instance_id, display_name, vcn_id, subnet_id, private_source_dns_zones, private_source_scan_hosts, network_security_group_ids, if_match): - if isinstance(private_access_channel_key, six.string_types) and len(private_access_channel_key.strip()) == 0: + if isinstance(private_access_channel_key, str) and len(private_access_channel_key.strip()) == 0: raise click.UsageError('Parameter --private-access-channel-key cannot be whitespace or empty string') - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') if not force: if private_source_dns_zones or private_source_scan_hosts or network_security_group_ids: @@ -2043,10 +2042,10 @@ def update_private_access_channel(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_resource_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, analytics_instance_resource_group_id, resource_name, capacity, display_name, description, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') - if isinstance(analytics_instance_resource_group_id, six.string_types) and len(analytics_instance_resource_group_id.strip()) == 0: + if isinstance(analytics_instance_resource_group_id, str) and len(analytics_instance_resource_group_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-resource-group-id cannot be whitespace or empty string') kwargs = {} @@ -2119,10 +2118,10 @@ def update_resource_group(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_vanity_url(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, analytics_instance_id, vanity_url_key, private_key, public_certificate, ca_certificate, passphrase, if_match): - if isinstance(analytics_instance_id, six.string_types) and len(analytics_instance_id.strip()) == 0: + if isinstance(analytics_instance_id, str) and len(analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --analytics-instance-id cannot be whitespace or empty string') - if isinstance(vanity_url_key, six.string_types) and len(vanity_url_key.strip()) == 0: + if isinstance(vanity_url_key, str) and len(vanity_url_key.strip()) == 0: raise click.UsageError('Parameter --vanity-url-key cannot be whitespace or empty string') kwargs = {} diff --git a/services/announcements_service/src/oci_cli_announcement/generated/announcement_cli.py b/services/announcements_service/src/oci_cli_announcement/generated/announcement_cli.py index 4d31c3ca5..0acefe168 100644 --- a/services/announcements_service/src/oci_cli_announcement/generated/announcement_cli.py +++ b/services/announcements_service/src/oci_cli_announcement/generated/announcement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -64,7 +63,7 @@ def announcement_group(): @cli_util.wrap_exceptions def get_announcement(ctx, from_json, announcement_id): - if isinstance(announcement_id, six.string_types) and len(announcement_id.strip()) == 0: + if isinstance(announcement_id, str) and len(announcement_id.strip()) == 0: raise click.UsageError('Parameter --announcement-id cannot be whitespace or empty string') kwargs = {} @@ -86,7 +85,7 @@ def get_announcement(ctx, from_json, announcement_id): @cli_util.wrap_exceptions def get_announcement_compartment(ctx, from_json, announcement_id): - if isinstance(announcement_id, six.string_types) and len(announcement_id.strip()) == 0: + if isinstance(announcement_id, str) and len(announcement_id.strip()) == 0: raise click.UsageError('Parameter --announcement-id cannot be whitespace or empty string') kwargs = {} @@ -110,7 +109,7 @@ def get_announcement_compartment(ctx, from_json, announcement_id): @cli_util.wrap_exceptions def get_announcement_user_status(ctx, from_json, announcement_id): - if isinstance(announcement_id, six.string_types) and len(announcement_id.strip()) == 0: + if isinstance(announcement_id, str) and len(announcement_id.strip()) == 0: raise click.UsageError('Parameter --announcement-id cannot be whitespace or empty string') kwargs = {} @@ -227,7 +226,7 @@ def list_announcements(ctx, from_json, all_pages, page_size, compartment_id, lim @cli_util.wrap_exceptions def update_announcement_user_status(ctx, from_json, announcement_id, user_status_announcement_id, user_id, time_acknowledged, if_match): - if isinstance(announcement_id, six.string_types) and len(announcement_id.strip()) == 0: + if isinstance(announcement_id, str) and len(announcement_id.strip()) == 0: raise click.UsageError('Parameter --announcement-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/announcements_service/src/oci_cli_announcement_subscription/generated/announcementsubscription_cli.py b/services/announcements_service/src/oci_cli_announcement_subscription/generated/announcementsubscription_cli.py index 40adcc2c1..08fe59f56 100644 --- a/services/announcements_service/src/oci_cli_announcement_subscription/generated/announcementsubscription_cli.py +++ b/services/announcements_service/src/oci_cli_announcement_subscription/generated/announcementsubscription_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -52,7 +51,7 @@ def announcement_subscription_collection_group(): @cli_util.wrap_exceptions def change_announcement_subscription_compartment(ctx, from_json, announcement_subscription_id, compartment_id, if_match): - if isinstance(announcement_subscription_id, six.string_types) and len(announcement_subscription_id.strip()) == 0: + if isinstance(announcement_subscription_id, str) and len(announcement_subscription_id.strip()) == 0: raise click.UsageError('Parameter --announcement-subscription-id cannot be whitespace or empty string') kwargs = {} @@ -167,7 +166,7 @@ def create_announcement_subscription(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def create_filter_group(ctx, from_json, announcement_subscription_id, name, filters, if_match): - if isinstance(announcement_subscription_id, six.string_types) and len(announcement_subscription_id.strip()) == 0: + if isinstance(announcement_subscription_id, str) and len(announcement_subscription_id.strip()) == 0: raise click.UsageError('Parameter --announcement-subscription-id cannot be whitespace or empty string') kwargs = {} @@ -204,7 +203,7 @@ def create_filter_group(ctx, from_json, announcement_subscription_id, name, filt @cli_util.wrap_exceptions def delete_announcement_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, announcement_subscription_id, if_match): - if isinstance(announcement_subscription_id, six.string_types) and len(announcement_subscription_id.strip()) == 0: + if isinstance(announcement_subscription_id, str) and len(announcement_subscription_id.strip()) == 0: raise click.UsageError('Parameter --announcement-subscription-id cannot be whitespace or empty string') kwargs = {} @@ -268,10 +267,10 @@ def delete_announcement_subscription(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_filter_group(ctx, from_json, announcement_subscription_id, filter_group_name, if_match): - if isinstance(announcement_subscription_id, six.string_types) and len(announcement_subscription_id.strip()) == 0: + if isinstance(announcement_subscription_id, str) and len(announcement_subscription_id.strip()) == 0: raise click.UsageError('Parameter --announcement-subscription-id cannot be whitespace or empty string') - if isinstance(filter_group_name, six.string_types) and len(filter_group_name.strip()) == 0: + if isinstance(filter_group_name, str) and len(filter_group_name.strip()) == 0: raise click.UsageError('Parameter --filter-group-name cannot be whitespace or empty string') kwargs = {} @@ -298,7 +297,7 @@ def delete_filter_group(ctx, from_json, announcement_subscription_id, filter_gro @cli_util.wrap_exceptions def get_announcement_subscription(ctx, from_json, announcement_subscription_id): - if isinstance(announcement_subscription_id, six.string_types) and len(announcement_subscription_id.strip()) == 0: + if isinstance(announcement_subscription_id, str) and len(announcement_subscription_id.strip()) == 0: raise click.UsageError('Parameter --announcement-subscription-id cannot be whitespace or empty string') kwargs = {} @@ -399,7 +398,7 @@ def list_announcement_subscriptions(ctx, from_json, all_pages, page_size, compar @cli_util.wrap_exceptions def update_announcement_subscription(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, announcement_subscription_id, display_name, description, ons_topic_id, preferred_language, preferred_time_zone, freeform_tags, defined_tags, if_match): - if isinstance(announcement_subscription_id, six.string_types) and len(announcement_subscription_id.strip()) == 0: + if isinstance(announcement_subscription_id, str) and len(announcement_subscription_id.strip()) == 0: raise click.UsageError('Parameter --announcement-subscription-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -481,10 +480,10 @@ def update_announcement_subscription(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_filter_group(ctx, from_json, force, announcement_subscription_id, filter_group_name, filters, if_match): - if isinstance(announcement_subscription_id, six.string_types) and len(announcement_subscription_id.strip()) == 0: + if isinstance(announcement_subscription_id, str) and len(announcement_subscription_id.strip()) == 0: raise click.UsageError('Parameter --announcement-subscription-id cannot be whitespace or empty string') - if isinstance(filter_group_name, six.string_types) and len(filter_group_name.strip()) == 0: + if isinstance(filter_group_name, str) and len(filter_group_name.strip()) == 0: raise click.UsageError('Parameter --filter-group-name cannot be whitespace or empty string') if not force: if filters: diff --git a/services/announcements_service/src/oci_cli_announcements_preferences/generated/announcementspreferences_cli.py b/services/announcements_service/src/oci_cli_announcements_preferences/generated/announcementspreferences_cli.py index 1976d4b4b..4905dfb08 100644 --- a/services/announcements_service/src/oci_cli_announcements_preferences/generated/announcementspreferences_cli.py +++ b/services/announcements_service/src/oci_cli_announcements_preferences/generated/announcementspreferences_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -84,7 +83,7 @@ def create_announcements_preference(ctx, from_json, type, preference_type, is_un @cli_util.wrap_exceptions def get_announcements_preference(ctx, from_json, preference_id): - if isinstance(preference_id, six.string_types) and len(preference_id.strip()) == 0: + if isinstance(preference_id, str) and len(preference_id.strip()) == 0: raise click.UsageError('Parameter --preference-id cannot be whitespace or empty string') kwargs = {} @@ -164,7 +163,7 @@ def list_announcements_preferences(ctx, from_json, all_pages, page_size, compart @cli_util.wrap_exceptions def update_announcements_preference(ctx, from_json, preference_id, type, preference_type, is_unsubscribed, compartment_id, preferred_time_zone, if_match): - if isinstance(preference_id, six.string_types) and len(preference_id.strip()) == 0: + if isinstance(preference_id, str) and len(preference_id.strip()) == 0: raise click.UsageError('Parameter --preference-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/announcements_service/src/oci_cli_service/generated/service_cli.py b/services/announcements_service/src/oci_cli_service/generated/service_cli.py index d77c46f73..a495bc50c 100644 --- a/services/announcements_service/src/oci_cli_service/generated/service_cli.py +++ b/services/announcements_service/src/oci_cli_service/generated/service_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/api_platform/src/oci_cli_api_platform/generated/apiplatform_cli.py b/services/api_platform/src/oci_cli_api_platform/generated/apiplatform_cli.py index 5cc4e355e..e24222bcc 100644 --- a/services/api_platform/src/oci_cli_api_platform/generated/apiplatform_cli.py +++ b/services/api_platform/src/oci_cli_api_platform/generated/apiplatform_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -70,7 +69,7 @@ def work_request_group(): @cli_util.wrap_exceptions def change_api_platform_instance_compartment(ctx, from_json, api_platform_instance_id, compartment_id, if_match): - if isinstance(api_platform_instance_id, six.string_types) and len(api_platform_instance_id.strip()) == 0: + if isinstance(api_platform_instance_id, str) and len(api_platform_instance_id.strip()) == 0: raise click.UsageError('Parameter --api-platform-instance-id cannot be whitespace or empty string') kwargs = {} @@ -171,7 +170,7 @@ def create_api_platform_instance(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_api_platform_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, api_platform_instance_id, if_match): - if isinstance(api_platform_instance_id, six.string_types) and len(api_platform_instance_id.strip()) == 0: + if isinstance(api_platform_instance_id, str) and len(api_platform_instance_id.strip()) == 0: raise click.UsageError('Parameter --api-platform-instance-id cannot be whitespace or empty string') kwargs = {} @@ -222,7 +221,7 @@ def delete_api_platform_instance(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def get_api_platform_instance(ctx, from_json, api_platform_instance_id): - if isinstance(api_platform_instance_id, six.string_types) and len(api_platform_instance_id.strip()) == 0: + if isinstance(api_platform_instance_id, str) and len(api_platform_instance_id.strip()) == 0: raise click.UsageError('Parameter --api-platform-instance-id cannot be whitespace or empty string') kwargs = {} @@ -244,7 +243,7 @@ def get_api_platform_instance(ctx, from_json, api_platform_instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -337,7 +336,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -394,7 +393,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -512,7 +511,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_api_platform_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, api_platform_instance_id, description, freeform_tags, defined_tags, if_match): - if isinstance(api_platform_instance_id, six.string_types) and len(api_platform_instance_id.strip()) == 0: + if isinstance(api_platform_instance_id, str) and len(api_platform_instance_id.strip()) == 0: raise click.UsageError('Parameter --api-platform-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/apiaccesscontrol/src/oci_cli_api_metadata/generated/apimetadata_cli.py b/services/apiaccesscontrol/src/oci_cli_api_metadata/generated/apimetadata_cli.py index 69ca85e2c..236b1edf0 100644 --- a/services/apiaccesscontrol/src/oci_cli_api_metadata/generated/apimetadata_cli.py +++ b/services/apiaccesscontrol/src/oci_cli_api_metadata/generated/apimetadata_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -48,7 +47,7 @@ def api_metadata_group(): @cli_util.wrap_exceptions def get_api_metadata(ctx, from_json, api_metadata_id): - if isinstance(api_metadata_id, six.string_types) and len(api_metadata_id.strip()) == 0: + if isinstance(api_metadata_id, str) and len(api_metadata_id.strip()) == 0: raise click.UsageError('Parameter --api-metadata-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/apiaccesscontrol/src/oci_cli_privileged_api_control/generated/privilegedapicontrol_cli.py b/services/apiaccesscontrol/src/oci_cli_privileged_api_control/generated/privilegedapicontrol_cli.py index 4984f78d7..05a703c0f 100644 --- a/services/apiaccesscontrol/src/oci_cli_privileged_api_control/generated/privilegedapicontrol_cli.py +++ b/services/apiaccesscontrol/src/oci_cli_privileged_api_control/generated/privilegedapicontrol_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -60,7 +59,7 @@ def privileged_api_control_collection_group(): @cli_util.wrap_exceptions def change_privileged_api_control_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, privileged_api_control_id, compartment_id, if_match): - if isinstance(privileged_api_control_id, six.string_types) and len(privileged_api_control_id.strip()) == 0: + if isinstance(privileged_api_control_id, str) and len(privileged_api_control_id.strip()) == 0: raise click.UsageError('Parameter --privileged-api-control-id cannot be whitespace or empty string') kwargs = {} @@ -217,7 +216,7 @@ def create_privileged_api_control(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_privileged_api_control(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, privileged_api_control_id, description, if_match): - if isinstance(privileged_api_control_id, six.string_types) and len(privileged_api_control_id.strip()) == 0: + if isinstance(privileged_api_control_id, str) and len(privileged_api_control_id.strip()) == 0: raise click.UsageError('Parameter --privileged-api-control-id cannot be whitespace or empty string') kwargs = {} @@ -270,7 +269,7 @@ def delete_privileged_api_control(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def get_privileged_api_control(ctx, from_json, privileged_api_control_id): - if isinstance(privileged_api_control_id, six.string_types) and len(privileged_api_control_id.strip()) == 0: + if isinstance(privileged_api_control_id, str) and len(privileged_api_control_id.strip()) == 0: raise click.UsageError('Parameter --privileged-api-control-id cannot be whitespace or empty string') kwargs = {} @@ -382,7 +381,7 @@ def list_privileged_api_controls(ctx, from_json, all_pages, page_size, compartme @cli_util.wrap_exceptions def update_privileged_api_control(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, privileged_api_control_id, display_name, description, resource_type, resources, notification_topic_id, approver_group_id_list, approver_group_level_list, privileged_operation_list, number_of_approvers, freeform_tags, defined_tags, if_match): - if isinstance(privileged_api_control_id, six.string_types) and len(privileged_api_control_id.strip()) == 0: + if isinstance(privileged_api_control_id, str) and len(privileged_api_control_id.strip()) == 0: raise click.UsageError('Parameter --privileged-api-control-id cannot be whitespace or empty string') if not force: if resources or approver_group_id_list or approver_group_level_list or privileged_operation_list or freeform_tags or defined_tags: diff --git a/services/apiaccesscontrol/src/oci_cli_privileged_api_requests/generated/privilegedapirequests_cli.py b/services/apiaccesscontrol/src/oci_cli_privileged_api_requests/generated/privilegedapirequests_cli.py index 1dd504dde..c04995e15 100644 --- a/services/apiaccesscontrol/src/oci_cli_privileged_api_requests/generated/privilegedapirequests_cli.py +++ b/services/apiaccesscontrol/src/oci_cli_privileged_api_requests/generated/privilegedapirequests_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -61,7 +60,7 @@ def privileged_api_request_group(): @cli_util.wrap_exceptions def approve_privileged_api_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, privileged_api_request_id, approver_comment, time_of_user_creation, if_match): - if isinstance(privileged_api_request_id, six.string_types) and len(privileged_api_request_id.strip()) == 0: + if isinstance(privileged_api_request_id, str) and len(privileged_api_request_id.strip()) == 0: raise click.UsageError('Parameter --privileged-api-request-id cannot be whitespace or empty string') kwargs = {} @@ -127,7 +126,7 @@ def approve_privileged_api_request(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def close_privileged_api_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, privileged_api_request_id, description, if_match): - if isinstance(privileged_api_request_id, six.string_types) and len(privileged_api_request_id.strip()) == 0: + if isinstance(privileged_api_request_id, str) and len(privileged_api_request_id.strip()) == 0: raise click.UsageError('Parameter --privileged-api-request-id cannot be whitespace or empty string') kwargs = {} @@ -284,7 +283,7 @@ def create_privileged_api_request(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def get_privileged_api_request(ctx, from_json, privileged_api_request_id): - if isinstance(privileged_api_request_id, six.string_types) and len(privileged_api_request_id.strip()) == 0: + if isinstance(privileged_api_request_id, str) and len(privileged_api_request_id.strip()) == 0: raise click.UsageError('Parameter --privileged-api-request-id cannot be whitespace or empty string') kwargs = {} @@ -383,7 +382,7 @@ def list_privileged_api_requests(ctx, from_json, all_pages, page_size, compartme @cli_util.wrap_exceptions def reject_privileged_api_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, privileged_api_request_id, approver_comment, if_match): - if isinstance(privileged_api_request_id, six.string_types) and len(privileged_api_request_id.strip()) == 0: + if isinstance(privileged_api_request_id, str) and len(privileged_api_request_id.strip()) == 0: raise click.UsageError('Parameter --privileged-api-request-id cannot be whitespace or empty string') kwargs = {} @@ -446,7 +445,7 @@ def reject_privileged_api_request(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def revoke_privileged_api_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, privileged_api_request_id, approver_comment, if_match): - if isinstance(privileged_api_request_id, six.string_types) and len(privileged_api_request_id.strip()) == 0: + if isinstance(privileged_api_request_id, str) and len(privileged_api_request_id.strip()) == 0: raise click.UsageError('Parameter --privileged-api-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/apiaccesscontrol/src/oci_cli_privileged_api_work_request/generated/privilegedapiworkrequest_cli.py b/services/apiaccesscontrol/src/oci_cli_privileged_api_work_request/generated/privilegedapiworkrequest_cli.py index b80560955..07b8a2c43 100644 --- a/services/apiaccesscontrol/src/oci_cli_privileged_api_work_request/generated/privilegedapiworkrequest_cli.py +++ b/services/apiaccesscontrol/src/oci_cli_privileged_api_work_request/generated/privilegedapiworkrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -62,7 +61,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -86,7 +85,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -117,7 +116,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -174,7 +173,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/apigateway/src/oci_cli_api_gateway/generated/apigateway_cli.py b/services/apigateway/src/oci_cli_api_gateway/generated/apigateway_cli.py index b5457d9a8..46e0d1706 100644 --- a/services/apigateway/src/oci_cli_api_gateway/generated/apigateway_cli.py +++ b/services/apigateway/src/oci_cli_api_gateway/generated/apigateway_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -92,7 +91,7 @@ def sdk_group(): @cli_util.wrap_exceptions def add_api_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, api_id, type, message, if_match): - if isinstance(api_id, six.string_types) and len(api_id.strip()) == 0: + if isinstance(api_id, str) and len(api_id.strip()) == 0: raise click.UsageError('Parameter --api-id cannot be whitespace or empty string') kwargs = {} @@ -153,7 +152,7 @@ def add_api_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def add_certificate_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, type, message, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -214,7 +213,7 @@ def add_certificate_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def add_sdk_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sdk_id, type, message, if_match): - if isinstance(sdk_id, six.string_types) and len(sdk_id.strip()) == 0: + if isinstance(sdk_id, str) and len(sdk_id.strip()) == 0: raise click.UsageError('Parameter --sdk-id cannot be whitespace or empty string') kwargs = {} @@ -275,7 +274,7 @@ def add_sdk_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def change_api_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, api_id, compartment_id, if_match, is_lock_override): - if isinstance(api_id, six.string_types) and len(api_id.strip()) == 0: + if isinstance(api_id, str) and len(api_id.strip()) == 0: raise click.UsageError('Parameter --api-id cannot be whitespace or empty string') kwargs = {} @@ -338,7 +337,7 @@ def change_api_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def change_certificate_compartment(ctx, from_json, certificate_id, compartment_id, if_match, is_lock_override): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -632,7 +631,7 @@ def create_sdk(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_api(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, api_id, if_match, is_lock_override): - if isinstance(api_id, six.string_types) and len(api_id.strip()) == 0: + if isinstance(api_id, str) and len(api_id.strip()) == 0: raise click.UsageError('Parameter --api-id cannot be whitespace or empty string') kwargs = {} @@ -693,7 +692,7 @@ def delete_api(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, if_match, is_lock_override): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -754,7 +753,7 @@ def delete_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_sdk(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sdk_id, if_match, is_lock_override): - if isinstance(sdk_id, six.string_types) and len(sdk_id.strip()) == 0: + if isinstance(sdk_id, str) and len(sdk_id.strip()) == 0: raise click.UsageError('Parameter --sdk-id cannot be whitespace or empty string') kwargs = {} @@ -809,7 +808,7 @@ def delete_sdk(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def get_api(ctx, from_json, api_id): - if isinstance(api_id, six.string_types) and len(api_id.strip()) == 0: + if isinstance(api_id, str) and len(api_id.strip()) == 0: raise click.UsageError('Parameter --api-id cannot be whitespace or empty string') kwargs = {} @@ -834,7 +833,7 @@ def get_api(ctx, from_json, api_id): @cli_util.wrap_exceptions def get_api_content(ctx, from_json, file, api_id, if_match, range): - if isinstance(api_id, six.string_types) and len(api_id.strip()) == 0: + if isinstance(api_id, str) and len(api_id.strip()) == 0: raise click.UsageError('Parameter --api-id cannot be whitespace or empty string') kwargs = {} @@ -883,7 +882,7 @@ def get_api_content(ctx, from_json, file, api_id, if_match, range): @cli_util.wrap_exceptions def get_api_deployment_specification(ctx, from_json, api_id, if_match): - if isinstance(api_id, six.string_types) and len(api_id.strip()) == 0: + if isinstance(api_id, str) and len(api_id.strip()) == 0: raise click.UsageError('Parameter --api-id cannot be whitespace or empty string') kwargs = {} @@ -908,7 +907,7 @@ def get_api_deployment_specification(ctx, from_json, api_id, if_match): @cli_util.wrap_exceptions def get_api_validations(ctx, from_json, api_id, if_match): - if isinstance(api_id, six.string_types) and len(api_id.strip()) == 0: + if isinstance(api_id, str) and len(api_id.strip()) == 0: raise click.UsageError('Parameter --api-id cannot be whitespace or empty string') kwargs = {} @@ -932,7 +931,7 @@ def get_api_validations(ctx, from_json, api_id, if_match): @cli_util.wrap_exceptions def get_certificate(ctx, from_json, certificate_id): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -954,7 +953,7 @@ def get_certificate(ctx, from_json, certificate_id): @cli_util.wrap_exceptions def get_sdk(ctx, from_json, sdk_id): - if isinstance(sdk_id, six.string_types) and len(sdk_id.strip()) == 0: + if isinstance(sdk_id, str) and len(sdk_id.strip()) == 0: raise click.UsageError('Parameter --sdk-id cannot be whitespace or empty string') kwargs = {} @@ -1234,7 +1233,7 @@ def list_sdks(ctx, from_json, all_pages, page_size, sdk_id, display_name, lifecy @cli_util.wrap_exceptions def remove_api_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, api_id, type, if_match): - if isinstance(api_id, six.string_types) and len(api_id.strip()) == 0: + if isinstance(api_id, str) and len(api_id.strip()) == 0: raise click.UsageError('Parameter --api-id cannot be whitespace or empty string') kwargs = {} @@ -1291,7 +1290,7 @@ def remove_api_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def remove_certificate_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, type, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -1348,7 +1347,7 @@ def remove_certificate_lock(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def remove_sdk_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sdk_id, type, if_match): - if isinstance(sdk_id, six.string_types) and len(sdk_id.strip()) == 0: + if isinstance(sdk_id, str) and len(sdk_id.strip()) == 0: raise click.UsageError('Parameter --sdk-id cannot be whitespace or empty string') kwargs = {} @@ -1416,7 +1415,7 @@ def remove_sdk_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def update_api(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, api_id, display_name, freeform_tags, defined_tags, content, if_match, is_lock_override): - if isinstance(api_id, six.string_types) and len(api_id.strip()) == 0: + if isinstance(api_id, str) and len(api_id.strip()) == 0: raise click.UsageError('Parameter --api-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1506,7 +1505,7 @@ def update_api(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_certificate(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, display_name, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1593,7 +1592,7 @@ def update_certificate(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_sdk(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sdk_id, display_name, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(sdk_id, six.string_types) and len(sdk_id.strip()) == 0: + if isinstance(sdk_id, str) and len(sdk_id.strip()) == 0: raise click.UsageError('Parameter --sdk-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/apigateway/src/oci_cli_deployment/generated/deployment_cli.py b/services/apigateway/src/oci_cli_deployment/generated/deployment_cli.py index 9cd9dd8ed..7a9897e5c 100644 --- a/services/apigateway/src/oci_cli_deployment/generated/deployment_cli.py +++ b/services/apigateway/src/oci_cli_deployment/generated/deployment_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -56,7 +55,7 @@ def deployment_group(): @cli_util.wrap_exceptions def add_deployment_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, type, message, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -117,7 +116,7 @@ def add_deployment_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def change_deployment_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, compartment_id, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -268,7 +267,7 @@ def create_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -323,7 +322,7 @@ def delete_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def get_deployment(ctx, from_json, deployment_id): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -417,7 +416,7 @@ def list_deployments(ctx, from_json, all_pages, page_size, compartment_id, gatew @cli_util.wrap_exceptions def remove_deployment_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, type, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -485,7 +484,7 @@ def remove_deployment_lock(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_deployment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, display_name, specification, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') if not force: if specification or freeform_tags or defined_tags: diff --git a/services/apigateway/src/oci_cli_gateway/generated/gateway_cli.py b/services/apigateway/src/oci_cli_gateway/generated/gateway_cli.py index b804392a9..47e511e18 100644 --- a/services/apigateway/src/oci_cli_gateway/generated/gateway_cli.py +++ b/services/apigateway/src/oci_cli_gateway/generated/gateway_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -56,7 +55,7 @@ def gateway_group(): @cli_util.wrap_exceptions def add_gateway_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, type, message, if_match): - if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0: + if isinstance(gateway_id, str) and len(gateway_id.strip()) == 0: raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string') kwargs = {} @@ -117,7 +116,7 @@ def add_gateway_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def change_gateway_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, compartment_id, if_match, is_lock_override): - if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0: + if isinstance(gateway_id, str) and len(gateway_id.strip()) == 0: raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string') kwargs = {} @@ -552,7 +551,7 @@ def create_gateway_no_cache(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, if_match, is_lock_override): - if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0: + if isinstance(gateway_id, str) and len(gateway_id.strip()) == 0: raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string') kwargs = {} @@ -607,7 +606,7 @@ def delete_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def get_gateway(ctx, from_json, gateway_id): - if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0: + if isinstance(gateway_id, str) and len(gateway_id.strip()) == 0: raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string') kwargs = {} @@ -701,7 +700,7 @@ def list_gateways(ctx, from_json, all_pages, page_size, compartment_id, certific @cli_util.wrap_exceptions def remove_gateway_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, type, if_match): - if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0: + if isinstance(gateway_id, str) and len(gateway_id.strip()) == 0: raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string') kwargs = {} @@ -774,7 +773,7 @@ def remove_gateway_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, display_name, network_security_group_ids, certificate_id, response_cache_details, freeform_tags, defined_tags, ca_bundles, if_match, is_lock_override): - if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0: + if isinstance(gateway_id, str) and len(gateway_id.strip()) == 0: raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string') if not force: if network_security_group_ids or response_cache_details or freeform_tags or defined_tags or ca_bundles: @@ -886,7 +885,7 @@ def update_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_gateway_external_resp_cache(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, response_cache_details_servers, response_cache_details_authentication_secret_id, response_cache_details_authentication_secret_version_number, display_name, network_security_group_ids, certificate_id, freeform_tags, defined_tags, ca_bundles, if_match, is_lock_override, response_cache_details_is_ssl_enabled, response_cache_details_is_ssl_verify_disabled, response_cache_details_connect_timeout_in_ms, response_cache_details_read_timeout_in_ms, response_cache_details_send_timeout_in_ms): - if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0: + if isinstance(gateway_id, str) and len(gateway_id.strip()) == 0: raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string') if not force: if network_security_group_ids or freeform_tags or defined_tags or ca_bundles: @@ -1008,7 +1007,7 @@ def update_gateway_external_resp_cache(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_gateway_no_cache(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, gateway_id, display_name, network_security_group_ids, certificate_id, freeform_tags, defined_tags, ca_bundles, if_match, is_lock_override): - if isinstance(gateway_id, six.string_types) and len(gateway_id.strip()) == 0: + if isinstance(gateway_id, str) and len(gateway_id.strip()) == 0: raise click.UsageError('Parameter --gateway-id cannot be whitespace or empty string') if not force: if network_security_group_ids or freeform_tags or defined_tags or ca_bundles: diff --git a/services/apigateway/src/oci_cli_subscribers/generated/subscribers_cli.py b/services/apigateway/src/oci_cli_subscribers/generated/subscribers_cli.py index 8d2111ef8..c5378b3da 100644 --- a/services/apigateway/src/oci_cli_subscribers/generated/subscribers_cli.py +++ b/services/apigateway/src/oci_cli_subscribers/generated/subscribers_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -49,7 +48,7 @@ def subscriber_group(): @cli_util.wrap_exceptions def add_subscriber_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscriber_id, type, message, if_match): - if isinstance(subscriber_id, six.string_types) and len(subscriber_id.strip()) == 0: + if isinstance(subscriber_id, str) and len(subscriber_id.strip()) == 0: raise click.UsageError('Parameter --subscriber-id cannot be whitespace or empty string') kwargs = {} @@ -110,7 +109,7 @@ def add_subscriber_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def change_subscriber_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscriber_id, compartment_id, if_match, is_lock_override): - if isinstance(subscriber_id, six.string_types) and len(subscriber_id.strip()) == 0: + if isinstance(subscriber_id, str) and len(subscriber_id.strip()) == 0: raise click.UsageError('Parameter --subscriber-id cannot be whitespace or empty string') kwargs = {} @@ -259,7 +258,7 @@ def create_subscriber(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_subscriber(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscriber_id, if_match, is_lock_override): - if isinstance(subscriber_id, six.string_types) and len(subscriber_id.strip()) == 0: + if isinstance(subscriber_id, str) and len(subscriber_id.strip()) == 0: raise click.UsageError('Parameter --subscriber-id cannot be whitespace or empty string') kwargs = {} @@ -314,7 +313,7 @@ def delete_subscriber(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def get_subscriber(ctx, from_json, subscriber_id): - if isinstance(subscriber_id, six.string_types) and len(subscriber_id.strip()) == 0: + if isinstance(subscriber_id, str) and len(subscriber_id.strip()) == 0: raise click.UsageError('Parameter --subscriber-id cannot be whitespace or empty string') kwargs = {} @@ -403,7 +402,7 @@ def list_subscribers(ctx, from_json, all_pages, page_size, compartment_id, displ @cli_util.wrap_exceptions def remove_subscriber_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscriber_id, type, if_match): - if isinstance(subscriber_id, six.string_types) and len(subscriber_id.strip()) == 0: + if isinstance(subscriber_id, str) and len(subscriber_id.strip()) == 0: raise click.UsageError('Parameter --subscriber-id cannot be whitespace or empty string') kwargs = {} @@ -474,7 +473,7 @@ def remove_subscriber_lock(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_subscriber(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, subscriber_id, display_name, clients, usage_plans, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(subscriber_id, six.string_types) and len(subscriber_id.strip()) == 0: + if isinstance(subscriber_id, str) and len(subscriber_id.strip()) == 0: raise click.UsageError('Parameter --subscriber-id cannot be whitespace or empty string') if not force: if clients or usage_plans or freeform_tags or defined_tags: diff --git a/services/apigateway/src/oci_cli_usage_plans/generated/usageplans_cli.py b/services/apigateway/src/oci_cli_usage_plans/generated/usageplans_cli.py index 2d2f60c8e..ff66965dc 100644 --- a/services/apigateway/src/oci_cli_usage_plans/generated/usageplans_cli.py +++ b/services/apigateway/src/oci_cli_usage_plans/generated/usageplans_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -49,7 +48,7 @@ def usage_plan_group(): @cli_util.wrap_exceptions def add_usage_plan_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, usage_plan_id, type, message, if_match): - if isinstance(usage_plan_id, six.string_types) and len(usage_plan_id.strip()) == 0: + if isinstance(usage_plan_id, str) and len(usage_plan_id.strip()) == 0: raise click.UsageError('Parameter --usage-plan-id cannot be whitespace or empty string') kwargs = {} @@ -110,7 +109,7 @@ def add_usage_plan_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def change_usage_plan_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, usage_plan_id, compartment_id, if_match, is_lock_override): - if isinstance(usage_plan_id, six.string_types) and len(usage_plan_id.strip()) == 0: + if isinstance(usage_plan_id, str) and len(usage_plan_id.strip()) == 0: raise click.UsageError('Parameter --usage-plan-id cannot be whitespace or empty string') kwargs = {} @@ -257,7 +256,7 @@ def create_usage_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_usage_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, usage_plan_id, if_match, is_lock_override): - if isinstance(usage_plan_id, six.string_types) and len(usage_plan_id.strip()) == 0: + if isinstance(usage_plan_id, str) and len(usage_plan_id.strip()) == 0: raise click.UsageError('Parameter --usage-plan-id cannot be whitespace or empty string') kwargs = {} @@ -312,7 +311,7 @@ def delete_usage_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def get_usage_plan(ctx, from_json, usage_plan_id): - if isinstance(usage_plan_id, six.string_types) and len(usage_plan_id.strip()) == 0: + if isinstance(usage_plan_id, str) and len(usage_plan_id.strip()) == 0: raise click.UsageError('Parameter --usage-plan-id cannot be whitespace or empty string') kwargs = {} @@ -401,7 +400,7 @@ def list_usage_plans(ctx, from_json, all_pages, page_size, compartment_id, displ @cli_util.wrap_exceptions def remove_usage_plan_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, usage_plan_id, type, if_match): - if isinstance(usage_plan_id, six.string_types) and len(usage_plan_id.strip()) == 0: + if isinstance(usage_plan_id, str) and len(usage_plan_id.strip()) == 0: raise click.UsageError('Parameter --usage-plan-id cannot be whitespace or empty string') kwargs = {} @@ -471,7 +470,7 @@ def remove_usage_plan_lock(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_usage_plan(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, usage_plan_id, display_name, entitlements, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(usage_plan_id, six.string_types) and len(usage_plan_id.strip()) == 0: + if isinstance(usage_plan_id, str) and len(usage_plan_id.strip()) == 0: raise click.UsageError('Parameter --usage-plan-id cannot be whitespace or empty string') if not force: if entitlements or freeform_tags or defined_tags: diff --git a/services/apigateway/src/oci_cli_work_requests/generated/workrequests_cli.py b/services/apigateway/src/oci_cli_work_requests/generated/workrequests_cli.py index d7ef11b52..67eef5040 100644 --- a/services/apigateway/src/oci_cli_work_requests/generated/workrequests_cli.py +++ b/services/apigateway/src/oci_cli_work_requests/generated/workrequests_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -66,7 +65,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -90,7 +89,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -121,7 +120,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -178,7 +177,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/apm_config/src/oci_cli_config/generated/config_cli.py b/services/apm_config/src/oci_cli_config/generated/config_cli.py index 8adb59ff9..961acf09f 100644 --- a/services/apm_config/src/oci_cli_config/generated/config_cli.py +++ b/services/apm_config/src/oci_cli_config/generated/config_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -456,7 +455,7 @@ def create_config_create_apdex_rules_details(ctx, from_json, apm_domain_id, rule @cli_util.wrap_exceptions def delete_config(ctx, from_json, apm_domain_id, config_id, if_match): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') kwargs = {} @@ -485,7 +484,7 @@ def delete_config(ctx, from_json, apm_domain_id, config_id, if_match): @cli_util.wrap_exceptions def delete_data_file(ctx, from_json, data_file_name, apm_domain_id, apm_type, if_match): - if isinstance(data_file_name, six.string_types) and len(data_file_name.strip()) == 0: + if isinstance(data_file_name, str) and len(data_file_name.strip()) == 0: raise click.UsageError('Parameter --data-file-name cannot be whitespace or empty string') kwargs = {} @@ -537,7 +536,7 @@ def export_configuration(ctx, from_json, configuration_map, apm_domain_id): @cli_util.wrap_exceptions def get_config(ctx, from_json, apm_domain_id, config_id): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') kwargs = {} @@ -563,7 +562,7 @@ def get_config(ctx, from_json, apm_domain_id, config_id): @cli_util.wrap_exceptions def get_data_file(ctx, from_json, file, data_file_name, apm_domain_id, apm_type): - if isinstance(data_file_name, six.string_types) and len(data_file_name.strip()) == 0: + if isinstance(data_file_name, str) and len(data_file_name.strip()) == 0: raise click.UsageError('Parameter --data-file-name cannot be whitespace or empty string') kwargs = {} @@ -630,7 +629,7 @@ def get_match_agents_with_attribute_key(ctx, from_json, apm_domain_id): @cli_util.wrap_exceptions def head_data_file(ctx, from_json, data_file_name, apm_domain_id, apm_type): - if isinstance(data_file_name, six.string_types) and len(data_file_name.strip()) == 0: + if isinstance(data_file_name, str) and len(data_file_name.strip()) == 0: raise click.UsageError('Parameter --data-file-name cannot be whitespace or empty string') kwargs = {} @@ -842,7 +841,7 @@ def list_data_files(ctx, from_json, all_pages, page_size, apm_domain_id, apm_typ @cli_util.wrap_exceptions def put_data_file(ctx, from_json, put_data_file_body, data_file_name, apm_domain_id, apm_type, content_md5, content_type, content_language, content_encoding, content_disposition, metadata): - if isinstance(data_file_name, six.string_types) and len(data_file_name.strip()) == 0: + if isinstance(data_file_name, str) and len(data_file_name.strip()) == 0: raise click.UsageError('Parameter --data-file-name cannot be whitespace or empty string') kwargs = {} @@ -994,7 +993,7 @@ def test_test_span_enrichment_details(ctx, from_json, apm_domain_id, options, sp @cli_util.wrap_exceptions def update_config(ctx, from_json, force, apm_domain_id, config_id, config_type, freeform_tags, defined_tags, if_match, opc_dry_run): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1051,7 +1050,7 @@ def update_config(ctx, from_json, force, apm_domain_id, config_id, config_type, @cli_util.wrap_exceptions def update_config_update_metric_group_details(ctx, from_json, force, apm_domain_id, config_id, freeform_tags, defined_tags, display_name, filter_id, namespace, dimensions, metrics, if_match, opc_dry_run): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or dimensions or metrics: @@ -1117,7 +1116,7 @@ def update_config_update_metric_group_details(ctx, from_json, force, apm_domain_ @cli_util.wrap_exceptions def update_config_update_agent_config_details(ctx, from_json, force, apm_domain_id, config_id, freeform_tags, defined_tags, config, overrides, if_match, opc_dry_run): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or config or overrides: @@ -1178,7 +1177,7 @@ def update_config_update_agent_config_details(ctx, from_json, force, apm_domain_ @cli_util.wrap_exceptions def update_config_update_macs_apm_extension_details(ctx, from_json, force, apm_domain_id, config_id, freeform_tags, defined_tags, display_name, process_filter, run_as_user, service_name, agent_version, attach_install_dir, if_match, opc_dry_run): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or process_filter: @@ -1247,7 +1246,7 @@ def update_config_update_macs_apm_extension_details(ctx, from_json, force, apm_d @cli_util.wrap_exceptions def update_config_update_apdex_rules_details(ctx, from_json, force, apm_domain_id, config_id, rules, freeform_tags, defined_tags, display_name, if_match, opc_dry_run): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or rules: @@ -1303,7 +1302,7 @@ def update_config_update_apdex_rules_details(ctx, from_json, force, apm_domain_i @cli_util.wrap_exceptions def update_config_update_span_filter_details(ctx, from_json, force, apm_domain_id, config_id, freeform_tags, defined_tags, display_name, filter_text, description, if_match, opc_dry_run): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1365,7 +1364,7 @@ def update_config_update_span_filter_details(ctx, from_json, force, apm_domain_i @cli_util.wrap_exceptions def update_config_update_options_details(ctx, from_json, force, apm_domain_id, config_id, freeform_tags, defined_tags, display_name, options, group, description, if_match, opc_dry_run): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or options: diff --git a/services/apm_control_plane/src/oci_cli_apm_domain/generated/apmdomain_cli.py b/services/apm_control_plane/src/oci_cli_apm_domain/generated/apmdomain_cli.py index 7219a6389..23088f839 100644 --- a/services/apm_control_plane/src/oci_cli_apm_domain/generated/apmdomain_cli.py +++ b/services/apm_control_plane/src/oci_cli_apm_domain/generated/apmdomain_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -74,7 +73,7 @@ def data_key_group(): @cli_util.wrap_exceptions def change_apm_domain_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, apm_domain_id, compartment_id, if_match): - if isinstance(apm_domain_id, six.string_types) and len(apm_domain_id.strip()) == 0: + if isinstance(apm_domain_id, str) and len(apm_domain_id.strip()) == 0: raise click.UsageError('Parameter --apm-domain-id cannot be whitespace or empty string') kwargs = {} @@ -210,7 +209,7 @@ def create_apm_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_apm_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, apm_domain_id, if_match): - if isinstance(apm_domain_id, six.string_types) and len(apm_domain_id.strip()) == 0: + if isinstance(apm_domain_id, str) and len(apm_domain_id.strip()) == 0: raise click.UsageError('Parameter --apm-domain-id cannot be whitespace or empty string') kwargs = {} @@ -266,7 +265,7 @@ def delete_apm_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def generate_data_keys(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, generate_data_keys_list_details, apm_domain_id, if_match): - if isinstance(apm_domain_id, six.string_types) and len(apm_domain_id.strip()) == 0: + if isinstance(apm_domain_id, str) and len(apm_domain_id.strip()) == 0: raise click.UsageError('Parameter --apm-domain-id cannot be whitespace or empty string') kwargs = {} @@ -318,7 +317,7 @@ def generate_data_keys(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_apm_domain(ctx, from_json, apm_domain_id): - if isinstance(apm_domain_id, six.string_types) and len(apm_domain_id.strip()) == 0: + if isinstance(apm_domain_id, str) and len(apm_domain_id.strip()) == 0: raise click.UsageError('Parameter --apm-domain-id cannot be whitespace or empty string') kwargs = {} @@ -340,7 +339,7 @@ def get_apm_domain(ctx, from_json, apm_domain_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -369,7 +368,7 @@ def list_apm_domain_work_requests(ctx, from_json, all_pages, page_size, apm_doma if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(apm_domain_id, six.string_types) and len(apm_domain_id.strip()) == 0: + if isinstance(apm_domain_id, str) and len(apm_domain_id.strip()) == 0: raise click.UsageError('Parameter --apm-domain-id cannot be whitespace or empty string') kwargs = {} @@ -475,7 +474,7 @@ def list_apm_domains(ctx, from_json, all_pages, page_size, compartment_id, displ @cli_util.wrap_exceptions def list_data_keys(ctx, from_json, all_pages, apm_domain_id, data_key_type): - if isinstance(apm_domain_id, six.string_types) and len(apm_domain_id.strip()) == 0: + if isinstance(apm_domain_id, str) and len(apm_domain_id.strip()) == 0: raise click.UsageError('Parameter --apm-domain-id cannot be whitespace or empty string') kwargs = {} @@ -506,7 +505,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -557,7 +556,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -654,7 +653,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def remove_data_keys(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, apm_domain_id, remove_data_keys_list_details, if_match): - if isinstance(apm_domain_id, six.string_types) and len(apm_domain_id.strip()) == 0: + if isinstance(apm_domain_id, str) and len(apm_domain_id.strip()) == 0: raise click.UsageError('Parameter --apm-domain-id cannot be whitespace or empty string') kwargs = {} @@ -716,7 +715,7 @@ def remove_data_keys(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def update_apm_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, apm_domain_id, display_name, description, log_group_id, freeform_tags, defined_tags, if_match): - if isinstance(apm_domain_id, six.string_types) and len(apm_domain_id.strip()) == 0: + if isinstance(apm_domain_id, str) and len(apm_domain_id.strip()) == 0: raise click.UsageError('Parameter --apm-domain-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/apm_synthetics/src/oci_cli_apm_synthetic/generated/apmsynthetic_cli.py b/services/apm_synthetics/src/oci_cli_apm_synthetic/generated/apmsynthetic_cli.py index cf1b7c328..93b856998 100644 --- a/services/apm_synthetics/src/oci_cli_apm_synthetic/generated/apmsynthetic_cli.py +++ b/services/apm_synthetics/src/oci_cli_apm_synthetic/generated/apmsynthetic_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -126,7 +125,7 @@ def public_vantage_point_collection_group(): @cli_util.wrap_exceptions def aggregate_network_data(ctx, from_json, apm_domain_id, monitor_id, vantage_point_execution_times): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') kwargs = {} @@ -1642,7 +1641,7 @@ def create_script(ctx, from_json, apm_domain_id, display_name, content_type, con @cli_util.wrap_exceptions def create_worker(ctx, from_json, apm_domain_id, on_premise_vantage_point_id, name, version_parameterconflict, resource_principal_token_public_key, configuration_details, worker_type, status, priority, freeform_tags, defined_tags): - if isinstance(on_premise_vantage_point_id, six.string_types) and len(on_premise_vantage_point_id.strip()) == 0: + if isinstance(on_premise_vantage_point_id, str) and len(on_premise_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --on-premise-vantage-point-id cannot be whitespace or empty string') kwargs = {} @@ -1693,7 +1692,7 @@ def create_worker(ctx, from_json, apm_domain_id, on_premise_vantage_point_id, na @cli_util.wrap_exceptions def delete_dedicated_vantage_point(ctx, from_json, apm_domain_id, dedicated_vantage_point_id, if_match): - if isinstance(dedicated_vantage_point_id, six.string_types) and len(dedicated_vantage_point_id.strip()) == 0: + if isinstance(dedicated_vantage_point_id, str) and len(dedicated_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-vantage-point-id cannot be whitespace or empty string') kwargs = {} @@ -1721,7 +1720,7 @@ def delete_dedicated_vantage_point(ctx, from_json, apm_domain_id, dedicated_vant @cli_util.wrap_exceptions def delete_monitor(ctx, from_json, apm_domain_id, monitor_id, if_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') kwargs = {} @@ -1749,7 +1748,7 @@ def delete_monitor(ctx, from_json, apm_domain_id, monitor_id, if_match): @cli_util.wrap_exceptions def delete_on_premise_vantage_point(ctx, from_json, apm_domain_id, on_premise_vantage_point_id, if_match): - if isinstance(on_premise_vantage_point_id, six.string_types) and len(on_premise_vantage_point_id.strip()) == 0: + if isinstance(on_premise_vantage_point_id, str) and len(on_premise_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --on-premise-vantage-point-id cannot be whitespace or empty string') kwargs = {} @@ -1777,7 +1776,7 @@ def delete_on_premise_vantage_point(ctx, from_json, apm_domain_id, on_premise_va @cli_util.wrap_exceptions def delete_script(ctx, from_json, apm_domain_id, script_id, if_match): - if isinstance(script_id, six.string_types) and len(script_id.strip()) == 0: + if isinstance(script_id, str) and len(script_id.strip()) == 0: raise click.UsageError('Parameter --script-id cannot be whitespace or empty string') kwargs = {} @@ -1806,10 +1805,10 @@ def delete_script(ctx, from_json, apm_domain_id, script_id, if_match): @cli_util.wrap_exceptions def delete_worker(ctx, from_json, apm_domain_id, on_premise_vantage_point_id, worker_id, if_match): - if isinstance(on_premise_vantage_point_id, six.string_types) and len(on_premise_vantage_point_id.strip()) == 0: + if isinstance(on_premise_vantage_point_id, str) and len(on_premise_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --on-premise-vantage-point-id cannot be whitespace or empty string') - if isinstance(worker_id, six.string_types) and len(worker_id.strip()) == 0: + if isinstance(worker_id, str) and len(worker_id.strip()) == 0: raise click.UsageError('Parameter --worker-id cannot be whitespace or empty string') kwargs = {} @@ -1836,7 +1835,7 @@ def delete_worker(ctx, from_json, apm_domain_id, on_premise_vantage_point_id, wo @cli_util.wrap_exceptions def get_dedicated_vantage_point(ctx, from_json, apm_domain_id, dedicated_vantage_point_id): - if isinstance(dedicated_vantage_point_id, six.string_types) and len(dedicated_vantage_point_id.strip()) == 0: + if isinstance(dedicated_vantage_point_id, str) and len(dedicated_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-vantage-point-id cannot be whitespace or empty string') kwargs = {} @@ -1860,7 +1859,7 @@ def get_dedicated_vantage_point(ctx, from_json, apm_domain_id, dedicated_vantage @cli_util.wrap_exceptions def get_monitor(ctx, from_json, apm_domain_id, monitor_id): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') kwargs = {} @@ -1888,10 +1887,10 @@ def get_monitor(ctx, from_json, apm_domain_id, monitor_id): @cli_util.wrap_exceptions def get_monitor_result(ctx, from_json, apm_domain_id, monitor_id, vantage_point, result_type, result_content_type, execution_time): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') - if isinstance(execution_time, six.string_types) and len(execution_time.strip()) == 0: + if isinstance(execution_time, str) and len(execution_time.strip()) == 0: raise click.UsageError('Parameter --execution-time cannot be whitespace or empty string') kwargs = {} @@ -1919,7 +1918,7 @@ def get_monitor_result(ctx, from_json, apm_domain_id, monitor_id, vantage_point, @cli_util.wrap_exceptions def get_on_premise_vantage_point(ctx, from_json, apm_domain_id, on_premise_vantage_point_id): - if isinstance(on_premise_vantage_point_id, six.string_types) and len(on_premise_vantage_point_id.strip()) == 0: + if isinstance(on_premise_vantage_point_id, str) and len(on_premise_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --on-premise-vantage-point-id cannot be whitespace or empty string') kwargs = {} @@ -1943,7 +1942,7 @@ def get_on_premise_vantage_point(ctx, from_json, apm_domain_id, on_premise_vanta @cli_util.wrap_exceptions def get_script(ctx, from_json, apm_domain_id, script_id): - if isinstance(script_id, six.string_types) and len(script_id.strip()) == 0: + if isinstance(script_id, str) and len(script_id.strip()) == 0: raise click.UsageError('Parameter --script-id cannot be whitespace or empty string') kwargs = {} @@ -1968,10 +1967,10 @@ def get_script(ctx, from_json, apm_domain_id, script_id): @cli_util.wrap_exceptions def get_worker(ctx, from_json, apm_domain_id, on_premise_vantage_point_id, worker_id): - if isinstance(on_premise_vantage_point_id, six.string_types) and len(on_premise_vantage_point_id.strip()) == 0: + if isinstance(on_premise_vantage_point_id, str) and len(on_premise_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --on-premise-vantage-point-id cannot be whitespace or empty string') - if isinstance(worker_id, six.string_types) and len(worker_id.strip()) == 0: + if isinstance(worker_id, str) and len(worker_id.strip()) == 0: raise click.UsageError('Parameter --worker-id cannot be whitespace or empty string') kwargs = {} @@ -2339,7 +2338,7 @@ def list_workers(ctx, from_json, all_pages, page_size, apm_domain_id, on_premise if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(on_premise_vantage_point_id, six.string_types) and len(on_premise_vantage_point_id.strip()) == 0: + if isinstance(on_premise_vantage_point_id, str) and len(on_premise_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --on-premise-vantage-point-id cannot be whitespace or empty string') kwargs = {} @@ -2406,7 +2405,7 @@ def list_workers(ctx, from_json, all_pages, page_size, apm_domain_id, on_premise @cli_util.wrap_exceptions def update_dedicated_vantage_point(ctx, from_json, force, apm_domain_id, dedicated_vantage_point_id, status, dvp_stack_details, region_parameterconflict, freeform_tags, defined_tags, if_match): - if isinstance(dedicated_vantage_point_id, six.string_types) and len(dedicated_vantage_point_id.strip()) == 0: + if isinstance(dedicated_vantage_point_id, str) and len(dedicated_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-vantage-point-id cannot be whitespace or empty string') if not force: if dvp_stack_details or freeform_tags or defined_tags: @@ -2464,7 +2463,7 @@ def update_dedicated_vantage_point(ctx, from_json, force, apm_domain_id, dedicat @cli_util.wrap_exceptions def update_dedicated_vantage_point_oracle_rm_stack(ctx, from_json, force, apm_domain_id, dedicated_vantage_point_id, dvp_stack_details_dvp_version, dvp_stack_details_dvp_stack_id, dvp_stack_details_dvp_stream_id, status, region_parameterconflict, freeform_tags, defined_tags, if_match): - if isinstance(dedicated_vantage_point_id, six.string_types) and len(dedicated_vantage_point_id.strip()) == 0: + if isinstance(dedicated_vantage_point_id, str) and len(dedicated_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-vantage-point-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2538,7 +2537,7 @@ def update_dedicated_vantage_point_oracle_rm_stack(ctx, from_json, force, apm_do @cli_util.wrap_exceptions def update_monitor(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, configuration, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or configuration or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -2658,7 +2657,7 @@ def update_monitor(ctx, from_json, force, apm_domain_id, monitor_id, display_nam @cli_util.wrap_exceptions def update_monitor_ftp_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration, configuration_ftp_protocol, configuration_ftp_request_type, configuration_is_active_mode, configuration_ftp_basic_authentication_details, configuration_download_size_limit_in_bytes, configuration_upload_file_size_in_bytes, configuration_network_configuration, configuration_verify_response_codes, configuration_verify_response_content): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -2804,7 +2803,7 @@ def update_monitor_ftp_monitor_configuration(ctx, from_json, force, apm_domain_i @cli_util.wrap_exceptions def update_monitor_dns_sec_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration, configuration_record_type, configuration_verify_response_content): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -2930,7 +2929,7 @@ def update_monitor_dns_sec_monitor_configuration(ctx, from_json, force, apm_doma @cli_util.wrap_exceptions def update_monitor_dns_trace_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration, configuration_record_type, configuration_protocol, configuration_verify_response_content): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -3063,7 +3062,7 @@ def update_monitor_dns_trace_monitor_configuration(ctx, from_json, force, apm_do @cli_util.wrap_exceptions def update_monitor_sql_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration, configuration_database_type, configuration_query, configuration_database_authentication_details, configuration_database_role, configuration_database_connection_type, configuration_connection_string, configuration_database_wallet_details): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -3204,7 +3203,7 @@ def update_monitor_sql_monitor_configuration(ctx, from_json, force, apm_domain_i @cli_util.wrap_exceptions def update_monitor_scripted_rest_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration, configuration_req_authentication_scheme, configuration_verify_response_codes, configuration_network_configuration): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -3336,7 +3335,7 @@ def update_monitor_scripted_rest_monitor_configuration(ctx, from_json, force, ap @cli_util.wrap_exceptions def update_monitor_dns_server_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration, configuration_record_type, configuration_name_server, configuration_network_configuration, configuration_protocol, configuration_verify_response_content, configuration_is_query_recursive): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -3474,7 +3473,7 @@ def update_monitor_dns_server_monitor_configuration(ctx, from_json, force, apm_d @cli_util.wrap_exceptions def update_monitor_scripted_browser_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration, configuration_is_certificate_validation_enabled, configuration_is_default_snapshot_enabled, configuration_network_configuration): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -3616,7 +3615,7 @@ def update_monitor_scripted_browser_monitor_configuration(ctx, from_json, force, @cli_util.wrap_exceptions def update_monitor_rest_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration, configuration_is_redirection_enabled, configuration_is_certificate_validation_enabled, configuration_request_method, configuration_req_authentication_scheme, configuration_req_authentication_details, configuration_client_certificate_details, configuration_request_headers, configuration_request_query_params, configuration_request_post_body, configuration_verify_response_content, configuration_verify_response_codes, configuration_network_configuration): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -3776,7 +3775,7 @@ def update_monitor_rest_monitor_configuration(ctx, from_json, force, apm_domain_ @cli_util.wrap_exceptions def update_monitor_browser_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration, configuration_is_certificate_validation_enabled, configuration_is_default_snapshot_enabled, configuration_verify_texts, configuration_verify_response_codes, configuration_network_configuration): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -3909,7 +3908,7 @@ def update_monitor_browser_monitor_configuration(ctx, from_json, force, apm_doma @cli_util.wrap_exceptions def update_monitor_network_monitor_configuration(ctx, from_json, force, apm_domain_id, monitor_id, configuration_network_configuration, display_name, vantage_points, script_id, status, repeat_interval_in_seconds, is_run_once, timeout_in_seconds, target, script_parameters, availability_configuration, maintenance_window_schedule, freeform_tags, defined_tags, is_run_now, scheduling_policy, batch_interval_in_seconds, is_i_pv6, if_match, configuration_is_failure_retried, configuration_dns_configuration): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if vantage_points or script_parameters or availability_configuration or maintenance_window_schedule or freeform_tags or defined_tags: @@ -4009,7 +4008,7 @@ def update_monitor_network_monitor_configuration(ctx, from_json, force, apm_doma @cli_util.wrap_exceptions def update_on_premise_vantage_point(ctx, from_json, force, apm_domain_id, on_premise_vantage_point_id, description, freeform_tags, defined_tags, if_match): - if isinstance(on_premise_vantage_point_id, six.string_types) and len(on_premise_vantage_point_id.strip()) == 0: + if isinstance(on_premise_vantage_point_id, str) and len(on_premise_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --on-premise-vantage-point-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4063,7 +4062,7 @@ def update_on_premise_vantage_point(ctx, from_json, force, apm_domain_id, on_pre @cli_util.wrap_exceptions def update_script(ctx, from_json, force, apm_domain_id, script_id, display_name, content_type, content, content_file_name, parameters, freeform_tags, defined_tags, if_match): - if isinstance(script_id, six.string_types) and len(script_id.strip()) == 0: + if isinstance(script_id, str) and len(script_id.strip()) == 0: raise click.UsageError('Parameter --script-id cannot be whitespace or empty string') if not force: if parameters or freeform_tags or defined_tags: @@ -4126,10 +4125,10 @@ def update_script(ctx, from_json, force, apm_domain_id, script_id, display_name, @cli_util.wrap_exceptions def update_worker(ctx, from_json, force, apm_domain_id, on_premise_vantage_point_id, worker_id, configuration_details, status, priority, freeform_tags, defined_tags, if_match): - if isinstance(on_premise_vantage_point_id, six.string_types) and len(on_premise_vantage_point_id.strip()) == 0: + if isinstance(on_premise_vantage_point_id, str) and len(on_premise_vantage_point_id.strip()) == 0: raise click.UsageError('Parameter --on-premise-vantage-point-id cannot be whitespace or empty string') - if isinstance(worker_id, six.string_types) and len(worker_id.strip()) == 0: + if isinstance(worker_id, str) and len(worker_id.strip()) == 0: raise click.UsageError('Parameter --worker-id cannot be whitespace or empty string') if not force: if configuration_details or freeform_tags or defined_tags: diff --git a/services/apm_traces/src/oci_cli_attributes/generated/attributes_cli.py b/services/apm_traces/src/oci_cli_attributes/generated/attributes_cli.py index 2ff3178b3..d4067c2d6 100644 --- a/services/apm_traces/src/oci_cli_attributes/generated/attributes_cli.py +++ b/services/apm_traces/src/oci_cli_attributes/generated/attributes_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/apm_traces/src/oci_cli_query/generated/query_cli.py b/services/apm_traces/src/oci_cli_query/generated/query_cli.py index 746b698aa..9a86d10a2 100644 --- a/services/apm_traces/src/oci_cli_query/generated/query_cli.py +++ b/services/apm_traces/src/oci_cli_query/generated/query_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/apm_traces/src/oci_cli_scheduled_query/generated/scheduledquery_cli.py b/services/apm_traces/src/oci_cli_scheduled_query/generated/scheduledquery_cli.py index bd618bccc..a5ec7e510 100644 --- a/services/apm_traces/src/oci_cli_scheduled_query/generated/scheduledquery_cli.py +++ b/services/apm_traces/src/oci_cli_scheduled_query/generated/scheduledquery_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -154,7 +153,7 @@ def create_scheduled_query(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_scheduled_query(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, apm_domain_id, scheduled_query_id, if_match): - if isinstance(scheduled_query_id, six.string_types) and len(scheduled_query_id.strip()) == 0: + if isinstance(scheduled_query_id, str) and len(scheduled_query_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-query-id cannot be whitespace or empty string') kwargs = {} @@ -215,7 +214,7 @@ def delete_scheduled_query(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def get_scheduled_query(ctx, from_json, apm_domain_id, scheduled_query_id): - if isinstance(scheduled_query_id, six.string_types) and len(scheduled_query_id.strip()) == 0: + if isinstance(scheduled_query_id, str) and len(scheduled_query_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-query-id cannot be whitespace or empty string') kwargs = {} @@ -314,7 +313,7 @@ def list_scheduled_queries(ctx, from_json, all_pages, page_size, apm_domain_id, @cli_util.wrap_exceptions def update_scheduled_query(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, apm_domain_id, scheduled_query_id, scheduled_query_name, scheduled_query_processing_type, scheduled_query_processing_sub_type, scheduled_query_text, scheduled_query_schedule, scheduled_query_description, scheduled_query_maximum_runtime_in_seconds, scheduled_query_retention_period_in_ms, scheduled_query_processing_configuration, scheduled_query_retention_criteria, freeform_tags, defined_tags, if_match, opc_dry_run): - if isinstance(scheduled_query_id, six.string_types) and len(scheduled_query_id.strip()) == 0: + if isinstance(scheduled_query_id, str) and len(scheduled_query_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-query-id cannot be whitespace or empty string') if not force: if scheduled_query_processing_configuration or freeform_tags or defined_tags: diff --git a/services/apm_traces/src/oci_cli_trace/generated/trace_cli.py b/services/apm_traces/src/oci_cli_trace/generated/trace_cli.py index a5a7ef4ca..2d6f0c7b0 100644 --- a/services/apm_traces/src/oci_cli_trace/generated/trace_cli.py +++ b/services/apm_traces/src/oci_cli_trace/generated/trace_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -74,7 +73,7 @@ def span_group(): @cli_util.wrap_exceptions def get_aggregated_snapshot(ctx, from_json, apm_domain_id, trace_key, service_name, server_name, span_key, span_name): - if isinstance(trace_key, six.string_types) and len(trace_key.strip()) == 0: + if isinstance(trace_key, str) and len(trace_key.strip()) == 0: raise click.UsageError('Parameter --trace-key cannot be whitespace or empty string') kwargs = {} @@ -108,7 +107,7 @@ def get_aggregated_snapshot(ctx, from_json, apm_domain_id, trace_key, service_na @cli_util.wrap_exceptions def get_log(ctx, from_json, apm_domain_id, log_key, time_log_started_greater_than_or_equal_to, time_log_ended_less_than): - if isinstance(log_key, six.string_types) and len(log_key.strip()) == 0: + if isinstance(log_key, str) and len(log_key.strip()) == 0: raise click.UsageError('Parameter --log-key cannot be whitespace or empty string') kwargs = {} @@ -138,10 +137,10 @@ def get_log(ctx, from_json, apm_domain_id, log_key, time_log_started_greater_tha @cli_util.wrap_exceptions def get_span(ctx, from_json, apm_domain_id, span_key, trace_key, time_span_started_greater_than_or_equal_to, time_span_started_less_than, span_namespace): - if isinstance(span_key, six.string_types) and len(span_key.strip()) == 0: + if isinstance(span_key, str) and len(span_key.strip()) == 0: raise click.UsageError('Parameter --span-key cannot be whitespace or empty string') - if isinstance(trace_key, six.string_types) and len(trace_key.strip()) == 0: + if isinstance(trace_key, str) and len(trace_key.strip()) == 0: raise click.UsageError('Parameter --trace-key cannot be whitespace or empty string') kwargs = {} @@ -175,7 +174,7 @@ def get_span(ctx, from_json, apm_domain_id, span_key, trace_key, time_span_start @cli_util.wrap_exceptions def get_trace(ctx, from_json, apm_domain_id, trace_key, time_trace_started_greater_than_or_equal_to, time_trace_started_less_than, trace_namespace): - if isinstance(trace_key, six.string_types) and len(trace_key.strip()) == 0: + if isinstance(trace_key, str) and len(trace_key.strip()) == 0: raise click.UsageError('Parameter --trace-key cannot be whitespace or empty string') kwargs = {} @@ -208,7 +207,7 @@ def get_trace(ctx, from_json, apm_domain_id, trace_key, time_trace_started_great @cli_util.wrap_exceptions def get_trace_snapshot(ctx, from_json, apm_domain_id, trace_key, is_summarized, thread_id, snapshot_time): - if isinstance(trace_key, six.string_types) and len(trace_key.strip()) == 0: + if isinstance(trace_key, str) and len(trace_key.strip()) == 0: raise click.UsageError('Parameter --trace-key cannot be whitespace or empty string') kwargs = {} diff --git a/services/appmgmt_control/src/oci_cli_appmgmt_control/generated/appmgmtcontrol_cli.py b/services/appmgmt_control/src/oci_cli_appmgmt_control/generated/appmgmtcontrol_cli.py index 81c5aae02..ecf282be0 100644 --- a/services/appmgmt_control/src/oci_cli_appmgmt_control/generated/appmgmtcontrol_cli.py +++ b/services/appmgmt_control/src/oci_cli_appmgmt_control/generated/appmgmtcontrol_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -72,7 +71,7 @@ def work_request_group(): @cli_util.wrap_exceptions def activate_monitoring_plugin(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_instance_id, if_match): - if isinstance(monitored_instance_id, six.string_types) and len(monitored_instance_id.strip()) == 0: + if isinstance(monitored_instance_id, str) and len(monitored_instance_id.strip()) == 0: raise click.UsageError('Parameter --monitored-instance-id cannot be whitespace or empty string') kwargs = {} @@ -123,7 +122,7 @@ def activate_monitoring_plugin(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_monitored_instance(ctx, from_json, monitored_instance_id): - if isinstance(monitored_instance_id, six.string_types) and len(monitored_instance_id.strip()) == 0: + if isinstance(monitored_instance_id, str) and len(monitored_instance_id.strip()) == 0: raise click.UsageError('Parameter --monitored-instance-id cannot be whitespace or empty string') kwargs = {} @@ -145,7 +144,7 @@ def get_monitored_instance(ctx, from_json, monitored_instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -231,7 +230,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -282,7 +281,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -380,7 +379,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def publish_top_processes_metrics(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_instance_id): - if isinstance(monitored_instance_id, six.string_types) and len(monitored_instance_id.strip()) == 0: + if isinstance(monitored_instance_id, str) and len(monitored_instance_id.strip()) == 0: raise click.UsageError('Parameter --monitored-instance-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/artifacts/src/oci_cli_artifacts/generated/artifacts_cli.py b/services/artifacts/src/oci_cli_artifacts/generated/artifacts_cli.py index e1f94a285..a5566d823 100644 --- a/services/artifacts/src/oci_cli_artifacts/generated/artifacts_cli.py +++ b/services/artifacts/src/oci_cli_artifacts/generated/artifacts_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -99,7 +98,7 @@ def container_image_signature_group(): @cli_util.wrap_exceptions def change_container_repository_compartment(ctx, from_json, repository_id, compartment_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -132,7 +131,7 @@ def change_container_repository_compartment(ctx, from_json, repository_id, compa @cli_util.wrap_exceptions def change_repository_compartment(ctx, from_json, repository_id, compartment_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -471,7 +470,7 @@ def create_repository_create_generic_repository_details(ctx, from_json, wait_for @cli_util.wrap_exceptions def delete_container_image(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, image_id, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -537,7 +536,7 @@ def delete_container_image(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_container_image_signature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, image_signature_id, if_match): - if isinstance(image_signature_id, six.string_types) and len(image_signature_id.strip()) == 0: + if isinstance(image_signature_id, str) and len(image_signature_id.strip()) == 0: raise click.UsageError('Parameter --image-signature-id cannot be whitespace or empty string') kwargs = {} @@ -603,7 +602,7 @@ def delete_container_image_signature(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_container_repository(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -669,7 +668,7 @@ def delete_container_repository(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_generic_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') kwargs = {} @@ -738,13 +737,13 @@ def delete_generic_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_generic_artifact_by_path(ctx, from_json, repository_id, artifact_path, version_parameterconflict, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(artifact_path, six.string_types) and len(artifact_path.strip()) == 0: + if isinstance(artifact_path, str) and len(artifact_path.strip()) == 0: raise click.UsageError('Parameter --artifact-path cannot be whitespace or empty string') - if isinstance(version_parameterconflict, six.string_types) and len(version_parameterconflict.strip()) == 0: + if isinstance(version_parameterconflict, str) and len(version_parameterconflict.strip()) == 0: raise click.UsageError('Parameter --version-parameterconflict cannot be whitespace or empty string') kwargs = {} @@ -777,7 +776,7 @@ def delete_generic_artifact_by_path(ctx, from_json, repository_id, artifact_path @cli_util.wrap_exceptions def delete_repository(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -857,7 +856,7 @@ def get_container_configuration(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_container_image(ctx, from_json, image_id): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -881,7 +880,7 @@ def get_container_image(ctx, from_json, image_id): @cli_util.wrap_exceptions def get_container_image_signature(ctx, from_json, image_signature_id): - if isinstance(image_signature_id, six.string_types) and len(image_signature_id.strip()) == 0: + if isinstance(image_signature_id, str) and len(image_signature_id.strip()) == 0: raise click.UsageError('Parameter --image-signature-id cannot be whitespace or empty string') kwargs = {} @@ -905,7 +904,7 @@ def get_container_image_signature(ctx, from_json, image_signature_id): @cli_util.wrap_exceptions def get_container_repository(ctx, from_json, repository_id): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -929,7 +928,7 @@ def get_container_repository(ctx, from_json, repository_id): @cli_util.wrap_exceptions def get_generic_artifact(ctx, from_json, artifact_id): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') kwargs = {} @@ -959,13 +958,13 @@ def get_generic_artifact(ctx, from_json, artifact_id): @cli_util.wrap_exceptions def get_generic_artifact_by_path(ctx, from_json, repository_id, artifact_path, version_parameterconflict): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(artifact_path, six.string_types) and len(artifact_path.strip()) == 0: + if isinstance(artifact_path, str) and len(artifact_path.strip()) == 0: raise click.UsageError('Parameter --artifact-path cannot be whitespace or empty string') - if isinstance(version_parameterconflict, six.string_types) and len(version_parameterconflict.strip()) == 0: + if isinstance(version_parameterconflict, str) and len(version_parameterconflict.strip()) == 0: raise click.UsageError('Parameter --version-parameterconflict cannot be whitespace or empty string') kwargs = {} @@ -991,7 +990,7 @@ def get_generic_artifact_by_path(ctx, from_json, repository_id, artifact_path, v @cli_util.wrap_exceptions def get_repository(ctx, from_json, repository_id): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -1450,7 +1449,7 @@ def lookup_container_image_by_uri(ctx, from_json, image_uri): @cli_util.wrap_exceptions def remove_container_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, image_id, version_parameterconflict, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -1509,7 +1508,7 @@ def remove_container_version(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def restore_container_image(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, image_id, version_parameterconflict, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -1606,7 +1605,7 @@ def update_container_configuration(ctx, from_json, compartment_id, is_repository @cli_util.wrap_exceptions def update_container_image(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, image_id, freeform_tags, defined_tags, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1680,7 +1679,7 @@ def update_container_image(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_container_image_signature(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, image_signature_id, freeform_tags, defined_tags, if_match): - if isinstance(image_signature_id, six.string_types) and len(image_signature_id.strip()) == 0: + if isinstance(image_signature_id, str) and len(image_signature_id.strip()) == 0: raise click.UsageError('Parameter --image-signature-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1757,7 +1756,7 @@ def update_container_image_signature(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_container_repository(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, is_immutable, is_public, readme, freeform_tags, defined_tags, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') if not force: if readme or freeform_tags or defined_tags: @@ -1840,7 +1839,7 @@ def update_container_repository(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_generic_artifact(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, freeform_tags, defined_tags, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1917,13 +1916,13 @@ def update_generic_artifact(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_generic_artifact_by_path(ctx, from_json, force, repository_id, artifact_path, version_parameterconflict, freeform_tags, defined_tags, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(artifact_path, six.string_types) and len(artifact_path.strip()) == 0: + if isinstance(artifact_path, str) and len(artifact_path.strip()) == 0: raise click.UsageError('Parameter --artifact-path cannot be whitespace or empty string') - if isinstance(version_parameterconflict, six.string_types) and len(version_parameterconflict.strip()) == 0: + if isinstance(version_parameterconflict, str) and len(version_parameterconflict.strip()) == 0: raise click.UsageError('Parameter --version-parameterconflict cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1979,7 +1978,7 @@ def update_generic_artifact_by_path(ctx, from_json, force, repository_id, artifa @cli_util.wrap_exceptions def update_repository(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, repository_type, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2062,7 +2061,7 @@ def update_repository(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_repository_update_generic_repository_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/audit/src/oci_cli_audit/generated/audit_cli.py b/services/audit/src/oci_cli_audit/generated/audit_cli.py index b74040de2..28550a501 100644 --- a/services/audit/src/oci_cli_audit/generated/audit_cli.py +++ b/services/audit/src/oci_cli_audit/generated/audit_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 diff --git a/services/autoscaling/src/oci_cli_auto_scaling/generated/autoscaling_cli.py b/services/autoscaling/src/oci_cli_auto_scaling/generated/autoscaling_cli.py index 56997ff9d..960101a52 100644 --- a/services/autoscaling/src/oci_cli_auto_scaling/generated/autoscaling_cli.py +++ b/services/autoscaling/src/oci_cli_auto_scaling/generated/autoscaling_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -66,7 +65,7 @@ def auto_scaling_policy_group(): @cli_util.wrap_exceptions def change_auto_scaling_configuration_compartment(ctx, from_json, auto_scaling_configuration_id, compartment_id, if_match): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -214,7 +213,7 @@ def create_auto_scaling_configuration_instance_pool_resource(ctx, from_json, com @cli_util.wrap_exceptions def create_auto_scaling_policy(ctx, from_json, auto_scaling_configuration_id, policy_type, capacity, display_name, is_enabled): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -261,7 +260,7 @@ def create_auto_scaling_policy(ctx, from_json, auto_scaling_configuration_id, po @cli_util.wrap_exceptions def create_auto_scaling_policy_create_scheduled_policy_details(ctx, from_json, auto_scaling_configuration_id, execution_schedule, capacity, display_name, is_enabled, resource_action): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -312,7 +311,7 @@ def create_auto_scaling_policy_create_scheduled_policy_details(ctx, from_json, a @cli_util.wrap_exceptions def create_auto_scaling_policy_create_threshold_policy_details(ctx, from_json, auto_scaling_configuration_id, rules, capacity, display_name, is_enabled): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -352,7 +351,7 @@ def create_auto_scaling_policy_create_threshold_policy_details(ctx, from_json, a @cli_util.wrap_exceptions def delete_auto_scaling_configuration(ctx, from_json, auto_scaling_configuration_id, if_match): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -379,10 +378,10 @@ def delete_auto_scaling_configuration(ctx, from_json, auto_scaling_configuration @cli_util.wrap_exceptions def delete_auto_scaling_policy(ctx, from_json, auto_scaling_configuration_id, auto_scaling_policy_id, if_match): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') - if isinstance(auto_scaling_policy_id, six.string_types) and len(auto_scaling_policy_id.strip()) == 0: + if isinstance(auto_scaling_policy_id, str) and len(auto_scaling_policy_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-policy-id cannot be whitespace or empty string') kwargs = {} @@ -407,7 +406,7 @@ def delete_auto_scaling_policy(ctx, from_json, auto_scaling_configuration_id, au @cli_util.wrap_exceptions def get_auto_scaling_configuration(ctx, from_json, auto_scaling_configuration_id): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -430,10 +429,10 @@ def get_auto_scaling_configuration(ctx, from_json, auto_scaling_configuration_id @cli_util.wrap_exceptions def get_auto_scaling_policy(ctx, from_json, auto_scaling_configuration_id, auto_scaling_policy_id): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') - if isinstance(auto_scaling_policy_id, six.string_types) and len(auto_scaling_policy_id.strip()) == 0: + if isinstance(auto_scaling_policy_id, str) and len(auto_scaling_policy_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-policy-id cannot be whitespace or empty string') kwargs = {} @@ -527,7 +526,7 @@ def list_auto_scaling_policies(ctx, from_json, all_pages, page_size, auto_scalin if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -588,7 +587,7 @@ def list_auto_scaling_policies(ctx, from_json, all_pages, page_size, auto_scalin @cli_util.wrap_exceptions def update_auto_scaling_configuration(ctx, from_json, force, auto_scaling_configuration_id, defined_tags, display_name, freeform_tags, is_enabled, cool_down_in_seconds, if_match): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -642,10 +641,10 @@ def update_auto_scaling_configuration(ctx, from_json, force, auto_scaling_config @cli_util.wrap_exceptions def update_auto_scaling_policy(ctx, from_json, force, auto_scaling_configuration_id, auto_scaling_policy_id, policy_type, display_name, capacity, is_enabled, if_match): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') - if isinstance(auto_scaling_policy_id, six.string_types) and len(auto_scaling_policy_id.strip()) == 0: + if isinstance(auto_scaling_policy_id, str) and len(auto_scaling_policy_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-policy-id cannot be whitespace or empty string') if not force: if capacity: @@ -697,10 +696,10 @@ def update_auto_scaling_policy(ctx, from_json, force, auto_scaling_configuration @cli_util.wrap_exceptions def update_auto_scaling_policy_update_threshold_policy_details(ctx, from_json, force, auto_scaling_configuration_id, auto_scaling_policy_id, display_name, capacity, is_enabled, rules, if_match): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') - if isinstance(auto_scaling_policy_id, six.string_types) and len(auto_scaling_policy_id.strip()) == 0: + if isinstance(auto_scaling_policy_id, str) and len(auto_scaling_policy_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-policy-id cannot be whitespace or empty string') if not force: if capacity or rules: @@ -755,10 +754,10 @@ def update_auto_scaling_policy_update_threshold_policy_details(ctx, from_json, f @cli_util.wrap_exceptions def update_auto_scaling_policy_update_scheduled_policy_details(ctx, from_json, force, auto_scaling_configuration_id, auto_scaling_policy_id, display_name, capacity, is_enabled, execution_schedule, resource_action, if_match): - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') - if isinstance(auto_scaling_policy_id, six.string_types) and len(auto_scaling_policy_id.strip()) == 0: + if isinstance(auto_scaling_policy_id, str) and len(auto_scaling_policy_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-policy-id cannot be whitespace or empty string') if not force: if capacity or execution_schedule or resource_action: diff --git a/services/bastion/src/oci_cli_bastion/generated/bastion_cli.py b/services/bastion/src/oci_cli_bastion/generated/bastion_cli.py index 7e723f4d6..6a7a18277 100644 --- a/services/bastion/src/oci_cli_bastion/generated/bastion_cli.py +++ b/services/bastion/src/oci_cli_bastion/generated/bastion_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -70,7 +69,7 @@ def work_request_group(): @cli_util.wrap_exceptions def change_bastion_compartment(ctx, from_json, bastion_id, compartment_id, if_match): - if isinstance(bastion_id, six.string_types) and len(bastion_id.strip()) == 0: + if isinstance(bastion_id, str) and len(bastion_id.strip()) == 0: raise click.UsageError('Parameter --bastion-id cannot be whitespace or empty string') kwargs = {} @@ -504,7 +503,7 @@ def create_session_create_port_forwarding_session_target_resource_details(ctx, f @cli_util.wrap_exceptions def delete_bastion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bastion_id, if_match): - if isinstance(bastion_id, six.string_types) and len(bastion_id.strip()) == 0: + if isinstance(bastion_id, str) and len(bastion_id.strip()) == 0: raise click.UsageError('Parameter --bastion-id cannot be whitespace or empty string') kwargs = {} @@ -560,7 +559,7 @@ def delete_bastion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_session(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, session_id, if_match): - if isinstance(session_id, six.string_types) and len(session_id.strip()) == 0: + if isinstance(session_id, str) and len(session_id.strip()) == 0: raise click.UsageError('Parameter --session-id cannot be whitespace or empty string') kwargs = {} @@ -611,7 +610,7 @@ def delete_session(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def get_bastion(ctx, from_json, bastion_id): - if isinstance(bastion_id, six.string_types) and len(bastion_id.strip()) == 0: + if isinstance(bastion_id, str) and len(bastion_id.strip()) == 0: raise click.UsageError('Parameter --bastion-id cannot be whitespace or empty string') kwargs = {} @@ -633,7 +632,7 @@ def get_bastion(ctx, from_json, bastion_id): @cli_util.wrap_exceptions def get_session(ctx, from_json, session_id): - if isinstance(session_id, six.string_types) and len(session_id.strip()) == 0: + if isinstance(session_id, str) and len(session_id.strip()) == 0: raise click.UsageError('Parameter --session-id cannot be whitespace or empty string') kwargs = {} @@ -655,7 +654,7 @@ def get_session(ctx, from_json, session_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -810,7 +809,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -861,7 +860,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -964,7 +963,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def update_bastion(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bastion_id, max_session_ttl_in_seconds, static_jump_host_ip_addresses, client_cidr_block_allow_list, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(bastion_id, six.string_types) and len(bastion_id.strip()) == 0: + if isinstance(bastion_id, str) and len(bastion_id.strip()) == 0: raise click.UsageError('Parameter --bastion-id cannot be whitespace or empty string') if not force: if static_jump_host_ip_addresses or client_cidr_block_allow_list or freeform_tags or defined_tags or security_attributes: @@ -1046,7 +1045,7 @@ def update_bastion(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_session(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, session_id, display_name, if_match): - if isinstance(session_id, six.string_types) and len(session_id.strip()) == 0: + if isinstance(session_id, str) and len(session_id.strip()) == 0: raise click.UsageError('Parameter --session-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/batch/src/oci_cli_batch_computing/generated/batchcomputing_cli.py b/services/batch/src/oci_cli_batch_computing/generated/batchcomputing_cli.py index 8a305fc3f..c6eaba4a6 100644 --- a/services/batch/src/oci_cli_batch_computing/generated/batchcomputing_cli.py +++ b/services/batch/src/oci_cli_batch_computing/generated/batchcomputing_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -160,7 +159,7 @@ def batch_task_collection_group(): @cli_util.wrap_exceptions def cancel_batch_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_id, if_match): - if isinstance(batch_job_id, six.string_types) and len(batch_job_id.strip()) == 0: + if isinstance(batch_job_id, str) and len(batch_job_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-id cannot be whitespace or empty string') kwargs = {} @@ -216,7 +215,7 @@ def cancel_batch_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def change_batch_context_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_context_id, compartment_id, if_match): - if isinstance(batch_context_id, six.string_types) and len(batch_context_id.strip()) == 0: + if isinstance(batch_context_id, str) and len(batch_context_id.strip()) == 0: raise click.UsageError('Parameter --batch-context-id cannot be whitespace or empty string') kwargs = {} @@ -277,7 +276,7 @@ def change_batch_context_compartment(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def change_batch_job_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_id, compartment_id, if_match): - if isinstance(batch_job_id, six.string_types) and len(batch_job_id.strip()) == 0: + if isinstance(batch_job_id, str) and len(batch_job_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-id cannot be whitespace or empty string') kwargs = {} @@ -338,7 +337,7 @@ def change_batch_job_compartment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def change_batch_job_pool_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_pool_id, compartment_id, if_match): - if isinstance(batch_job_pool_id, six.string_types) and len(batch_job_pool_id.strip()) == 0: + if isinstance(batch_job_pool_id, str) and len(batch_job_pool_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-pool-id cannot be whitespace or empty string') kwargs = {} @@ -399,7 +398,7 @@ def change_batch_job_pool_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_batch_task_environment_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_task_environment_id, compartment_id, if_match): - if isinstance(batch_task_environment_id, six.string_types) and len(batch_task_environment_id.strip()) == 0: + if isinstance(batch_task_environment_id, str) and len(batch_task_environment_id.strip()) == 0: raise click.UsageError('Parameter --batch-task-environment-id cannot be whitespace or empty string') kwargs = {} @@ -460,7 +459,7 @@ def change_batch_task_environment_compartment(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def change_batch_task_profile_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_task_profile_id, compartment_id, if_match): - if isinstance(batch_task_profile_id, six.string_types) and len(batch_task_profile_id.strip()) == 0: + if isinstance(batch_task_profile_id, str) and len(batch_task_profile_id.strip()) == 0: raise click.UsageError('Parameter --batch-task-profile-id cannot be whitespace or empty string') kwargs = {} @@ -1292,7 +1291,7 @@ def create_batch_task_profile_create_cpu_architecture_task_profile_extended_info @cli_util.wrap_exceptions def delete_batch_context(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_context_id, if_match): - if isinstance(batch_context_id, six.string_types) and len(batch_context_id.strip()) == 0: + if isinstance(batch_context_id, str) and len(batch_context_id.strip()) == 0: raise click.UsageError('Parameter --batch-context-id cannot be whitespace or empty string') kwargs = {} @@ -1348,7 +1347,7 @@ def delete_batch_context(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_batch_job_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_pool_id, if_match): - if isinstance(batch_job_pool_id, six.string_types) and len(batch_job_pool_id.strip()) == 0: + if isinstance(batch_job_pool_id, str) and len(batch_job_pool_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1412,7 +1411,7 @@ def delete_batch_job_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_batch_task_environment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_task_environment_id, if_match): - if isinstance(batch_task_environment_id, six.string_types) and len(batch_task_environment_id.strip()) == 0: + if isinstance(batch_task_environment_id, str) and len(batch_task_environment_id.strip()) == 0: raise click.UsageError('Parameter --batch-task-environment-id cannot be whitespace or empty string') kwargs = {} @@ -1476,7 +1475,7 @@ def delete_batch_task_environment(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_batch_task_profile(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_task_profile_id, if_match): - if isinstance(batch_task_profile_id, six.string_types) and len(batch_task_profile_id.strip()) == 0: + if isinstance(batch_task_profile_id, str) and len(batch_task_profile_id.strip()) == 0: raise click.UsageError('Parameter --batch-task-profile-id cannot be whitespace or empty string') kwargs = {} @@ -1535,7 +1534,7 @@ def delete_batch_task_profile(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_batch_context(ctx, from_json, batch_context_id): - if isinstance(batch_context_id, six.string_types) and len(batch_context_id.strip()) == 0: + if isinstance(batch_context_id, str) and len(batch_context_id.strip()) == 0: raise click.UsageError('Parameter --batch-context-id cannot be whitespace or empty string') kwargs = {} @@ -1557,7 +1556,7 @@ def get_batch_context(ctx, from_json, batch_context_id): @cli_util.wrap_exceptions def get_batch_job(ctx, from_json, batch_job_id): - if isinstance(batch_job_id, six.string_types) and len(batch_job_id.strip()) == 0: + if isinstance(batch_job_id, str) and len(batch_job_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-id cannot be whitespace or empty string') kwargs = {} @@ -1579,7 +1578,7 @@ def get_batch_job(ctx, from_json, batch_job_id): @cli_util.wrap_exceptions def get_batch_job_pool(ctx, from_json, batch_job_pool_id): - if isinstance(batch_job_pool_id, six.string_types) and len(batch_job_pool_id.strip()) == 0: + if isinstance(batch_job_pool_id, str) and len(batch_job_pool_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1602,10 +1601,10 @@ def get_batch_job_pool(ctx, from_json, batch_job_pool_id): @cli_util.wrap_exceptions def get_batch_task(ctx, from_json, batch_job_id, task_name): - if isinstance(batch_job_id, six.string_types) and len(batch_job_id.strip()) == 0: + if isinstance(batch_job_id, str) and len(batch_job_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-id cannot be whitespace or empty string') - if isinstance(task_name, six.string_types) and len(task_name.strip()) == 0: + if isinstance(task_name, str) and len(task_name.strip()) == 0: raise click.UsageError('Parameter --task-name cannot be whitespace or empty string') kwargs = {} @@ -1628,7 +1627,7 @@ def get_batch_task(ctx, from_json, batch_job_id, task_name): @cli_util.wrap_exceptions def get_batch_task_environment(ctx, from_json, batch_task_environment_id): - if isinstance(batch_task_environment_id, six.string_types) and len(batch_task_environment_id.strip()) == 0: + if isinstance(batch_task_environment_id, str) and len(batch_task_environment_id.strip()) == 0: raise click.UsageError('Parameter --batch-task-environment-id cannot be whitespace or empty string') kwargs = {} @@ -1650,7 +1649,7 @@ def get_batch_task_environment(ctx, from_json, batch_task_environment_id): @cli_util.wrap_exceptions def get_batch_task_profile(ctx, from_json, batch_task_profile_id): - if isinstance(batch_task_profile_id, six.string_types) and len(batch_task_profile_id.strip()) == 0: + if isinstance(batch_task_profile_id, str) and len(batch_task_profile_id.strip()) == 0: raise click.UsageError('Parameter --batch-task-profile-id cannot be whitespace or empty string') kwargs = {} @@ -1672,7 +1671,7 @@ def get_batch_task_profile(ctx, from_json, batch_task_profile_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1890,7 +1889,7 @@ def list_batch_job_tasks(ctx, from_json, all_pages, page_size, batch_job_id, lif if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(batch_job_id, six.string_types) and len(batch_job_id.strip()) == 0: + if isinstance(batch_job_id, str) and len(batch_job_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-id cannot be whitespace or empty string') kwargs = {} @@ -2213,7 +2212,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2270,7 +2269,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2384,7 +2383,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def pause_batch_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_id, if_match): - if isinstance(batch_job_id, six.string_types) and len(batch_job_id.strip()) == 0: + if isinstance(batch_job_id, str) and len(batch_job_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-id cannot be whitespace or empty string') kwargs = {} @@ -2443,7 +2442,7 @@ def pause_batch_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def start_batch_context(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_context_id, if_match): - if isinstance(batch_context_id, six.string_types) and len(batch_context_id.strip()) == 0: + if isinstance(batch_context_id, str) and len(batch_context_id.strip()) == 0: raise click.UsageError('Parameter --batch-context-id cannot be whitespace or empty string') kwargs = {} @@ -2502,7 +2501,7 @@ def start_batch_context(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def start_batch_job_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_pool_id, if_match): - if isinstance(batch_job_pool_id, six.string_types) and len(batch_job_pool_id.strip()) == 0: + if isinstance(batch_job_pool_id, str) and len(batch_job_pool_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-pool-id cannot be whitespace or empty string') kwargs = {} @@ -2561,7 +2560,7 @@ def start_batch_job_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def stop_batch_context(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_context_id, if_match): - if isinstance(batch_context_id, six.string_types) and len(batch_context_id.strip()) == 0: + if isinstance(batch_context_id, str) and len(batch_context_id.strip()) == 0: raise click.UsageError('Parameter --batch-context-id cannot be whitespace or empty string') kwargs = {} @@ -2620,7 +2619,7 @@ def stop_batch_context(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def stop_batch_job_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_pool_id, if_match): - if isinstance(batch_job_pool_id, six.string_types) and len(batch_job_pool_id.strip()) == 0: + if isinstance(batch_job_pool_id, str) and len(batch_job_pool_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-pool-id cannot be whitespace or empty string') kwargs = {} @@ -2679,7 +2678,7 @@ def stop_batch_job_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def unpause_batch_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_id, if_match): - if isinstance(batch_job_id, six.string_types) and len(batch_job_id.strip()) == 0: + if isinstance(batch_job_id, str) and len(batch_job_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-id cannot be whitespace or empty string') kwargs = {} @@ -2752,7 +2751,7 @@ def unpause_batch_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_batch_context(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_context_id, display_name, description, freeform_tags, defined_tags, job_priority_configurations, entitlements, logging_configuration, if_match): - if isinstance(batch_context_id, six.string_types) and len(batch_context_id.strip()) == 0: + if isinstance(batch_context_id, str) and len(batch_context_id.strip()) == 0: raise click.UsageError('Parameter --batch-context-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or job_priority_configurations or entitlements or logging_configuration: @@ -2850,7 +2849,7 @@ def update_batch_context(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_batch_context_update_oci_logging_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_context_id, logging_configuration_is_job_task_events_propagation_enabled, display_name, description, freeform_tags, defined_tags, job_priority_configurations, entitlements, if_match): - if isinstance(batch_context_id, six.string_types) and len(batch_context_id.strip()) == 0: + if isinstance(batch_context_id, str) and len(batch_context_id.strip()) == 0: raise click.UsageError('Parameter --batch-context-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or job_priority_configurations or entitlements: @@ -2944,7 +2943,7 @@ def update_batch_context_update_oci_logging_configuration(ctx, from_json, force, @cli_util.wrap_exceptions def update_batch_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(batch_job_id, six.string_types) and len(batch_job_id.strip()) == 0: + if isinstance(batch_job_id, str) and len(batch_job_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3028,7 +3027,7 @@ def update_batch_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_batch_job_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_job_pool_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(batch_job_pool_id, six.string_types) and len(batch_job_pool_id.strip()) == 0: + if isinstance(batch_job_pool_id, str) and len(batch_job_pool_id.strip()) == 0: raise click.UsageError('Parameter --batch-job-pool-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3112,7 +3111,7 @@ def update_batch_job_pool(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_batch_task_environment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_task_environment_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(batch_task_environment_id, six.string_types) and len(batch_task_environment_id.strip()) == 0: + if isinstance(batch_task_environment_id, str) and len(batch_task_environment_id.strip()) == 0: raise click.UsageError('Parameter --batch-task-environment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3192,7 +3191,7 @@ def update_batch_task_environment(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_batch_task_profile(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, batch_task_profile_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(batch_task_profile_id, six.string_types) and len(batch_task_profile_id.strip()) == 0: + if isinstance(batch_task_profile_id, str) and len(batch_task_profile_id.strip()) == 0: raise click.UsageError('Parameter --batch-task-profile-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/bds/src/oci_cli_bds/generated/bds_cli.py b/services/bds/src/oci_cli_bds/generated/bds_cli.py index 8b597f21b..403199503 100644 --- a/services/bds/src/oci_cli_bds/generated/bds_cli.py +++ b/services/bds/src/oci_cli_bds/generated/bds_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -150,10 +149,10 @@ def bds_capacity_reservation_configuration_group(): @cli_util.wrap_exceptions def activate_bds_capacity_reservation_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, bds_capacity_reservation_configuration_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(bds_capacity_reservation_configuration_id, six.string_types) and len(bds_capacity_reservation_configuration_id.strip()) == 0: + if isinstance(bds_capacity_reservation_configuration_id, str) and len(bds_capacity_reservation_configuration_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -209,10 +208,10 @@ def activate_bds_capacity_reservation_configuration(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def activate_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, metastore_config_id, bds_api_key_passphrase, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(metastore_config_id, six.string_types) and len(metastore_config_id.strip()) == 0: + if isinstance(metastore_config_id, str) and len(metastore_config_id.strip()) == 0: raise click.UsageError('Parameter --metastore-config-id cannot be whitespace or empty string') kwargs = {} @@ -285,10 +284,10 @@ def activate_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def activate_iam_user_sync_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, identity_configuration_id, cluster_admin_password, secret_id, is_posix_attributes_addition_required, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(identity_configuration_id, six.string_types) and len(identity_configuration_id.strip()) == 0: + if isinstance(identity_configuration_id, str) and len(identity_configuration_id.strip()) == 0: raise click.UsageError('Parameter --identity-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -362,10 +361,10 @@ def activate_iam_user_sync_configuration(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def activate_upst_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, identity_configuration_id, vault_id, master_encryption_key_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(identity_configuration_id, six.string_types) and len(identity_configuration_id.strip()) == 0: + if isinstance(identity_configuration_id, str) and len(identity_configuration_id.strip()) == 0: raise click.UsageError('Parameter --identity-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -440,7 +439,7 @@ def activate_upst_configuration(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def add_auto_scaling_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_type, is_enabled, display_name, cluster_admin_password, secret_id, policy, policy_details, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -524,7 +523,7 @@ def add_auto_scaling_configuration(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def add_auto_scaling_configuration_add_metric_based_horizontal_scaling_policy_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_type, is_enabled, display_name, cluster_admin_password, secret_id, policy, if_match, policy_details_scale_out_config, policy_details_scale_in_config): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -616,7 +615,7 @@ def add_auto_scaling_configuration_add_metric_based_horizontal_scaling_policy_de @cli_util.wrap_exceptions def add_auto_scaling_configuration_add_schedule_based_vertical_scaling_policy_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_type, is_enabled, display_name, cluster_admin_password, secret_id, policy, if_match, policy_details_timezone, policy_details_schedule_details): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -708,7 +707,7 @@ def add_auto_scaling_configuration_add_schedule_based_vertical_scaling_policy_de @cli_util.wrap_exceptions def add_auto_scaling_configuration_add_schedule_based_horizontal_scaling_policy_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_type, is_enabled, display_name, cluster_admin_password, secret_id, policy, if_match, policy_details_timezone, policy_details_schedule_details): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -798,7 +797,7 @@ def add_auto_scaling_configuration_add_schedule_based_horizontal_scaling_policy_ @cli_util.wrap_exceptions def add_auto_scaling_configuration_add_metric_based_vertical_scaling_policy_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_type, is_enabled, display_name, cluster_admin_password, secret_id, policy, if_match, policy_details_scale_up_config, policy_details_scale_down_config): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -885,7 +884,7 @@ def add_auto_scaling_configuration_add_metric_based_vertical_scaling_policy_deta @cli_util.wrap_exceptions def add_block_storage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, block_volume_size_in_gbs, node_type, cluster_admin_password, secret_id, node_ids, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -959,7 +958,7 @@ def add_block_storage(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def add_cloud_sql(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, shape, shape_config, block_volume_size_in_gbs, cluster_admin_password, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1034,7 +1033,7 @@ def add_cloud_sql(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def add_kafka(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, shape, number_of_kafka_nodes, shape_config, block_volume_size_in_gbs, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1113,7 +1112,7 @@ def add_kafka(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_se @cli_util.wrap_exceptions def add_master_nodes(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, number_of_master_nodes, cluster_admin_password, secret_id, shape, block_volume_size_in_gbs, shape_config, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1194,7 +1193,7 @@ def add_master_nodes(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def add_utility_nodes(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, number_of_utility_nodes, cluster_admin_password, secret_id, shape, block_volume_size_in_gbs, shape_config, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1276,7 +1275,7 @@ def add_utility_nodes(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def add_worker_nodes(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, number_of_worker_nodes, node_type, cluster_admin_password, secret_id, shape, block_volume_size_in_gbs, shape_config, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1354,7 +1353,7 @@ def add_worker_nodes(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def backup_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, level_type_details, backup_type, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1419,7 +1418,7 @@ def backup_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def backup_node_node_type_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, level_type_details_node_type, backup_type, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1487,7 +1486,7 @@ def backup_node_node_type_level_details(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def backup_node_node_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, level_type_details_node_host_name, backup_type, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1556,7 +1555,7 @@ def backup_node_node_level_details(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def bds_instance_reset_password(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, service, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1620,7 +1619,7 @@ def bds_instance_reset_password(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def certificate_service_info(ctx, from_json, bds_instance_id, services, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1651,7 +1650,7 @@ def certificate_service_info(ctx, from_json, bds_instance_id, services, if_match @cli_util.wrap_exceptions def change_bds_capacity_reservation_compartment(ctx, from_json, bds_capacity_reservation_id, compartment_id, if_match): - if isinstance(bds_capacity_reservation_id, six.string_types) and len(bds_capacity_reservation_id.strip()) == 0: + if isinstance(bds_capacity_reservation_id, str) and len(bds_capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-id cannot be whitespace or empty string') kwargs = {} @@ -1685,7 +1684,7 @@ def change_bds_capacity_reservation_compartment(ctx, from_json, bds_capacity_res @cli_util.wrap_exceptions def change_bds_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, compartment_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1748,7 +1747,7 @@ def change_bds_instance_compartment(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def change_shape(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, nodes, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1818,7 +1817,7 @@ def change_shape(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def create_bds_api_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, user_id, passphrase, key_alias, default_region, domain_ocid): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1975,7 +1974,7 @@ def create_bds_capacity_reservation(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def create_bds_capacity_reservation_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, display_name, bds_capacity_reservation_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2037,7 +2036,7 @@ def create_bds_capacity_reservation_configuration(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def create_bds_certificate_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, display_name, certificate_type, certificate_authority_id, compartment_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2222,7 +2221,7 @@ def create_bds_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def create_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, metastore_id, bds_api_key_id, bds_api_key_passphrase, display_name, cluster_admin_password, secret_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2297,7 +2296,7 @@ def create_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def create_identity_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, display_name, identity_domain_id, confidential_application_id, cluster_admin_password, secret_id, upst_configuration_details, iam_user_sync_configuration_details): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2374,7 +2373,7 @@ def create_identity_configuration(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def create_node_backup_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, level_type_details, schedule, display_name, timezone, number_of_backups_to_retain, backup_type): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2450,7 +2449,7 @@ def create_node_backup_configuration(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def create_node_backup_configuration_node_type_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, schedule, level_type_details_node_type, display_name, timezone, number_of_backups_to_retain, backup_type): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2529,7 +2528,7 @@ def create_node_backup_configuration_node_type_level_details(ctx, from_json, wai @cli_util.wrap_exceptions def create_node_backup_configuration_node_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, schedule, level_type_details_node_host_name, display_name, timezone, number_of_backups_to_retain, backup_type): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2608,7 +2607,7 @@ def create_node_backup_configuration_node_level_details(ctx, from_json, wait_for @cli_util.wrap_exceptions def create_node_replace_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, level_type_details, metric_type, duration_in_minutes, display_name, cluster_admin_password, secret_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2682,7 +2681,7 @@ def create_node_replace_configuration(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def create_node_replace_configuration_node_type_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, metric_type, duration_in_minutes, level_type_details_node_type, display_name, cluster_admin_password, secret_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2759,7 +2758,7 @@ def create_node_replace_configuration_node_type_level_details(ctx, from_json, wa @cli_util.wrap_exceptions def create_node_replace_configuration_node_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, metric_type, duration_in_minutes, level_type_details_node_host_name, display_name, cluster_admin_password, secret_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2834,7 +2833,7 @@ def create_node_replace_configuration_node_level_details(ctx, from_json, wait_fo @cli_util.wrap_exceptions def create_resource_principal_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, display_name, cluster_admin_password, secret_id, session_token_life_span_duration_in_hours): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2902,10 +2901,10 @@ def create_resource_principal_configuration(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def deactivate_bds_capacity_reservation_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, bds_capacity_reservation_configuration_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(bds_capacity_reservation_configuration_id, six.string_types) and len(bds_capacity_reservation_configuration_id.strip()) == 0: + if isinstance(bds_capacity_reservation_configuration_id, str) and len(bds_capacity_reservation_configuration_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -2960,10 +2959,10 @@ def deactivate_bds_capacity_reservation_configuration(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def deactivate_iam_user_sync_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, identity_configuration_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(identity_configuration_id, six.string_types) and len(identity_configuration_id.strip()) == 0: + if isinstance(identity_configuration_id, str) and len(identity_configuration_id.strip()) == 0: raise click.UsageError('Parameter --identity-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -3032,10 +3031,10 @@ def deactivate_iam_user_sync_configuration(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def deactivate_upst_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, identity_configuration_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(identity_configuration_id, six.string_types) and len(identity_configuration_id.strip()) == 0: + if isinstance(identity_configuration_id, str) and len(identity_configuration_id.strip()) == 0: raise click.UsageError('Parameter --identity-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -3103,10 +3102,10 @@ def deactivate_upst_configuration(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_bds_api_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, api_key_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -3163,7 +3162,7 @@ def delete_bds_api_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_bds_capacity_reservation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_capacity_reservation_id, if_match): - if isinstance(bds_capacity_reservation_id, six.string_types) and len(bds_capacity_reservation_id.strip()) == 0: + if isinstance(bds_capacity_reservation_id, str) and len(bds_capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-id cannot be whitespace or empty string') kwargs = {} @@ -3225,10 +3224,10 @@ def delete_bds_capacity_reservation(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def delete_bds_capacity_reservation_configuration(ctx, from_json, bds_instance_id, bds_capacity_reservation_configuration_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(bds_capacity_reservation_configuration_id, six.string_types) and len(bds_capacity_reservation_configuration_id.strip()) == 0: + if isinstance(bds_capacity_reservation_configuration_id, str) and len(bds_capacity_reservation_configuration_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -3259,10 +3258,10 @@ def delete_bds_capacity_reservation_configuration(ctx, from_json, bds_instance_i @cli_util.wrap_exceptions def delete_bds_certificate_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, bds_certificate_configuration_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(bds_certificate_configuration_id, six.string_types) and len(bds_certificate_configuration_id.strip()) == 0: + if isinstance(bds_certificate_configuration_id, str) and len(bds_certificate_configuration_id.strip()) == 0: raise click.UsageError('Parameter --bds-certificate-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -3319,7 +3318,7 @@ def delete_bds_certificate_configuration(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def delete_bds_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -3376,10 +3375,10 @@ def delete_bds_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, metastore_config_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(metastore_config_id, six.string_types) and len(metastore_config_id.strip()) == 0: + if isinstance(metastore_config_id, str) and len(metastore_config_id.strip()) == 0: raise click.UsageError('Parameter --metastore-config-id cannot be whitespace or empty string') kwargs = {} @@ -3437,10 +3436,10 @@ def delete_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_identity_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, identity_configuration_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(identity_configuration_id, six.string_types) and len(identity_configuration_id.strip()) == 0: + if isinstance(identity_configuration_id, str) and len(identity_configuration_id.strip()) == 0: raise click.UsageError('Parameter --identity-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -3498,10 +3497,10 @@ def delete_identity_configuration(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_node_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_backup_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_backup_id, six.string_types) and len(node_backup_id.strip()) == 0: + if isinstance(node_backup_id, str) and len(node_backup_id.strip()) == 0: raise click.UsageError('Parameter --node-backup-id cannot be whitespace or empty string') kwargs = {} @@ -3559,10 +3558,10 @@ def delete_node_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_node_backup_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_backup_configuration_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_backup_configuration_id, six.string_types) and len(node_backup_configuration_id.strip()) == 0: + if isinstance(node_backup_configuration_id, str) and len(node_backup_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-backup-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -3621,7 +3620,7 @@ def delete_node_backup_configuration(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def disable_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, services, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -3695,7 +3694,7 @@ def disable_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def enable_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, services, cluster_admin_password, secret_id, root_certificate, host_cert_details, server_key_password, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -3773,7 +3772,7 @@ def enable_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def execute_bootstrap_script(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, cluster_admin_password, secret_id, bootstrap_script_url, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -3844,10 +3843,10 @@ def execute_bootstrap_script(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def force_refresh_resource_principal(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, resource_principal_configuration_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(resource_principal_configuration_id, six.string_types) and len(resource_principal_configuration_id.strip()) == 0: + if isinstance(resource_principal_configuration_id, str) and len(resource_principal_configuration_id.strip()) == 0: raise click.UsageError('Parameter --resource-principal-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -3916,7 +3915,7 @@ def force_refresh_resource_principal(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def generate_bds_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, manage_certificate_level_type_details, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -3985,7 +3984,7 @@ def generate_bds_certificate(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def generate_bds_certificate_node_level_manage_bds_certificate_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, manage_certificate_level_type_details_node_host_names, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4058,7 +4057,7 @@ def generate_bds_certificate_node_level_manage_bds_certificate_details(ctx, from @cli_util.wrap_exceptions def generate_bds_certificate_config_level_manage_bds_certificate_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, manage_certificate_level_type_details_certificate_configuration_id, cluster_admin_password, secret_id, if_match, manage_certificate_level_type_details_is_missing_nodes_only): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4127,10 +4126,10 @@ def generate_bds_certificate_config_level_manage_bds_certificate_details(ctx, fr @cli_util.wrap_exceptions def get_auto_scaling_configuration(ctx, from_json, bds_instance_id, auto_scaling_configuration_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -4154,10 +4153,10 @@ def get_auto_scaling_configuration(ctx, from_json, bds_instance_id, auto_scaling @cli_util.wrap_exceptions def get_bds_api_key(ctx, from_json, bds_instance_id, api_key_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -4180,7 +4179,7 @@ def get_bds_api_key(ctx, from_json, bds_instance_id, api_key_id): @cli_util.wrap_exceptions def get_bds_capacity_reservation(ctx, from_json, bds_capacity_reservation_id): - if isinstance(bds_capacity_reservation_id, six.string_types) and len(bds_capacity_reservation_id.strip()) == 0: + if isinstance(bds_capacity_reservation_id, str) and len(bds_capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-id cannot be whitespace or empty string') kwargs = {} @@ -4203,10 +4202,10 @@ def get_bds_capacity_reservation(ctx, from_json, bds_capacity_reservation_id): @cli_util.wrap_exceptions def get_bds_capacity_reservation_configuration(ctx, from_json, bds_instance_id, bds_capacity_reservation_configuration_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(bds_capacity_reservation_configuration_id, six.string_types) and len(bds_capacity_reservation_configuration_id.strip()) == 0: + if isinstance(bds_capacity_reservation_configuration_id, str) and len(bds_capacity_reservation_configuration_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -4230,10 +4229,10 @@ def get_bds_capacity_reservation_configuration(ctx, from_json, bds_instance_id, @cli_util.wrap_exceptions def get_bds_certificate_configuration(ctx, from_json, bds_instance_id, bds_certificate_configuration_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(bds_certificate_configuration_id, six.string_types) and len(bds_certificate_configuration_id.strip()) == 0: + if isinstance(bds_certificate_configuration_id, str) and len(bds_certificate_configuration_id.strip()) == 0: raise click.UsageError('Parameter --bds-certificate-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -4256,7 +4255,7 @@ def get_bds_certificate_configuration(ctx, from_json, bds_instance_id, bds_certi @cli_util.wrap_exceptions def get_bds_instance(ctx, from_json, bds_instance_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4279,10 +4278,10 @@ def get_bds_instance(ctx, from_json, bds_instance_id): @cli_util.wrap_exceptions def get_bds_metastore_configuration(ctx, from_json, bds_instance_id, metastore_config_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(metastore_config_id, six.string_types) and len(metastore_config_id.strip()) == 0: + if isinstance(metastore_config_id, str) and len(metastore_config_id.strip()) == 0: raise click.UsageError('Parameter --metastore-config-id cannot be whitespace or empty string') kwargs = {} @@ -4310,10 +4309,10 @@ def get_bds_metastore_configuration(ctx, from_json, bds_instance_id, metastore_c @cli_util.wrap_exceptions def get_identity_configuration(ctx, from_json, bds_instance_id, identity_configuration_id, page, limit, sort_by, sort_order): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(identity_configuration_id, six.string_types) and len(identity_configuration_id.strip()) == 0: + if isinstance(identity_configuration_id, str) and len(identity_configuration_id.strip()) == 0: raise click.UsageError('Parameter --identity-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -4345,10 +4344,10 @@ def get_identity_configuration(ctx, from_json, bds_instance_id, identity_configu @cli_util.wrap_exceptions def get_node_backup(ctx, from_json, bds_instance_id, node_backup_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_backup_id, six.string_types) and len(node_backup_id.strip()) == 0: + if isinstance(node_backup_id, str) and len(node_backup_id.strip()) == 0: raise click.UsageError('Parameter --node-backup-id cannot be whitespace or empty string') kwargs = {} @@ -4372,10 +4371,10 @@ def get_node_backup(ctx, from_json, bds_instance_id, node_backup_id): @cli_util.wrap_exceptions def get_node_backup_configuration(ctx, from_json, bds_instance_id, node_backup_configuration_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_backup_configuration_id, six.string_types) and len(node_backup_configuration_id.strip()) == 0: + if isinstance(node_backup_configuration_id, str) and len(node_backup_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-backup-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -4399,10 +4398,10 @@ def get_node_backup_configuration(ctx, from_json, bds_instance_id, node_backup_c @cli_util.wrap_exceptions def get_node_replace_configuration(ctx, from_json, bds_instance_id, node_replace_configuration_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_replace_configuration_id, six.string_types) and len(node_replace_configuration_id.strip()) == 0: + if isinstance(node_replace_configuration_id, str) and len(node_replace_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-replace-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -4427,7 +4426,7 @@ def get_node_replace_configuration(ctx, from_json, bds_instance_id, node_replace @cli_util.wrap_exceptions def get_os_patch_details(ctx, from_json, bds_instance_id, os_patch_version, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4453,10 +4452,10 @@ def get_os_patch_details(ctx, from_json, bds_instance_id, os_patch_version, if_m @cli_util.wrap_exceptions def get_resource_principal_configuration(ctx, from_json, bds_instance_id, resource_principal_configuration_id): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(resource_principal_configuration_id, six.string_types) and len(resource_principal_configuration_id.strip()) == 0: + if isinstance(resource_principal_configuration_id, str) and len(resource_principal_configuration_id.strip()) == 0: raise click.UsageError('Parameter --resource-principal-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -4481,10 +4480,10 @@ def get_resource_principal_configuration(ctx, from_json, bds_instance_id, resour @cli_util.wrap_exceptions def get_software_update(ctx, from_json, bds_instance_id, software_update_key, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(software_update_key, six.string_types) and len(software_update_key.strip()) == 0: + if isinstance(software_update_key, str) and len(software_update_key.strip()) == 0: raise click.UsageError('Parameter --software-update-key cannot be whitespace or empty string') kwargs = {} @@ -4509,7 +4508,7 @@ def get_software_update(ctx, from_json, bds_instance_id, software_update_key, if @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4540,7 +4539,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def install_os_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, os_patch_version, cluster_admin_password, secret_id, patching_configs, is_dry_run, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4619,7 +4618,7 @@ def install_os_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def install_os_patch_batching_based_patching_configs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, os_patch_version, patching_configs_batch_size, patching_configs_wait_time_between_batch_in_seconds, patching_configs_tolerance_threshold_per_batch, cluster_admin_password, secret_id, is_dry_run, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4698,7 +4697,7 @@ def install_os_patch_batching_based_patching_configs(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def install_os_patch_downtime_based_patching_configs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, os_patch_version, cluster_admin_password, secret_id, is_dry_run, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4776,7 +4775,7 @@ def install_os_patch_downtime_based_patching_configs(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def install_os_patch_domain_based_patching_configs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, os_patch_version, patching_configs_wait_time_between_domain_in_seconds, patching_configs_tolerance_threshold_per_domain, cluster_admin_password, secret_id, is_dry_run, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4854,7 +4853,7 @@ def install_os_patch_domain_based_patching_configs(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def install_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, version_parameterconflict, cluster_admin_password, secret_id, patching_config, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4926,7 +4925,7 @@ def install_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def install_patch_downtime_based_odh_patching_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, version_parameterconflict, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5000,7 +4999,7 @@ def install_patch_downtime_based_odh_patching_config(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def install_patch_domain_based_odh_patching_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, version_parameterconflict, patching_config_wait_time_between_domain_in_seconds, cluster_admin_password, secret_id, if_match, patching_config_tolerance_threshold_per_domain): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5079,7 +5078,7 @@ def install_patch_domain_based_odh_patching_config(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def install_patch_batching_based_odh_patching_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, version_parameterconflict, patching_config_batch_size, patching_config_wait_time_between_batch_in_seconds, cluster_admin_password, secret_id, if_match, patching_config_tolerance_threshold_per_batch): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5154,7 +5153,7 @@ def install_patch_batching_based_odh_patching_config(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def install_software_updates(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, software_update_keys, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5222,7 +5221,7 @@ def list_auto_scaling_configurations(ctx, from_json, all_pages, page_size, compa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5289,7 +5288,7 @@ def list_bds_api_keys(ctx, from_json, all_pages, page_size, bds_instance_id, lif if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5355,7 +5354,7 @@ def list_bds_capacity_reservation_associated_configurations(ctx, from_json, all_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_capacity_reservation_id, six.string_types) and len(bds_capacity_reservation_id.strip()) == 0: + if isinstance(bds_capacity_reservation_id, str) and len(bds_capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-id cannot be whitespace or empty string') kwargs = {} @@ -5421,7 +5420,7 @@ def list_bds_capacity_reservation_configurations(ctx, from_json, all_pages, page if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5544,7 +5543,7 @@ def list_bds_certificate_configurations(ctx, from_json, all_pages, page_size, bd if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5720,7 +5719,7 @@ def list_bds_metastore_configurations(ctx, from_json, all_pages, page_size, bds_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5790,7 +5789,7 @@ def list_identity_configurations(ctx, from_json, all_pages, page_size, bds_insta if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5856,7 +5855,7 @@ def list_node_backup_configurations(ctx, from_json, all_pages, page_size, bds_in if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5920,7 +5919,7 @@ def list_node_backups(ctx, from_json, all_pages, page_size, bds_instance_id, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -5985,7 +5984,7 @@ def list_node_replace_configurations(ctx, from_json, all_pages, page_size, bds_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6047,7 +6046,7 @@ def list_os_patches(ctx, from_json, all_pages, page_size, bds_instance_id, page, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6109,7 +6108,7 @@ def list_patch_histories(ctx, from_json, all_pages, page_size, bds_instance_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6170,7 +6169,7 @@ def list_patches(ctx, from_json, all_pages, page_size, bds_instance_id, page, li if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6225,7 +6224,7 @@ def list_resource_principal_configurations(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6287,7 +6286,7 @@ def list_software_updates(ctx, from_json, all_pages, page_size, bds_instance_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6346,7 +6345,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -6403,7 +6402,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -6515,10 +6514,10 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def refresh_confidential_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, identity_configuration_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(identity_configuration_id, six.string_types) and len(identity_configuration_id.strip()) == 0: + if isinstance(identity_configuration_id, str) and len(identity_configuration_id.strip()) == 0: raise click.UsageError('Parameter --identity-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -6587,10 +6586,10 @@ def refresh_confidential_application(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def refresh_upst_token_exchange_keytab(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, identity_configuration_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(identity_configuration_id, six.string_types) and len(identity_configuration_id.strip()) == 0: + if isinstance(identity_configuration_id, str) and len(identity_configuration_id.strip()) == 0: raise click.UsageError('Parameter --identity-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -6659,10 +6658,10 @@ def refresh_upst_token_exchange_keytab(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def remove_auto_scaling_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, auto_scaling_configuration_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -6729,7 +6728,7 @@ def remove_auto_scaling_configuration(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def remove_cloud_sql(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, cluster_admin_password, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6793,7 +6792,7 @@ def remove_cloud_sql(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def remove_kafka(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6862,7 +6861,7 @@ def remove_kafka(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def remove_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_id, cluster_admin_password, secret_id, is_force_remove_enabled, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6934,10 +6933,10 @@ def remove_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def remove_node_replace_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_replace_configuration_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_replace_configuration_id, six.string_types) and len(node_replace_configuration_id.strip()) == 0: + if isinstance(node_replace_configuration_id, str) and len(node_replace_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-replace-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -7007,7 +7006,7 @@ def remove_node_replace_configuration(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def remove_nodes(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, instance_ids, cluster_admin_password, secret_id, is_force_remove_enabled, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7079,10 +7078,10 @@ def remove_nodes(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def remove_resource_principal_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, resource_principal_configuration_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(resource_principal_configuration_id, six.string_types) and len(resource_principal_configuration_id.strip()) == 0: + if isinstance(resource_principal_configuration_id, str) and len(resource_principal_configuration_id.strip()) == 0: raise click.UsageError('Parameter --resource-principal-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -7151,7 +7150,7 @@ def remove_resource_principal_configuration(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def renew_bds_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, manage_certificate_level_type_details, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7220,7 +7219,7 @@ def renew_bds_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def renew_bds_certificate_node_level_manage_bds_certificate_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, manage_certificate_level_type_details_node_host_names, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7293,7 +7292,7 @@ def renew_bds_certificate_node_level_manage_bds_certificate_details(ctx, from_js @cli_util.wrap_exceptions def renew_bds_certificate_config_level_manage_bds_certificate_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, manage_certificate_level_type_details_certificate_configuration_id, cluster_admin_password, secret_id, if_match, manage_certificate_level_type_details_is_missing_nodes_only): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7375,7 +7374,7 @@ def renew_bds_certificate_config_level_manage_bds_certificate_details(ctx, from_ @cli_util.wrap_exceptions def renew_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, cluster_admin_password, secret_id, services, root_certificate, host_cert_details, server_key_password, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7458,7 +7457,7 @@ def renew_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def replace_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_host_name, node_backup_id, cluster_admin_password, heterogeneous_shapes, secret_id, shape, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7534,7 +7533,7 @@ def replace_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def restart_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7597,10 +7596,10 @@ def restart_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def set_default_bds_certificate_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, bds_certificate_configuration_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(bds_certificate_configuration_id, six.string_types) and len(bds_certificate_configuration_id.strip()) == 0: + if isinstance(bds_certificate_configuration_id, str) and len(bds_certificate_configuration_id.strip()) == 0: raise click.UsageError('Parameter --bds-certificate-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -7669,7 +7668,7 @@ def set_default_bds_certificate_configuration(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def start_bds_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, cluster_admin_password, secret_id, start_cluster_shape_configs, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7740,7 +7739,7 @@ def start_bds_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def stop_bds_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, is_force_stop_jobs, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7811,10 +7810,10 @@ def stop_bds_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def test_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, metastore_config_id, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(metastore_config_id, six.string_types) and len(metastore_config_id.strip()) == 0: + if isinstance(metastore_config_id, str) and len(metastore_config_id.strip()) == 0: raise click.UsageError('Parameter --metastore-config-id cannot be whitespace or empty string') kwargs = {} @@ -7883,10 +7882,10 @@ def test_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def test_bds_object_storage_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, api_key_id, object_storage_uri, passphrase, object_storage_region): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -7957,10 +7956,10 @@ def test_bds_object_storage_connection(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_auto_scaling_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, auto_scaling_configuration_id, display_name, is_enabled, cluster_admin_password, secret_id, policy, policy_details, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') if not force: if policy or policy_details: @@ -8053,10 +8052,10 @@ def update_auto_scaling_configuration(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_auto_scaling_configuration_update_schedule_based_horizontal_scaling_policy_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, auto_scaling_configuration_id, display_name, is_enabled, cluster_admin_password, secret_id, policy, if_match, policy_details_timezone, policy_details_schedule_details): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') if not force: if policy: @@ -8153,10 +8152,10 @@ def update_auto_scaling_configuration_update_schedule_based_horizontal_scaling_p @cli_util.wrap_exceptions def update_auto_scaling_configuration_update_metric_based_vertical_scaling_policy_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, auto_scaling_configuration_id, display_name, is_enabled, cluster_admin_password, secret_id, policy, if_match, policy_details_scale_up_config, policy_details_scale_down_config): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') if not force: if policy: @@ -8253,10 +8252,10 @@ def update_auto_scaling_configuration_update_metric_based_vertical_scaling_polic @cli_util.wrap_exceptions def update_auto_scaling_configuration_update_metric_based_horizontal_scaling_policy_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, auto_scaling_configuration_id, display_name, is_enabled, cluster_admin_password, secret_id, policy, if_match, policy_details_scale_out_config, policy_details_scale_in_config): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') if not force: if policy: @@ -8355,10 +8354,10 @@ def update_auto_scaling_configuration_update_metric_based_horizontal_scaling_pol @cli_util.wrap_exceptions def update_auto_scaling_configuration_update_schedule_based_vertical_scaling_policy_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, auto_scaling_configuration_id, display_name, is_enabled, cluster_admin_password, secret_id, policy, if_match, policy_details_timezone, policy_details_schedule_details): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(auto_scaling_configuration_id, six.string_types) and len(auto_scaling_configuration_id.strip()) == 0: + if isinstance(auto_scaling_configuration_id, str) and len(auto_scaling_configuration_id.strip()) == 0: raise click.UsageError('Parameter --auto-scaling-configuration-id cannot be whitespace or empty string') if not force: if policy: @@ -8451,7 +8450,7 @@ def update_auto_scaling_configuration_update_schedule_based_vertical_scaling_pol @cli_util.wrap_exceptions def update_bds_capacity_reservation(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_capacity_reservation_id, display_name, compute_capacity_reservations, freeform_tags, defined_tags, if_match): - if isinstance(bds_capacity_reservation_id, six.string_types) and len(bds_capacity_reservation_id.strip()) == 0: + if isinstance(bds_capacity_reservation_id, str) and len(bds_capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-id cannot be whitespace or empty string') if not force: if compute_capacity_reservations or freeform_tags or defined_tags: @@ -8525,10 +8524,10 @@ def update_bds_capacity_reservation(ctx, from_json, force, wait_for_state, max_w @cli_util.wrap_exceptions def update_bds_capacity_reservation_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, bds_capacity_reservation_configuration_id, bds_capacity_reservation_id, display_name, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(bds_capacity_reservation_configuration_id, six.string_types) and len(bds_capacity_reservation_configuration_id.strip()) == 0: + if isinstance(bds_capacity_reservation_configuration_id, str) and len(bds_capacity_reservation_configuration_id.strip()) == 0: raise click.UsageError('Parameter --bds-capacity-reservation-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -8599,7 +8598,7 @@ def update_bds_capacity_reservation_configuration(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def update_bds_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, secret_id, is_secret_reused, display_name, bootstrap_script_url, freeform_tags, defined_tags, kms_key_id, network_config, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or network_config: @@ -8692,10 +8691,10 @@ def update_bds_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, metastore_config_id, display_name, bds_api_key_id, bds_api_key_passphrase, cluster_admin_password, secret_id, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(metastore_config_id, six.string_types) and len(metastore_config_id.strip()) == 0: + if isinstance(metastore_config_id, str) and len(metastore_config_id.strip()) == 0: raise click.UsageError('Parameter --metastore-config-id cannot be whitespace or empty string') kwargs = {} @@ -8776,10 +8775,10 @@ def update_bds_metastore_configuration(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_identity_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, identity_configuration_id, cluster_admin_password, secret_id, upst_configuration_details, iam_user_sync_configuration_details, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(identity_configuration_id, six.string_types) and len(identity_configuration_id.strip()) == 0: + if isinstance(identity_configuration_id, str) and len(identity_configuration_id.strip()) == 0: raise click.UsageError('Parameter --identity-configuration-id cannot be whitespace or empty string') if not force: if upst_configuration_details or iam_user_sync_configuration_details: @@ -8863,10 +8862,10 @@ def update_identity_configuration(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_node_backup_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_backup_configuration_id, level_type_details, display_name, timezone, schedule, number_of_backups_to_retain, backup_type, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_backup_configuration_id, six.string_types) and len(node_backup_configuration_id.strip()) == 0: + if isinstance(node_backup_configuration_id, str) and len(node_backup_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-backup-configuration-id cannot be whitespace or empty string') if not force: if level_type_details: @@ -8955,10 +8954,10 @@ def update_node_backup_configuration(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_node_backup_configuration_node_type_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_backup_configuration_id, level_type_details_node_type, display_name, timezone, schedule, number_of_backups_to_retain, backup_type, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_backup_configuration_id, six.string_types) and len(node_backup_configuration_id.strip()) == 0: + if isinstance(node_backup_configuration_id, str) and len(node_backup_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-backup-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -9044,10 +9043,10 @@ def update_node_backup_configuration_node_type_level_details(ctx, from_json, wai @cli_util.wrap_exceptions def update_node_backup_configuration_node_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_backup_configuration_id, level_type_details_node_host_name, display_name, timezone, schedule, number_of_backups_to_retain, backup_type, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_backup_configuration_id, six.string_types) and len(node_backup_configuration_id.strip()) == 0: + if isinstance(node_backup_configuration_id, str) and len(node_backup_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-backup-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -9132,10 +9131,10 @@ def update_node_backup_configuration_node_level_details(ctx, from_json, wait_for @cli_util.wrap_exceptions def update_node_replace_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_replace_configuration_id, level_type_details, display_name, metric_type, duration_in_minutes, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_replace_configuration_id, six.string_types) and len(node_replace_configuration_id.strip()) == 0: + if isinstance(node_replace_configuration_id, str) and len(node_replace_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-replace-configuration-id cannot be whitespace or empty string') if not force: if level_type_details: @@ -9216,10 +9215,10 @@ def update_node_replace_configuration(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_node_replace_configuration_node_type_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_replace_configuration_id, level_type_details_node_type, display_name, metric_type, duration_in_minutes, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_replace_configuration_id, six.string_types) and len(node_replace_configuration_id.strip()) == 0: + if isinstance(node_replace_configuration_id, str) and len(node_replace_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-replace-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -9297,10 +9296,10 @@ def update_node_replace_configuration_node_type_level_details(ctx, from_json, wa @cli_util.wrap_exceptions def update_node_replace_configuration_node_level_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, node_replace_configuration_id, level_type_details_node_host_name, display_name, metric_type, duration_in_minutes, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(node_replace_configuration_id, six.string_types) and len(node_replace_configuration_id.strip()) == 0: + if isinstance(node_replace_configuration_id, str) and len(node_replace_configuration_id.strip()) == 0: raise click.UsageError('Parameter --node-replace-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -9376,10 +9375,10 @@ def update_node_replace_configuration_node_level_details(ctx, from_json, wait_fo @cli_util.wrap_exceptions def update_resource_principal_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, bds_instance_id, resource_principal_configuration_id, display_name, session_token_life_span_duration_in_hours, if_match): - if isinstance(bds_instance_id, six.string_types) and len(bds_instance_id.strip()) == 0: + if isinstance(bds_instance_id, str) and len(bds_instance_id.strip()) == 0: raise click.UsageError('Parameter --bds-instance-id cannot be whitespace or empty string') - if isinstance(resource_principal_configuration_id, six.string_types) and len(resource_principal_configuration_id.strip()) == 0: + if isinstance(resource_principal_configuration_id, str) and len(resource_principal_configuration_id.strip()) == 0: raise click.UsageError('Parameter --resource-principal-configuration-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/blockchain/src/oci_cli_blockchain_platform/generated/blockchainplatform_cli.py b/services/blockchain/src/oci_cli_blockchain_platform/generated/blockchainplatform_cli.py index 136f91ebb..d5b38149f 100644 --- a/services/blockchain/src/oci_cli_blockchain_platform/generated/blockchainplatform_cli.py +++ b/services/blockchain/src/oci_cli_blockchain_platform/generated/blockchainplatform_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -80,7 +79,7 @@ def work_request_group(): @cli_util.wrap_exceptions def change_blockchain_platform_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, compartment_id, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -231,7 +230,7 @@ def create_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def create_osn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, ad, ocpu_allocation_param, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -297,7 +296,7 @@ def create_osn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def create_peer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, role, ocpu_allocation_param, ad, alias): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -361,7 +360,7 @@ def create_peer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -418,10 +417,10 @@ def delete_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_osn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, osn_id, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') - if isinstance(osn_id, six.string_types) and len(osn_id.strip()) == 0: + if isinstance(osn_id, str) and len(osn_id.strip()) == 0: raise click.UsageError('Parameter --osn-id cannot be whitespace or empty string') kwargs = {} @@ -479,10 +478,10 @@ def delete_osn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_peer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, peer_id, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') - if isinstance(peer_id, six.string_types) and len(peer_id.strip()) == 0: + if isinstance(peer_id, str) and len(peer_id.strip()) == 0: raise click.UsageError('Parameter --peer-id cannot be whitespace or empty string') kwargs = {} @@ -539,7 +538,7 @@ def delete_peer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_work_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -590,7 +589,7 @@ def delete_work_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_blockchain_platform(ctx, from_json, blockchain_platform_id): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -613,10 +612,10 @@ def get_blockchain_platform(ctx, from_json, blockchain_platform_id): @cli_util.wrap_exceptions def get_osn(ctx, from_json, blockchain_platform_id, osn_id): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') - if isinstance(osn_id, six.string_types) and len(osn_id.strip()) == 0: + if isinstance(osn_id, str) and len(osn_id.strip()) == 0: raise click.UsageError('Parameter --osn-id cannot be whitespace or empty string') kwargs = {} @@ -640,10 +639,10 @@ def get_osn(ctx, from_json, blockchain_platform_id, osn_id): @cli_util.wrap_exceptions def get_peer(ctx, from_json, blockchain_platform_id, peer_id): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') - if isinstance(peer_id, six.string_types) and len(peer_id.strip()) == 0: + if isinstance(peer_id, str) and len(peer_id.strip()) == 0: raise click.UsageError('Parameter --peer-id cannot be whitespace or empty string') kwargs = {} @@ -666,7 +665,7 @@ def get_peer(ctx, from_json, blockchain_platform_id, peer_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -695,7 +694,7 @@ def list_blockchain_platform_patches(ctx, from_json, all_pages, page_size, block if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -809,7 +808,7 @@ def list_osns(ctx, from_json, all_pages, page_size, blockchain_platform_id, disp if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -869,7 +868,7 @@ def list_peers(ctx, from_json, all_pages, page_size, blockchain_platform_id, dis if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -926,7 +925,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -977,7 +976,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1093,7 +1092,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, blo @cli_util.wrap_exceptions def preview_scale_blockchain_platform(ctx, from_json, blockchain_platform_id, add_osns, add_replicas, add_peers, add_storage, modify_peers, remove_replicas, remove_osns, remove_peers): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -1161,7 +1160,7 @@ def preview_scale_blockchain_platform(ctx, from_json, blockchain_platform_id, ad @cli_util.wrap_exceptions def scale_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, add_osns, add_replicas, add_peers, add_storage, modify_peers, remove_replicas, remove_osns, remove_peers, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -1244,7 +1243,7 @@ def scale_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def start_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -1299,7 +1298,7 @@ def start_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def stop_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} @@ -1362,7 +1361,7 @@ def stop_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_blockchain_platform(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, description, storage_size_in_tbs, replicas, total_ocpu_capacity, load_balancer_shape, freeform_tags, defined_tags, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') if not force: if replicas or freeform_tags or defined_tags: @@ -1449,10 +1448,10 @@ def update_blockchain_platform(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_osn(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, osn_id, ocpu_allocation_param, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') - if isinstance(osn_id, six.string_types) and len(osn_id.strip()) == 0: + if isinstance(osn_id, str) and len(osn_id.strip()) == 0: raise click.UsageError('Parameter --osn-id cannot be whitespace or empty string') if not force: if ocpu_allocation_param: @@ -1520,10 +1519,10 @@ def update_osn(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_peer(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, blockchain_platform_id, peer_id, ocpu_allocation_param, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') - if isinstance(peer_id, six.string_types) and len(peer_id.strip()) == 0: + if isinstance(peer_id, str) and len(peer_id.strip()) == 0: raise click.UsageError('Parameter --peer-id cannot be whitespace or empty string') if not force: if ocpu_allocation_param: @@ -1589,7 +1588,7 @@ def update_peer(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def upgrade_blockchain_platform(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, patch_id, blockchain_platform_id, if_match): - if isinstance(blockchain_platform_id, six.string_types) and len(blockchain_platform_id.strip()) == 0: + if isinstance(blockchain_platform_id, str) and len(blockchain_platform_id.strip()) == 0: raise click.UsageError('Parameter --blockchain-platform-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/budget/src/oci_cli_budget/generated/budget_cli.py b/services/budget/src/oci_cli_budget/generated/budget_cli.py index 8bf50eea0..7b1ca90f3 100644 --- a/services/budget/src/oci_cli_budget/generated/budget_cli.py +++ b/services/budget/src/oci_cli_budget/generated/budget_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -64,7 +63,7 @@ def budget_group(): @cli_util.wrap_exceptions def create_alert_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, budget_id, type, threshold, threshold_type, display_name, description, recipients, message, freeform_tags, defined_tags): - if isinstance(budget_id, six.string_types) and len(budget_id.strip()) == 0: + if isinstance(budget_id, str) and len(budget_id.strip()) == 0: raise click.UsageError('Parameter --budget-id cannot be whitespace or empty string') kwargs = {} @@ -242,10 +241,10 @@ def create_budget(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_alert_rule(ctx, from_json, budget_id, alert_rule_id, if_match): - if isinstance(budget_id, six.string_types) and len(budget_id.strip()) == 0: + if isinstance(budget_id, str) and len(budget_id.strip()) == 0: raise click.UsageError('Parameter --budget-id cannot be whitespace or empty string') - if isinstance(alert_rule_id, six.string_types) and len(alert_rule_id.strip()) == 0: + if isinstance(alert_rule_id, str) and len(alert_rule_id.strip()) == 0: raise click.UsageError('Parameter --alert-rule-id cannot be whitespace or empty string') kwargs = {} @@ -275,7 +274,7 @@ def delete_alert_rule(ctx, from_json, budget_id, alert_rule_id, if_match): @cli_util.wrap_exceptions def delete_budget(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, budget_id, if_match): - if isinstance(budget_id, six.string_types) and len(budget_id.strip()) == 0: + if isinstance(budget_id, str) and len(budget_id.strip()) == 0: raise click.UsageError('Parameter --budget-id cannot be whitespace or empty string') kwargs = {} @@ -335,10 +334,10 @@ def delete_budget(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def get_alert_rule(ctx, from_json, budget_id, alert_rule_id): - if isinstance(budget_id, six.string_types) and len(budget_id.strip()) == 0: + if isinstance(budget_id, str) and len(budget_id.strip()) == 0: raise click.UsageError('Parameter --budget-id cannot be whitespace or empty string') - if isinstance(alert_rule_id, six.string_types) and len(alert_rule_id.strip()) == 0: + if isinstance(alert_rule_id, str) and len(alert_rule_id.strip()) == 0: raise click.UsageError('Parameter --alert-rule-id cannot be whitespace or empty string') kwargs = {} @@ -361,7 +360,7 @@ def get_alert_rule(ctx, from_json, budget_id, alert_rule_id): @cli_util.wrap_exceptions def get_budget(ctx, from_json, budget_id): - if isinstance(budget_id, six.string_types) and len(budget_id.strip()) == 0: + if isinstance(budget_id, str) and len(budget_id.strip()) == 0: raise click.UsageError('Parameter --budget-id cannot be whitespace or empty string') kwargs = {} @@ -396,7 +395,7 @@ def list_alert_rules(ctx, from_json, all_pages, page_size, budget_id, limit, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(budget_id, six.string_types) and len(budget_id.strip()) == 0: + if isinstance(budget_id, str) and len(budget_id.strip()) == 0: raise click.UsageError('Parameter --budget-id cannot be whitespace or empty string') kwargs = {} @@ -538,10 +537,10 @@ def list_budgets(ctx, from_json, all_pages, page_size, compartment_id, limit, pa @cli_util.wrap_exceptions def update_alert_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, budget_id, alert_rule_id, display_name, type, threshold, threshold_type, recipients, description, message, freeform_tags, defined_tags, if_match): - if isinstance(budget_id, six.string_types) and len(budget_id.strip()) == 0: + if isinstance(budget_id, str) and len(budget_id.strip()) == 0: raise click.UsageError('Parameter --budget-id cannot be whitespace or empty string') - if isinstance(alert_rule_id, six.string_types) and len(alert_rule_id.strip()) == 0: + if isinstance(alert_rule_id, str) and len(alert_rule_id.strip()) == 0: raise click.UsageError('Parameter --alert-rule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -644,7 +643,7 @@ def update_alert_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_budget(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, budget_id, display_name, description, amount, budget_processing_period_start_offset, processing_period_type, start_date, end_date, reset_period, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(budget_id, six.string_types) and len(budget_id.strip()) == 0: + if isinstance(budget_id, str) and len(budget_id.strip()) == 0: raise click.UsageError('Parameter --budget-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: diff --git a/services/budget/src/oci_cli_cost_ad/generated/costad_cli.py b/services/budget/src/oci_cli_cost_ad/generated/costad_cli.py index f9eb67ff8..e58ec4c07 100644 --- a/services/budget/src/oci_cli_cost_ad/generated/costad_cli.py +++ b/services/budget/src/oci_cli_cost_ad/generated/costad_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -223,7 +222,7 @@ def create_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_cost_alert_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_id, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -287,7 +286,7 @@ def delete_cost_alert_subscription(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_monitor_id, if_match): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') kwargs = {} @@ -350,7 +349,7 @@ def delete_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def disable_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_monitor_id, if_match): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') kwargs = {} @@ -401,7 +400,7 @@ def disable_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def enable_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_monitor_id, if_match): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') kwargs = {} @@ -448,7 +447,7 @@ def enable_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def get_cost_alert_subscription(ctx, from_json, subscription_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -470,7 +469,7 @@ def get_cost_alert_subscription(ctx, from_json, subscription_id): @cli_util.wrap_exceptions def get_cost_anomaly_event(ctx, from_json, cost_anomaly_event_id): - if isinstance(cost_anomaly_event_id, six.string_types) and len(cost_anomaly_event_id.strip()) == 0: + if isinstance(cost_anomaly_event_id, str) and len(cost_anomaly_event_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-event-id cannot be whitespace or empty string') kwargs = {} @@ -492,7 +491,7 @@ def get_cost_anomaly_event(ctx, from_json, cost_anomaly_event_id): @cli_util.wrap_exceptions def get_cost_anomaly_monitor(ctx, from_json, cost_anomaly_monitor_id): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') kwargs = {} @@ -786,7 +785,7 @@ def summarize_cost_anomaly_event_analytics(ctx, from_json, compartment_id, limit @cli_util.wrap_exceptions def update_cost_alert_subscription(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_id, description, channels, defined_tags, freeform_tags, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -865,7 +864,7 @@ def update_cost_alert_subscription(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_cost_anomaly_event(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_event_id, feedback_response, defined_tags, freeform_tags, if_match): - if isinstance(cost_anomaly_event_id, six.string_types) and len(cost_anomaly_event_id.strip()) == 0: + if isinstance(cost_anomaly_event_id, str) and len(cost_anomaly_event_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-event-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -942,7 +941,7 @@ def update_cost_anomaly_event(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_cost_anomaly_monitor(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_monitor_id, description, cost_alert_subscription_map, defined_tags, freeform_tags, if_match): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') if not force: if cost_alert_subscription_map or defined_tags or freeform_tags: diff --git a/services/capacity_management/src/oci_cli_capacity_management/generated/capacitymanagement_cli.py b/services/capacity_management/src/oci_cli_capacity_management/generated/capacitymanagement_cli.py index 1aebee6b5..a0cede2a5 100644 --- a/services/capacity_management/src/oci_cli_capacity_management/generated/capacitymanagement_cli.py +++ b/services/capacity_management/src/oci_cli_capacity_management/generated/capacitymanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -292,7 +291,7 @@ def create_occ_capacity_request(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def create_occ_customer(ctx, from_json, tenancy_id, display_name, occ_customer_group_id, description, status): - if isinstance(occ_customer_group_id, six.string_types) and len(occ_customer_group_id.strip()) == 0: + if isinstance(occ_customer_group_id, str) and len(occ_customer_group_id.strip()) == 0: raise click.UsageError('Parameter --occ-customer-group-id cannot be whitespace or empty string') kwargs = {} @@ -408,7 +407,7 @@ def create_occ_customer_group(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_occ_availability_catalog(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_availability_catalog_id, if_match): - if isinstance(occ_availability_catalog_id, six.string_types) and len(occ_availability_catalog_id.strip()) == 0: + if isinstance(occ_availability_catalog_id, str) and len(occ_availability_catalog_id.strip()) == 0: raise click.UsageError('Parameter --occ-availability-catalog-id cannot be whitespace or empty string') kwargs = {} @@ -472,7 +471,7 @@ def delete_occ_availability_catalog(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def delete_occ_capacity_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_capacity_request_id, if_match): - if isinstance(occ_capacity_request_id, six.string_types) and len(occ_capacity_request_id.strip()) == 0: + if isinstance(occ_capacity_request_id, str) and len(occ_capacity_request_id.strip()) == 0: raise click.UsageError('Parameter --occ-capacity-request-id cannot be whitespace or empty string') kwargs = {} @@ -534,10 +533,10 @@ def delete_occ_capacity_request(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_occ_customer(ctx, from_json, occ_customer_group_id, occ_customer_id, if_match): - if isinstance(occ_customer_group_id, six.string_types) and len(occ_customer_group_id.strip()) == 0: + if isinstance(occ_customer_group_id, str) and len(occ_customer_group_id.strip()) == 0: raise click.UsageError('Parameter --occ-customer-group-id cannot be whitespace or empty string') - if isinstance(occ_customer_id, six.string_types) and len(occ_customer_id.strip()) == 0: + if isinstance(occ_customer_id, str) and len(occ_customer_id.strip()) == 0: raise click.UsageError('Parameter --occ-customer-id cannot be whitespace or empty string') kwargs = {} @@ -567,7 +566,7 @@ def delete_occ_customer(ctx, from_json, occ_customer_group_id, occ_customer_id, @cli_util.wrap_exceptions def delete_occ_customer_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_customer_group_id, if_match): - if isinstance(occ_customer_group_id, six.string_types) and len(occ_customer_group_id.strip()) == 0: + if isinstance(occ_customer_group_id, str) and len(occ_customer_group_id.strip()) == 0: raise click.UsageError('Parameter --occ-customer-group-id cannot be whitespace or empty string') kwargs = {} @@ -626,7 +625,7 @@ def delete_occ_customer_group(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_occ_availability_catalog(ctx, from_json, occ_availability_catalog_id): - if isinstance(occ_availability_catalog_id, six.string_types) and len(occ_availability_catalog_id.strip()) == 0: + if isinstance(occ_availability_catalog_id, str) and len(occ_availability_catalog_id.strip()) == 0: raise click.UsageError('Parameter --occ-availability-catalog-id cannot be whitespace or empty string') kwargs = {} @@ -650,7 +649,7 @@ def get_occ_availability_catalog(ctx, from_json, occ_availability_catalog_id): @cli_util.wrap_exceptions def get_occ_availability_catalog_content(ctx, from_json, file, occ_availability_catalog_id, if_match): - if isinstance(occ_availability_catalog_id, six.string_types) and len(occ_availability_catalog_id.strip()) == 0: + if isinstance(occ_availability_catalog_id, str) and len(occ_availability_catalog_id.strip()) == 0: raise click.UsageError('Parameter --occ-availability-catalog-id cannot be whitespace or empty string') kwargs = {} @@ -696,7 +695,7 @@ def get_occ_availability_catalog_content(ctx, from_json, file, occ_availability_ @cli_util.wrap_exceptions def get_occ_capacity_request(ctx, from_json, occ_capacity_request_id): - if isinstance(occ_capacity_request_id, six.string_types) and len(occ_capacity_request_id.strip()) == 0: + if isinstance(occ_capacity_request_id, str) and len(occ_capacity_request_id.strip()) == 0: raise click.UsageError('Parameter --occ-capacity-request-id cannot be whitespace or empty string') kwargs = {} @@ -718,7 +717,7 @@ def get_occ_capacity_request(ctx, from_json, occ_capacity_request_id): @cli_util.wrap_exceptions def get_occ_customer_group(ctx, from_json, occ_customer_group_id): - if isinstance(occ_customer_group_id, six.string_types) and len(occ_customer_group_id.strip()) == 0: + if isinstance(occ_customer_group_id, str) and len(occ_customer_group_id.strip()) == 0: raise click.UsageError('Parameter --occ-customer-group-id cannot be whitespace or empty string') kwargs = {} @@ -754,7 +753,7 @@ def list_internal_namespace_occ_overviews(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace, six.string_types) and len(namespace.strip()) == 0: + if isinstance(namespace, str) and len(namespace.strip()) == 0: raise click.UsageError('Parameter --namespace cannot be whitespace or empty string') kwargs = {} @@ -958,7 +957,7 @@ def list_occ_availabilities(ctx, from_json, all_pages, page_size, occ_availabili if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(occ_availability_catalog_id, six.string_types) and len(occ_availability_catalog_id.strip()) == 0: + if isinstance(occ_availability_catalog_id, str) and len(occ_availability_catalog_id.strip()) == 0: raise click.UsageError('Parameter --occ-availability-catalog-id cannot be whitespace or empty string') kwargs = {} @@ -1493,7 +1492,7 @@ def list_occ_overviews(ctx, from_json, all_pages, page_size, namespace, compartm if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace, six.string_types) and len(namespace.strip()) == 0: + if isinstance(namespace, str) and len(namespace.strip()) == 0: raise click.UsageError('Parameter --namespace cannot be whitespace or empty string') kwargs = {} @@ -1554,7 +1553,7 @@ def list_occ_overviews(ctx, from_json, all_pages, page_size, namespace, compartm @cli_util.wrap_exceptions def patch_internal_occ_capacity_request(ctx, from_json, occ_capacity_request_id, items, if_match): - if isinstance(occ_capacity_request_id, six.string_types) and len(occ_capacity_request_id.strip()) == 0: + if isinstance(occ_capacity_request_id, str) and len(occ_capacity_request_id.strip()) == 0: raise click.UsageError('Parameter --occ-capacity-request-id cannot be whitespace or empty string') kwargs = {} @@ -1589,7 +1588,7 @@ def patch_internal_occ_capacity_request(ctx, from_json, occ_capacity_request_id, @cli_util.wrap_exceptions def patch_occ_capacity_request(ctx, from_json, occ_capacity_request_id, items, if_match): - if isinstance(occ_capacity_request_id, six.string_types) and len(occ_capacity_request_id.strip()) == 0: + if isinstance(occ_capacity_request_id, str) and len(occ_capacity_request_id.strip()) == 0: raise click.UsageError('Parameter --occ-capacity-request-id cannot be whitespace or empty string') kwargs = {} @@ -1621,7 +1620,7 @@ def patch_occ_capacity_request(ctx, from_json, occ_capacity_request_id, items, i @cli_util.wrap_exceptions def publish_occ_availability_catalog(ctx, from_json, occ_availability_catalog_id, if_match): - if isinstance(occ_availability_catalog_id, six.string_types) and len(occ_availability_catalog_id.strip()) == 0: + if isinstance(occ_availability_catalog_id, str) and len(occ_availability_catalog_id.strip()) == 0: raise click.UsageError('Parameter --occ-availability-catalog-id cannot be whitespace or empty string') kwargs = {} @@ -1648,7 +1647,7 @@ def publish_occ_availability_catalog(ctx, from_json, occ_availability_catalog_id @cli_util.wrap_exceptions def update_internal_occ_capacity_request(ctx, from_json, occ_capacity_request_id, request_state, lifecycle_details, if_match): - if isinstance(occ_capacity_request_id, six.string_types) and len(occ_capacity_request_id.strip()) == 0: + if isinstance(occ_capacity_request_id, str) and len(occ_capacity_request_id.strip()) == 0: raise click.UsageError('Parameter --occ-capacity-request-id cannot be whitespace or empty string') kwargs = {} @@ -1691,7 +1690,7 @@ def update_internal_occ_capacity_request(ctx, from_json, occ_capacity_request_id @cli_util.wrap_exceptions def update_occ_availability_catalog(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_availability_catalog_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(occ_availability_catalog_id, six.string_types) and len(occ_availability_catalog_id.strip()) == 0: + if isinstance(occ_availability_catalog_id, str) and len(occ_availability_catalog_id.strip()) == 0: raise click.UsageError('Parameter --occ-availability-catalog-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1767,7 +1766,7 @@ def update_occ_availability_catalog(ctx, from_json, force, wait_for_state, max_w @cli_util.wrap_exceptions def update_occ_capacity_request(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_capacity_request_id, display_name, freeform_tags, defined_tags, request_state, if_match): - if isinstance(occ_capacity_request_id, six.string_types) and len(occ_capacity_request_id.strip()) == 0: + if isinstance(occ_capacity_request_id, str) and len(occ_capacity_request_id.strip()) == 0: raise click.UsageError('Parameter --occ-capacity-request-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1839,10 +1838,10 @@ def update_occ_capacity_request(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_occ_customer(ctx, from_json, occ_customer_group_id, occ_customer_id, display_name, description, status, if_match): - if isinstance(occ_customer_group_id, six.string_types) and len(occ_customer_group_id.strip()) == 0: + if isinstance(occ_customer_group_id, str) and len(occ_customer_group_id.strip()) == 0: raise click.UsageError('Parameter --occ-customer-group-id cannot be whitespace or empty string') - if isinstance(occ_customer_id, six.string_types) and len(occ_customer_id.strip()) == 0: + if isinstance(occ_customer_id, str) and len(occ_customer_id.strip()) == 0: raise click.UsageError('Parameter --occ-customer-id cannot be whitespace or empty string') kwargs = {} @@ -1890,7 +1889,7 @@ def update_occ_customer(ctx, from_json, occ_customer_group_id, occ_customer_id, @cli_util.wrap_exceptions def update_occ_customer_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_customer_group_id, display_name, description, freeform_tags, defined_tags, status, if_match): - if isinstance(occ_customer_group_id, six.string_types) and len(occ_customer_group_id.strip()) == 0: + if isinstance(occ_customer_group_id, str) and len(occ_customer_group_id.strip()) == 0: raise click.UsageError('Parameter --occ-customer-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/capacity_management/src/oci_cli_demand_signal/generated/demandsignal_cli.py b/services/capacity_management/src/oci_cli_demand_signal/generated/demandsignal_cli.py index 4fbfd4933..dc4dcfb69 100644 --- a/services/capacity_management/src/oci_cli_demand_signal/generated/demandsignal_cli.py +++ b/services/capacity_management/src/oci_cli_demand_signal/generated/demandsignal_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -240,7 +239,7 @@ def create_occm_demand_signal_item(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_occm_demand_signal(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ds_id, if_match): - if isinstance(ds_id, six.string_types) and len(ds_id.strip()) == 0: + if isinstance(ds_id, str) and len(ds_id.strip()) == 0: raise click.UsageError('Parameter --ds-id cannot be whitespace or empty string') kwargs = {} @@ -304,7 +303,7 @@ def delete_occm_demand_signal(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_occm_demand_signal_item(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ds_item_id, if_match): - if isinstance(ds_item_id, six.string_types) and len(ds_item_id.strip()) == 0: + if isinstance(ds_item_id, str) and len(ds_item_id.strip()) == 0: raise click.UsageError('Parameter --ds-item-id cannot be whitespace or empty string') kwargs = {} @@ -363,7 +362,7 @@ def delete_occm_demand_signal_item(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def get_occm_demand_signal(ctx, from_json, ds_id): - if isinstance(ds_id, six.string_types) and len(ds_id.strip()) == 0: + if isinstance(ds_id, str) and len(ds_id.strip()) == 0: raise click.UsageError('Parameter --ds-id cannot be whitespace or empty string') kwargs = {} @@ -385,7 +384,7 @@ def get_occm_demand_signal(ctx, from_json, ds_id): @cli_util.wrap_exceptions def get_occm_demand_signal_item(ctx, from_json, ds_item_id): - if isinstance(ds_item_id, six.string_types) and len(ds_item_id.strip()) == 0: + if isinstance(ds_item_id, str) and len(ds_item_id.strip()) == 0: raise click.UsageError('Parameter --ds-item-id cannot be whitespace or empty string') kwargs = {} @@ -663,7 +662,7 @@ def list_occm_demand_signals(ctx, from_json, all_pages, page_size, compartment_i @cli_util.wrap_exceptions def update_occm_demand_signal(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ds_id, display_name, freeform_tags, defined_tags, description, lifecycle_details, if_match): - if isinstance(ds_id, six.string_types) and len(ds_id.strip()) == 0: + if isinstance(ds_id, str) and len(ds_id.strip()) == 0: raise click.UsageError('Parameter --ds-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -749,7 +748,7 @@ def update_occm_demand_signal(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_occm_demand_signal_item(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ds_item_id, region_parameterconflict, ad, target_compartment_id, demand_quantity, time_needed_before, resource_properties, notes, freeform_tags, defined_tags, if_match): - if isinstance(ds_item_id, six.string_types) and len(ds_item_id.strip()) == 0: + if isinstance(ds_item_id, str) and len(ds_item_id.strip()) == 0: raise click.UsageError('Parameter --ds-item-id cannot be whitespace or empty string') if not force: if resource_properties or freeform_tags or defined_tags: diff --git a/services/capacity_management/src/oci_cli_internal_demand_signal/generated/internaldemandsignal_cli.py b/services/capacity_management/src/oci_cli_internal_demand_signal/generated/internaldemandsignal_cli.py index 35e9fdc79..3705daa95 100644 --- a/services/capacity_management/src/oci_cli_internal_demand_signal/generated/internaldemandsignal_cli.py +++ b/services/capacity_management/src/oci_cli_internal_demand_signal/generated/internaldemandsignal_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -154,7 +153,7 @@ def create_internal_occm_demand_signal_delivery(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def delete_internal_occm_demand_signal_delivery(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ds_delivery_id, if_match): - if isinstance(ds_delivery_id, six.string_types) and len(ds_delivery_id.strip()) == 0: + if isinstance(ds_delivery_id, str) and len(ds_delivery_id.strip()) == 0: raise click.UsageError('Parameter --ds-delivery-id cannot be whitespace or empty string') kwargs = {} @@ -213,7 +212,7 @@ def delete_internal_occm_demand_signal_delivery(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def get_internal_occm_demand_signal(ctx, from_json, ds_id): - if isinstance(ds_id, six.string_types) and len(ds_id.strip()) == 0: + if isinstance(ds_id, str) and len(ds_id.strip()) == 0: raise click.UsageError('Parameter --ds-id cannot be whitespace or empty string') kwargs = {} @@ -235,7 +234,7 @@ def get_internal_occm_demand_signal(ctx, from_json, ds_id): @cli_util.wrap_exceptions def get_internal_occm_demand_signal_catalog(ctx, from_json, ds_catalog_id): - if isinstance(ds_catalog_id, six.string_types) and len(ds_catalog_id.strip()) == 0: + if isinstance(ds_catalog_id, str) and len(ds_catalog_id.strip()) == 0: raise click.UsageError('Parameter --ds-catalog-id cannot be whitespace or empty string') kwargs = {} @@ -257,7 +256,7 @@ def get_internal_occm_demand_signal_catalog(ctx, from_json, ds_catalog_id): @cli_util.wrap_exceptions def get_internal_occm_demand_signal_delivery(ctx, from_json, ds_delivery_id): - if isinstance(ds_delivery_id, six.string_types) and len(ds_delivery_id.strip()) == 0: + if isinstance(ds_delivery_id, str) and len(ds_delivery_id.strip()) == 0: raise click.UsageError('Parameter --ds-delivery-id cannot be whitespace or empty string') kwargs = {} @@ -610,7 +609,7 @@ def list_internal_occm_demand_signals(ctx, from_json, all_pages, page_size, comp @cli_util.wrap_exceptions def update_internal_occm_demand_signal(ctx, from_json, ds_id, lifecycle_details, if_match): - if isinstance(ds_id, six.string_types) and len(ds_id.strip()) == 0: + if isinstance(ds_id, str) and len(ds_id.strip()) == 0: raise click.UsageError('Parameter --ds-id cannot be whitespace or empty string') kwargs = {} @@ -653,7 +652,7 @@ def update_internal_occm_demand_signal(ctx, from_json, ds_id, lifecycle_details, @cli_util.wrap_exceptions def update_internal_occm_demand_signal_delivery(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ds_delivery_id, accepted_quantity, lifecycle_details, time_delivered, justification, notes, freeform_tags, defined_tags, if_match): - if isinstance(ds_delivery_id, six.string_types) and len(ds_delivery_id.strip()) == 0: + if isinstance(ds_delivery_id, str) and len(ds_delivery_id.strip()) == 0: raise click.UsageError('Parameter --ds-delivery-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/certificates/src/oci_cli_certificates/generated/certificates_cli.py b/services/certificates/src/oci_cli_certificates/generated/certificates_cli.py index 2bc1c25b8..dca93dd36 100644 --- a/services/certificates/src/oci_cli_certificates/generated/certificates_cli.py +++ b/services/certificates/src/oci_cli_certificates/generated/certificates_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -68,7 +67,7 @@ def certificate_bundle_group(): @cli_util.wrap_exceptions def get_ca_bundle(ctx, from_json, ca_bundle_id): - if isinstance(ca_bundle_id, six.string_types) and len(ca_bundle_id.strip()) == 0: + if isinstance(ca_bundle_id, str) and len(ca_bundle_id.strip()) == 0: raise click.UsageError('Parameter --ca-bundle-id cannot be whitespace or empty string') kwargs = {} @@ -93,7 +92,7 @@ def get_ca_bundle(ctx, from_json, ca_bundle_id): @cli_util.wrap_exceptions def get_certificate_authority_bundle(ctx, from_json, certificate_authority_id, version_number, certificate_authority_version_name, stage): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') kwargs = {} @@ -127,7 +126,7 @@ def get_certificate_authority_bundle(ctx, from_json, certificate_authority_id, v @cli_util.wrap_exceptions def get_certificate_bundle(ctx, from_json, certificate_id, version_number, certificate_version_name, stage, certificate_bundle_type): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -160,7 +159,7 @@ def get_certificate_bundle(ctx, from_json, certificate_id, version_number, certi @cli_util.wrap_exceptions def list_certificate_authority_bundle_versions(ctx, from_json, all_pages, certificate_authority_id, sort_by, sort_order): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') kwargs = {} @@ -189,7 +188,7 @@ def list_certificate_authority_bundle_versions(ctx, from_json, all_pages, certif @cli_util.wrap_exceptions def list_certificate_bundle_versions(ctx, from_json, all_pages, certificate_id, sort_by, sort_order): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/certificates_management/src/oci_cli_certificates_management/generated/certificatesmanagement_cli.py b/services/certificates_management/src/oci_cli_certificates_management/generated/certificatesmanagement_cli.py index 465fb7ec9..0eb27505e 100644 --- a/services/certificates_management/src/oci_cli_certificates_management/generated/certificatesmanagement_cli.py +++ b/services/certificates_management/src/oci_cli_certificates_management/generated/certificatesmanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -118,7 +117,7 @@ def certificate_authority_summary_group(): @cli_util.wrap_exceptions def cancel_certificate_authority_deletion(ctx, from_json, certificate_authority_id, if_match): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') kwargs = {} @@ -144,10 +143,10 @@ def cancel_certificate_authority_deletion(ctx, from_json, certificate_authority_ @cli_util.wrap_exceptions def cancel_certificate_authority_version_deletion(ctx, from_json, certificate_authority_id, certificate_authority_version_number, if_match): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') - if isinstance(certificate_authority_version_number, six.string_types) and len(certificate_authority_version_number.strip()) == 0: + if isinstance(certificate_authority_version_number, str) and len(certificate_authority_version_number.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-version-number cannot be whitespace or empty string') kwargs = {} @@ -173,7 +172,7 @@ def cancel_certificate_authority_version_deletion(ctx, from_json, certificate_au @cli_util.wrap_exceptions def cancel_certificate_deletion(ctx, from_json, certificate_id, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -199,10 +198,10 @@ def cancel_certificate_deletion(ctx, from_json, certificate_id, if_match): @cli_util.wrap_exceptions def cancel_certificate_version_deletion(ctx, from_json, certificate_id, certificate_version_number, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') - if isinstance(certificate_version_number, six.string_types) and len(certificate_version_number.strip()) == 0: + if isinstance(certificate_version_number, str) and len(certificate_version_number.strip()) == 0: raise click.UsageError('Parameter --certificate-version-number cannot be whitespace or empty string') kwargs = {} @@ -231,7 +230,7 @@ def cancel_certificate_version_deletion(ctx, from_json, certificate_id, certific @cli_util.wrap_exceptions def change_ca_bundle_compartment(ctx, from_json, ca_bundle_id, compartment_id, if_match): - if isinstance(ca_bundle_id, six.string_types) and len(ca_bundle_id.strip()) == 0: + if isinstance(ca_bundle_id, str) and len(ca_bundle_id.strip()) == 0: raise click.UsageError('Parameter --ca-bundle-id cannot be whitespace or empty string') kwargs = {} @@ -264,7 +263,7 @@ def change_ca_bundle_compartment(ctx, from_json, ca_bundle_id, compartment_id, i @cli_util.wrap_exceptions def change_certificate_authority_compartment(ctx, from_json, certificate_authority_id, compartment_id, if_match): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') kwargs = {} @@ -297,7 +296,7 @@ def change_certificate_authority_compartment(ctx, from_json, certificate_authori @cli_util.wrap_exceptions def change_certificate_compartment(ctx, from_json, certificate_id, compartment_id, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -1204,7 +1203,7 @@ def create_certificate_authority_create_subordinate_ca_managed_internally_issued @cli_util.wrap_exceptions def delete_ca_bundle(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ca_bundle_id, if_match): - if isinstance(ca_bundle_id, six.string_types) and len(ca_bundle_id.strip()) == 0: + if isinstance(ca_bundle_id, str) and len(ca_bundle_id.strip()) == 0: raise click.UsageError('Parameter --ca-bundle-id cannot be whitespace or empty string') kwargs = {} @@ -1263,7 +1262,7 @@ def delete_ca_bundle(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_association(ctx, from_json, association_id): - if isinstance(association_id, six.string_types) and len(association_id.strip()) == 0: + if isinstance(association_id, str) and len(association_id.strip()) == 0: raise click.UsageError('Parameter --association-id cannot be whitespace or empty string') kwargs = {} @@ -1285,7 +1284,7 @@ def get_association(ctx, from_json, association_id): @cli_util.wrap_exceptions def get_ca_bundle(ctx, from_json, ca_bundle_id): - if isinstance(ca_bundle_id, six.string_types) and len(ca_bundle_id.strip()) == 0: + if isinstance(ca_bundle_id, str) and len(ca_bundle_id.strip()) == 0: raise click.UsageError('Parameter --ca-bundle-id cannot be whitespace or empty string') kwargs = {} @@ -1307,7 +1306,7 @@ def get_ca_bundle(ctx, from_json, ca_bundle_id): @cli_util.wrap_exceptions def get_certificate(ctx, from_json, certificate_id): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -1329,7 +1328,7 @@ def get_certificate(ctx, from_json, certificate_id): @cli_util.wrap_exceptions def get_certificate_authority(ctx, from_json, certificate_authority_id): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') kwargs = {} @@ -1352,10 +1351,10 @@ def get_certificate_authority(ctx, from_json, certificate_authority_id): @cli_util.wrap_exceptions def get_certificate_authority_version(ctx, from_json, certificate_authority_id, certificate_authority_version_number): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') - if isinstance(certificate_authority_version_number, six.string_types) and len(certificate_authority_version_number.strip()) == 0: + if isinstance(certificate_authority_version_number, str) and len(certificate_authority_version_number.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-version-number cannot be whitespace or empty string') kwargs = {} @@ -1379,10 +1378,10 @@ def get_certificate_authority_version(ctx, from_json, certificate_authority_id, @cli_util.wrap_exceptions def get_certificate_version(ctx, from_json, certificate_id, certificate_version_number): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') - if isinstance(certificate_version_number, six.string_types) and len(certificate_version_number.strip()) == 0: + if isinstance(certificate_version_number, str) and len(certificate_version_number.strip()) == 0: raise click.UsageError('Parameter --certificate-version-number cannot be whitespace or empty string') kwargs = {} @@ -1610,7 +1609,7 @@ def list_certificate_authority_versions(ctx, from_json, all_pages, page_size, ce if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') kwargs = {} @@ -1670,7 +1669,7 @@ def list_certificate_versions(ctx, from_json, all_pages, page_size, certificate_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -1788,10 +1787,10 @@ def list_certificates(ctx, from_json, all_pages, page_size, compartment_id, life @cli_util.wrap_exceptions def revoke_certificate_authority_version(ctx, from_json, certificate_authority_id, certificate_authority_version_number, revocation_reason, if_match): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') - if isinstance(certificate_authority_version_number, six.string_types) and len(certificate_authority_version_number.strip()) == 0: + if isinstance(certificate_authority_version_number, str) and len(certificate_authority_version_number.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-version-number cannot be whitespace or empty string') kwargs = {} @@ -1826,10 +1825,10 @@ def revoke_certificate_authority_version(ctx, from_json, certificate_authority_i @cli_util.wrap_exceptions def revoke_certificate_version(ctx, from_json, certificate_id, certificate_version_number, revocation_reason, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') - if isinstance(certificate_version_number, six.string_types) and len(certificate_version_number.strip()) == 0: + if isinstance(certificate_version_number, str) and len(certificate_version_number.strip()) == 0: raise click.UsageError('Parameter --certificate-version-number cannot be whitespace or empty string') kwargs = {} @@ -1863,7 +1862,7 @@ def revoke_certificate_version(ctx, from_json, certificate_id, certificate_versi @cli_util.wrap_exceptions def schedule_certificate_authority_deletion(ctx, from_json, certificate_authority_id, time_of_deletion, if_match): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') kwargs = {} @@ -1897,10 +1896,10 @@ def schedule_certificate_authority_deletion(ctx, from_json, certificate_authorit @cli_util.wrap_exceptions def schedule_certificate_authority_version_deletion(ctx, from_json, certificate_authority_id, certificate_authority_version_number, time_of_deletion, if_match): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') - if isinstance(certificate_authority_version_number, six.string_types) and len(certificate_authority_version_number.strip()) == 0: + if isinstance(certificate_authority_version_number, str) and len(certificate_authority_version_number.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-version-number cannot be whitespace or empty string') kwargs = {} @@ -1934,7 +1933,7 @@ def schedule_certificate_authority_version_deletion(ctx, from_json, certificate_ @cli_util.wrap_exceptions def schedule_certificate_deletion(ctx, from_json, certificate_id, time_of_deletion, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -1970,10 +1969,10 @@ def schedule_certificate_deletion(ctx, from_json, certificate_id, time_of_deleti @cli_util.wrap_exceptions def schedule_certificate_version_deletion(ctx, from_json, certificate_id, certificate_version_number, time_of_deletion, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') - if isinstance(certificate_version_number, six.string_types) and len(certificate_version_number.strip()) == 0: + if isinstance(certificate_version_number, str) and len(certificate_version_number.strip()) == 0: raise click.UsageError('Parameter --certificate-version-number cannot be whitespace or empty string') kwargs = {} @@ -2014,7 +2013,7 @@ def schedule_certificate_version_deletion(ctx, from_json, certificate_id, certif @cli_util.wrap_exceptions def update_ca_bundle(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ca_bundle_id, description, ca_bundle_pem, freeform_tags, defined_tags, if_match): - if isinstance(ca_bundle_id, six.string_types) and len(ca_bundle_id.strip()) == 0: + if isinstance(ca_bundle_id, str) and len(ca_bundle_id.strip()) == 0: raise click.UsageError('Parameter --ca-bundle-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2094,7 +2093,7 @@ def update_ca_bundle(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_certificate(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, description, current_version_number, certificate_config, freeform_tags, defined_tags, certificate_rules, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') if not force: if certificate_config or freeform_tags or defined_tags or certificate_rules: @@ -2185,7 +2184,7 @@ def update_certificate(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_certificate_update_certificate_by_importing_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, certificate_config_cert_chain_pem, certificate_config_private_key_pem, certificate_config_certificate_pem, description, current_version_number, freeform_tags, defined_tags, certificate_rules, if_match, certificate_config_version_name, certificate_config_stage, certificate_config_private_key_pem_passphrase): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or certificate_rules: @@ -2285,7 +2284,7 @@ def update_certificate_update_certificate_by_importing_config_details(ctx, from_ @cli_util.wrap_exceptions def update_certificate_update_certificate_issued_by_internal_ca_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, description, current_version_number, freeform_tags, defined_tags, certificate_rules, if_match, certificate_config_version_name, certificate_config_stage, certificate_config_validity): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or certificate_rules: @@ -2383,7 +2382,7 @@ def update_certificate_update_certificate_issued_by_internal_ca_config_details(c @cli_util.wrap_exceptions def update_certificate_update_certificate_managed_externally_issued_by_internal_ca_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, certificate_config_csr_pem, description, current_version_number, freeform_tags, defined_tags, certificate_rules, if_match, certificate_config_version_name, certificate_config_stage, certificate_config_validity): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or certificate_rules: @@ -2481,7 +2480,7 @@ def update_certificate_update_certificate_managed_externally_issued_by_internal_ @cli_util.wrap_exceptions def update_certificate_authority(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_authority_id, description, current_version_number, certificate_authority_config, certificate_revocation_list_details, external_key_description, freeform_tags, defined_tags, certificate_authority_rules, if_match): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') if not force: if certificate_authority_config or certificate_revocation_list_details or freeform_tags or defined_tags or certificate_authority_rules: @@ -2577,7 +2576,7 @@ def update_certificate_authority(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_certificate_authority_update_root_ca_managed_externally_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_authority_id, certificate_authority_config_certificate_pem, description, current_version_number, certificate_revocation_list_details, external_key_description, freeform_tags, defined_tags, certificate_authority_rules, if_match, certificate_authority_config_version_name, certificate_authority_config_stage): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') if not force: if certificate_revocation_list_details or freeform_tags or defined_tags or certificate_authority_rules: @@ -2680,7 +2679,7 @@ def update_certificate_authority_update_root_ca_managed_externally_config_detail @cli_util.wrap_exceptions def update_certificate_authority_update_subordinate_ca_issued_by_internal_ca_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_authority_id, description, current_version_number, certificate_revocation_list_details, external_key_description, freeform_tags, defined_tags, certificate_authority_rules, if_match, certificate_authority_config_version_name, certificate_authority_config_stage, certificate_authority_config_validity): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') if not force: if certificate_revocation_list_details or freeform_tags or defined_tags or certificate_authority_rules: @@ -2785,7 +2784,7 @@ def update_certificate_authority_update_subordinate_ca_issued_by_internal_ca_con @cli_util.wrap_exceptions def update_certificate_authority_update_root_ca_by_generating_internally_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_authority_id, description, current_version_number, certificate_revocation_list_details, external_key_description, freeform_tags, defined_tags, certificate_authority_rules, if_match, certificate_authority_config_version_name, certificate_authority_config_stage, certificate_authority_config_validity): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') if not force: if certificate_revocation_list_details or freeform_tags or defined_tags or certificate_authority_rules: @@ -2890,7 +2889,7 @@ def update_certificate_authority_update_root_ca_by_generating_internally_config_ @cli_util.wrap_exceptions def update_certificate_authority_update_subordinate_ca_managed_internally_issued_by_external_ca_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_authority_id, certificate_authority_config_action_details, description, current_version_number, certificate_revocation_list_details, external_key_description, freeform_tags, defined_tags, certificate_authority_rules, if_match, certificate_authority_config_version_name, certificate_authority_config_stage): - if isinstance(certificate_authority_id, six.string_types) and len(certificate_authority_id.strip()) == 0: + if isinstance(certificate_authority_id, str) and len(certificate_authority_id.strip()) == 0: raise click.UsageError('Parameter --certificate-authority-id cannot be whitespace or empty string') if not force: if certificate_revocation_list_details or freeform_tags or defined_tags or certificate_authority_rules: diff --git a/services/cims/src/oci_cli_incident/generated/incident_cli.py b/services/cims/src/oci_cli_incident/generated/incident_cli.py index f10793b42..7f436a61c 100644 --- a/services/cims/src/oci_cli_incident/generated/incident_cli.py +++ b/services/cims/src/oci_cli_incident/generated/incident_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -132,7 +131,7 @@ def create_incident(ctx, from_json, compartment_id, ticket, problem_type, user_g @cli_util.wrap_exceptions def get_incident(ctx, from_json, incident_key, compartment_id, ocid, homeregion, problemtype, bearertokentype, bearertoken, idtoken, domainid): - if isinstance(incident_key, six.string_types) and len(incident_key.strip()) == 0: + if isinstance(incident_key, str) and len(incident_key.strip()) == 0: raise click.UsageError('Parameter --incident-key cannot be whitespace or empty string') kwargs = {} @@ -332,7 +331,7 @@ def list_incidents(ctx, from_json, all_pages, page_size, compartment_id, limit, @cli_util.wrap_exceptions def put_attachment(ctx, from_json, put_attachment_details, incident_key, attachment_name, compartment_id, is_restricted_flag, ocid, if_match, homeregion, problemtype, bearertokentype, bearertoken, idtoken, domainid): - if isinstance(incident_key, six.string_types) and len(incident_key.strip()) == 0: + if isinstance(incident_key, str) and len(incident_key.strip()) == 0: raise click.UsageError('Parameter --incident-key cannot be whitespace or empty string') kwargs = {} @@ -389,7 +388,7 @@ def put_attachment(ctx, from_json, put_attachment_details, incident_key, attachm @cli_util.wrap_exceptions def update_incident(ctx, from_json, force, incident_key, ticket, compartment_id, problem_type, if_match, ocid, homeregion, bearertokentype, bearertoken, idtoken, domainid): - if isinstance(incident_key, six.string_types) and len(incident_key.strip()) == 0: + if isinstance(incident_key, str) and len(incident_key.strip()) == 0: raise click.UsageError('Parameter --incident-key cannot be whitespace or empty string') if not force: if ticket: diff --git a/services/cloud_bridge/src/oci_cli_common/generated/common_cli.py b/services/cloud_bridge/src/oci_cli_common/generated/common_cli.py index 1a1c9df97..fea1f2f98 100644 --- a/services/cloud_bridge/src/oci_cli_common/generated/common_cli.py +++ b/services/cloud_bridge/src/oci_cli_common/generated/common_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -81,7 +80,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -112,7 +111,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -169,7 +168,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/cloud_bridge/src/oci_cli_discovery/discovery_cli_extended.py b/services/cloud_bridge/src/oci_cli_discovery/discovery_cli_extended.py index 3aaee632b..e5e4cb7b4 100644 --- a/services/cloud_bridge/src/oci_cli_discovery/discovery_cli_extended.py +++ b/services/cloud_bridge/src/oci_cli_discovery/discovery_cli_extended.py @@ -3,7 +3,6 @@ # 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. import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 import click # noqa: F401 import json # noqa: F401 @@ -216,7 +215,7 @@ def update_asset_source(ctx, from_json, force, wait_for_state, max_wait_seconds, vcenter_endpoint, discovery_credentials, replication_credentials, are_historical_metrics_collected, are_realtime_metrics_collected, is_cost_information_collected, discovery_schedule_id, olvm_endpoint, if_match): - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: diff --git a/services/cloud_bridge/src/oci_cli_discovery/generated/discovery_cli.py b/services/cloud_bridge/src/oci_cli_discovery/generated/discovery_cli.py index ac386135a..463646691 100644 --- a/services/cloud_bridge/src/oci_cli_discovery/generated/discovery_cli.py +++ b/services/cloud_bridge/src/oci_cli_discovery/generated/discovery_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def discovery_schedule_group(): @cli_util.wrap_exceptions def change_asset_source_compartment(ctx, from_json, asset_source_id, compartment_id, if_match): - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') kwargs = {} @@ -88,7 +87,7 @@ def change_asset_source_compartment(ctx, from_json, asset_source_id, compartment @cli_util.wrap_exceptions def change_discovery_schedule_compartment(ctx, from_json, discovery_schedule_id, compartment_id, if_match): - if isinstance(discovery_schedule_id, six.string_types) and len(discovery_schedule_id.strip()) == 0: + if isinstance(discovery_schedule_id, str) and len(discovery_schedule_id.strip()) == 0: raise click.UsageError('Parameter --discovery-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -579,7 +578,7 @@ def create_discovery_schedule(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_source_id, if_match): - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') kwargs = {} @@ -635,7 +634,7 @@ def delete_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_discovery_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, discovery_schedule_id, if_match): - if isinstance(discovery_schedule_id, six.string_types) and len(discovery_schedule_id.strip()) == 0: + if isinstance(discovery_schedule_id, str) and len(discovery_schedule_id.strip()) == 0: raise click.UsageError('Parameter --discovery-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -694,7 +693,7 @@ def delete_discovery_schedule(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_asset_source(ctx, from_json, asset_source_id): - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') kwargs = {} @@ -716,7 +715,7 @@ def get_asset_source(ctx, from_json, asset_source_id): @cli_util.wrap_exceptions def get_discovery_schedule(ctx, from_json, discovery_schedule_id): - if isinstance(discovery_schedule_id, six.string_types) and len(discovery_schedule_id.strip()) == 0: + if isinstance(discovery_schedule_id, str) and len(discovery_schedule_id.strip()) == 0: raise click.UsageError('Parameter --discovery-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -745,7 +744,7 @@ def list_asset_source_connections(ctx, from_json, all_pages, page_size, asset_so if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') kwargs = {} @@ -974,7 +973,7 @@ def list_supported_cloud_regions(ctx, from_json, all_pages, page_size, asset_sou @cli_util.wrap_exceptions def refresh_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_source_id): - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') kwargs = {} @@ -1036,7 +1035,7 @@ def refresh_asset_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_asset_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_source_id, type, display_name, assets_compartment_id, discovery_schedule_id, freeform_tags, defined_tags, system_tags, environment_type, if_match): - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: @@ -1134,7 +1133,7 @@ def update_asset_source(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_asset_source_update_vm_ware_asset_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_source_id, display_name, assets_compartment_id, discovery_schedule_id, freeform_tags, defined_tags, system_tags, environment_type, vcenter_endpoint, discovery_credentials, replication_credentials, are_historical_metrics_collected, are_realtime_metrics_collected, if_match): - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags or discovery_credentials or replication_credentials: @@ -1248,7 +1247,7 @@ def update_asset_source_update_vm_ware_asset_source_details(ctx, from_json, forc @cli_util.wrap_exceptions def update_asset_source_update_olvm_asset_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_source_id, display_name, assets_compartment_id, discovery_schedule_id, freeform_tags, defined_tags, system_tags, environment_type, olvm_endpoint, discovery_credentials, replication_credentials, are_historical_metrics_collected, are_realtime_metrics_collected, if_match): - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags or discovery_credentials or replication_credentials: @@ -1362,7 +1361,7 @@ def update_asset_source_update_olvm_asset_source_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_asset_source_update_aws_asset_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_source_id, display_name, assets_compartment_id, discovery_schedule_id, freeform_tags, defined_tags, system_tags, environment_type, discovery_credentials, replication_credentials, are_historical_metrics_collected, are_realtime_metrics_collected, is_cost_information_collected, if_match): - if isinstance(asset_source_id, six.string_types) and len(asset_source_id.strip()) == 0: + if isinstance(asset_source_id, str) and len(asset_source_id.strip()) == 0: raise click.UsageError('Parameter --asset-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags or discovery_credentials or replication_credentials: @@ -1468,7 +1467,7 @@ def update_asset_source_update_aws_asset_source_details(ctx, from_json, force, w @cli_util.wrap_exceptions def update_discovery_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, discovery_schedule_id, display_name, execution_recurrences, freeform_tags, defined_tags, if_match): - if isinstance(discovery_schedule_id, six.string_types) and len(discovery_schedule_id.strip()) == 0: + if isinstance(discovery_schedule_id, str) and len(discovery_schedule_id.strip()) == 0: raise click.UsageError('Parameter --discovery-schedule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/cloud_bridge/src/oci_cli_inventory/generated/inventory_cli.py b/services/cloud_bridge/src/oci_cli_inventory/generated/inventory_cli.py index 2c1cc63e5..fd232111c 100644 --- a/services/cloud_bridge/src/oci_cli_inventory/generated/inventory_cli.py +++ b/services/cloud_bridge/src/oci_cli_inventory/generated/inventory_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -125,7 +124,7 @@ def analyze_assets(ctx, from_json, compartment_id, aggregation_properties, limit @cli_util.wrap_exceptions def change_asset_compartment(ctx, from_json, asset_id, compartment_id, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') kwargs = {} @@ -160,7 +159,7 @@ def change_asset_compartment(ctx, from_json, asset_id, compartment_id, if_match) @cli_util.wrap_exceptions def change_asset_tags(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_id, freeform_tags, defined_tags, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') kwargs = {} @@ -684,7 +683,7 @@ def create_inventory(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_id, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') kwargs = {} @@ -748,7 +747,7 @@ def delete_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_inventory(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, inventory_id, if_match): - if isinstance(inventory_id, six.string_types) and len(inventory_id.strip()) == 0: + if isinstance(inventory_id, str) and len(inventory_id.strip()) == 0: raise click.UsageError('Parameter --inventory-id cannot be whitespace or empty string') kwargs = {} @@ -799,7 +798,7 @@ def delete_inventory(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_asset(ctx, from_json, asset_id): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') kwargs = {} @@ -824,7 +823,7 @@ def get_asset(ctx, from_json, asset_id): @cli_util.wrap_exceptions def get_inventory(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, inventory_id): - if isinstance(inventory_id, six.string_types) and len(inventory_id.strip()) == 0: + if isinstance(inventory_id, str) and len(inventory_id.strip()) == 0: raise click.UsageError('Parameter --inventory-id cannot be whitespace or empty string') kwargs = {} @@ -880,7 +879,7 @@ def get_inventory(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def import_inventory(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, inventory_id, resource_type, freeform_tags, defined_tags): - if isinstance(inventory_id, six.string_types) and len(inventory_id.strip()) == 0: + if isinstance(inventory_id, str) and len(inventory_id.strip()) == 0: raise click.UsageError('Parameter --inventory-id cannot be whitespace or empty string') kwargs = {} @@ -951,7 +950,7 @@ def import_inventory(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def import_inventory_import_inventory_via_assets_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, data, asset_type, inventory_id, freeform_tags, defined_tags): - if isinstance(inventory_id, six.string_types) and len(inventory_id.strip()) == 0: + if isinstance(inventory_id, str) and len(inventory_id.strip()) == 0: raise click.UsageError('Parameter --inventory-id cannot be whitespace or empty string') kwargs = {} @@ -1105,7 +1104,7 @@ def list_historical_metrics(ctx, from_json, all_pages, page_size, asset_id, limi if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') kwargs = {} @@ -1212,7 +1211,7 @@ def list_inventories(ctx, from_json, all_pages, page_size, compartment_id, sort_ @cli_util.wrap_exceptions def submit_historical_metrics(ctx, from_json, historical_metrics, asset_id, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') kwargs = {} @@ -1251,7 +1250,7 @@ def submit_historical_metrics(ctx, from_json, historical_metrics, asset_id, if_m @cli_util.wrap_exceptions def update_asset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_id, asset_type, display_name, asset_source_ids, freeform_tags, defined_tags, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') if not force: if asset_source_ids or freeform_tags or defined_tags: @@ -1328,7 +1327,7 @@ def update_asset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_asset_update_vm_asset_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_id, display_name, asset_source_ids, freeform_tags, defined_tags, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') if not force: if asset_source_ids or freeform_tags or defined_tags: @@ -1407,7 +1406,7 @@ def update_asset_update_vm_asset_details(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_asset_update_aws_ebs_asset_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_id, display_name, asset_source_ids, freeform_tags, defined_tags, aws_ebs, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') if not force: if asset_source_ids or freeform_tags or defined_tags or aws_ebs: @@ -1492,7 +1491,7 @@ def update_asset_update_aws_ebs_asset_details(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_asset_update_inventory_asset_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_id, asset_class_name, asset_class_version, asset_details, display_name, asset_source_ids, freeform_tags, defined_tags, environment_type, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') if not force: if asset_source_ids or freeform_tags or defined_tags or asset_details: @@ -1580,7 +1579,7 @@ def update_asset_update_inventory_asset_details(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_asset_update_vmware_vm_asset_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_id, display_name, asset_source_ids, freeform_tags, defined_tags, compute, vm, vmware_vm, vmware_v_center, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') if not force: if asset_source_ids or freeform_tags or defined_tags or compute or vm or vmware_vm or vmware_v_center: @@ -1675,7 +1674,7 @@ def update_asset_update_vmware_vm_asset_details(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_asset_update_aws_ec2_asset_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, asset_id, display_name, asset_source_ids, freeform_tags, defined_tags, compute, vm, aws_ec2, aws_ec2_cost, attached_ebs_volumes_cost, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') if not force: if asset_source_ids or freeform_tags or defined_tags or compute or vm or aws_ec2 or aws_ec2_cost or attached_ebs_volumes_cost: @@ -1767,7 +1766,7 @@ def update_asset_update_aws_ec2_asset_details(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_inventory(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, inventory_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(inventory_id, six.string_types) and len(inventory_id.strip()) == 0: + if isinstance(inventory_id, str) and len(inventory_id.strip()) == 0: raise click.UsageError('Parameter --inventory-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/cloud_bridge/src/oci_cli_inventory/inventory_cli_extended.py b/services/cloud_bridge/src/oci_cli_inventory/inventory_cli_extended.py index c7598b9f0..e4f894ea0 100644 --- a/services/cloud_bridge/src/oci_cli_inventory/inventory_cli_extended.py +++ b/services/cloud_bridge/src/oci_cli_inventory/inventory_cli_extended.py @@ -3,7 +3,6 @@ # 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. import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 import click # noqa: F401 import json # noqa: F401 @@ -313,7 +312,7 @@ def update_asset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i display_name, asset_source_ids, freeform_tags, defined_tags, compute, vm, vmware_vm, vmware_v_center, aws_ebs, aws_ec2, aws_ec2_cost, attached_ebs_volumes_cost, environment_type, asset_class_name, asset_class_version, asset_details, if_match): - if isinstance(asset_id, six.string_types) and len(asset_id.strip()) == 0: + if isinstance(asset_id, str) and len(asset_id.strip()) == 0: raise click.UsageError('Parameter --asset-id cannot be whitespace or empty string') if not force: if asset_source_ids or freeform_tags or defined_tags: diff --git a/services/cloud_bridge/src/oci_cli_ocb_agent_svc/generated/ocbagentsvc_cli.py b/services/cloud_bridge/src/oci_cli_ocb_agent_svc/generated/ocbagentsvc_cli.py index fdec0f038..b9ab5c744 100644 --- a/services/cloud_bridge/src/oci_cli_ocb_agent_svc/generated/ocbagentsvc_cli.py +++ b/services/cloud_bridge/src/oci_cli_ocb_agent_svc/generated/ocbagentsvc_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -95,7 +94,7 @@ def agent_collection_group(): @cli_util.wrap_exceptions def add_agent_dependency(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, environment_id, agent_dependency_id, if_match): - if isinstance(environment_id, six.string_types) and len(environment_id.strip()) == 0: + if isinstance(environment_id, str) and len(environment_id.strip()) == 0: raise click.UsageError('Parameter --environment-id cannot be whitespace or empty string') kwargs = {} @@ -152,7 +151,7 @@ def add_agent_dependency(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def change_agent_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_id, compartment_id, if_match): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') kwargs = {} @@ -210,7 +209,7 @@ def change_agent_compartment(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def change_agent_dependency_compartment(ctx, from_json, agent_dependency_id, compartment_id, if_match): - if isinstance(agent_dependency_id, six.string_types) and len(agent_dependency_id.strip()) == 0: + if isinstance(agent_dependency_id, str) and len(agent_dependency_id.strip()) == 0: raise click.UsageError('Parameter --agent-dependency-id cannot be whitespace or empty string') kwargs = {} @@ -244,7 +243,7 @@ def change_agent_dependency_compartment(ctx, from_json, agent_dependency_id, com @cli_util.wrap_exceptions def change_environment_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, environment_id, compartment_id, if_match): - if isinstance(environment_id, six.string_types) and len(environment_id.strip()) == 0: + if isinstance(environment_id, str) and len(environment_id.strip()) == 0: raise click.UsageError('Parameter --environment-id cannot be whitespace or empty string') kwargs = {} @@ -516,7 +515,7 @@ def create_environment(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_agent(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_id, if_match): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') kwargs = {} @@ -580,7 +579,7 @@ def delete_agent(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_agent_dependency(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_dependency_id, if_match): - if isinstance(agent_dependency_id, six.string_types) and len(agent_dependency_id.strip()) == 0: + if isinstance(agent_dependency_id, str) and len(agent_dependency_id.strip()) == 0: raise click.UsageError('Parameter --agent-dependency-id cannot be whitespace or empty string') kwargs = {} @@ -644,7 +643,7 @@ def delete_agent_dependency(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_environment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, environment_id, if_match): - if isinstance(environment_id, six.string_types) and len(environment_id.strip()) == 0: + if isinstance(environment_id, str) and len(environment_id.strip()) == 0: raise click.UsageError('Parameter --environment-id cannot be whitespace or empty string') kwargs = {} @@ -703,7 +702,7 @@ def delete_environment(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_agent(ctx, from_json, agent_id): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') kwargs = {} @@ -725,7 +724,7 @@ def get_agent(ctx, from_json, agent_id): @cli_util.wrap_exceptions def get_agent_dependency(ctx, from_json, agent_dependency_id): - if isinstance(agent_dependency_id, six.string_types) and len(agent_dependency_id.strip()) == 0: + if isinstance(agent_dependency_id, str) and len(agent_dependency_id.strip()) == 0: raise click.UsageError('Parameter --agent-dependency-id cannot be whitespace or empty string') kwargs = {} @@ -747,7 +746,7 @@ def get_agent_dependency(ctx, from_json, agent_dependency_id): @cli_util.wrap_exceptions def get_environment(ctx, from_json, environment_id): - if isinstance(environment_id, six.string_types) and len(environment_id.strip()) == 0: + if isinstance(environment_id, str) and len(environment_id.strip()) == 0: raise click.UsageError('Parameter --environment-id cannot be whitespace or empty string') kwargs = {} @@ -770,10 +769,10 @@ def get_environment(ctx, from_json, environment_id): @cli_util.wrap_exceptions def get_plugin(ctx, from_json, agent_id, plugin_name): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') - if isinstance(plugin_name, six.string_types) and len(plugin_name.strip()) == 0: + if isinstance(plugin_name, str) and len(plugin_name.strip()) == 0: raise click.UsageError('Parameter --plugin-name cannot be whitespace or empty string') kwargs = {} @@ -1053,7 +1052,7 @@ def list_environments(ctx, from_json, all_pages, page_size, compartment_id, life @cli_util.wrap_exceptions def remove_agent_dependency(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, environment_id, agent_dependency_id, if_match): - if isinstance(environment_id, six.string_types) and len(environment_id.strip()) == 0: + if isinstance(environment_id, str) and len(environment_id.strip()) == 0: raise click.UsageError('Parameter --environment-id cannot be whitespace or empty string') kwargs = {} @@ -1113,7 +1112,7 @@ def remove_agent_dependency(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_agent(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1192,7 +1191,7 @@ def update_agent(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_agent_dependency(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_dependency_id, display_name, dependency_name, dependency_version, description, namespace, bucket, object_name, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(agent_dependency_id, six.string_types) and len(agent_dependency_id.strip()) == 0: + if isinstance(agent_dependency_id, str) and len(agent_dependency_id.strip()) == 0: raise click.UsageError('Parameter --agent-dependency-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: @@ -1289,7 +1288,7 @@ def update_agent_dependency(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_environment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, environment_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(environment_id, six.string_types) and len(environment_id.strip()) == 0: + if isinstance(environment_id, str) and len(environment_id.strip()) == 0: raise click.UsageError('Parameter --environment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1359,10 +1358,10 @@ def update_environment(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_plugin(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_id, plugin_name, desired_state, if_match): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') - if isinstance(plugin_name, six.string_types) and len(plugin_name.strip()) == 0: + if isinstance(plugin_name, str) and len(plugin_name.strip()) == 0: raise click.UsageError('Parameter --plugin-name cannot be whitespace or empty string') kwargs = {} diff --git a/services/cloud_guard/src/oci_cli_cloud_guard/cloud_guard_cli_extended.py b/services/cloud_guard/src/oci_cli_cloud_guard/cloud_guard_cli_extended.py index 7ca234c08..5dc33b32d 100644 --- a/services/cloud_guard/src/oci_cli_cloud_guard/cloud_guard_cli_extended.py +++ b/services/cloud_guard/src/oci_cli_cloud_guard/cloud_guard_cli_extended.py @@ -4,7 +4,6 @@ import click import sys -import six import oci from oci_cli import cli_util from oci_cli import json_skeleton_utils @@ -349,7 +348,7 @@ def create_data_mask_rule_target_ids_selected_extended(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def update_data_mask_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_mask_rule_id, display_name, compartment_id, iam_group_id, target_selected, data_mask_categories, data_mask_rule_status, freeform_tags, defined_tags, if_match): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') if not force: if target_selected or data_mask_categories or freeform_tags or defined_tags: @@ -432,7 +431,7 @@ def update_data_mask_rule(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_data_mask_rule_all_targets_selected_extended(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_mask_rule_id, display_name, compartment_id, iam_group_id, data_mask_categories, data_mask_rule_status, freeform_tags, defined_tags, if_match): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') if not force: if data_mask_categories or freeform_tags or defined_tags: @@ -515,7 +514,7 @@ def update_data_mask_rule_all_targets_selected_extended(ctx, from_json, force, w @cli_util.wrap_exceptions def update_data_mask_rule_target_resource_types_selected_extended(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_mask_rule_id, display_name, compartment_id, iam_group_id, data_mask_categories, data_mask_rule_status, freeform_tags, defined_tags, if_match, target_selected_values): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') if not force: if data_mask_categories or freeform_tags or defined_tags: @@ -601,7 +600,7 @@ def update_data_mask_rule_target_resource_types_selected_extended(ctx, from_json @cli_util.wrap_exceptions def update_data_mask_rule_target_ids_selected_extended(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_mask_rule_id, display_name, compartment_id, iam_group_id, data_mask_categories, data_mask_rule_status, freeform_tags, defined_tags, if_match, target_selected_values): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') if not force: if data_mask_categories or freeform_tags or defined_tags: diff --git a/services/cloud_guard/src/oci_cli_cloud_guard/generated/cloudguard_cli.py b/services/cloud_guard/src/oci_cli_cloud_guard/generated/cloudguard_cli.py index 8a1d9fe55..d36c17b45 100644 --- a/services/cloud_guard/src/oci_cli_cloud_guard/generated/cloudguard_cli.py +++ b/services/cloud_guard/src/oci_cli_cloud_guard/generated/cloudguard_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -502,7 +501,7 @@ def risk_score_aggregation_group(): @cli_util.wrap_exceptions def add_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_zone_id, compartment_id, if_match): - if isinstance(security_zone_id, six.string_types) and len(security_zone_id.strip()) == 0: + if isinstance(security_zone_id, str) and len(security_zone_id.strip()) == 0: raise click.UsageError('Parameter --security-zone-id cannot be whitespace or empty string') kwargs = {} @@ -556,7 +555,7 @@ def add_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -585,7 +584,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_data_source_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, data_source_id, compartment_id, if_match): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') kwargs = {} @@ -643,7 +642,7 @@ def change_data_source_compartment(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def change_detector_recipe_compartment(ctx, from_json, detector_recipe_id, compartment_id, if_match): - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -674,7 +673,7 @@ def change_detector_recipe_compartment(ctx, from_json, detector_recipe_id, compa @cli_util.wrap_exceptions def change_managed_list_compartment(ctx, from_json, managed_list_id, compartment_id, if_match): - if isinstance(managed_list_id, six.string_types) and len(managed_list_id.strip()) == 0: + if isinstance(managed_list_id, str) and len(managed_list_id.strip()) == 0: raise click.UsageError('Parameter --managed-list-id cannot be whitespace or empty string') kwargs = {} @@ -705,7 +704,7 @@ def change_managed_list_compartment(ctx, from_json, managed_list_id, compartment @cli_util.wrap_exceptions def change_responder_recipe_compartment(ctx, from_json, responder_recipe_id, compartment_id, if_match): - if isinstance(responder_recipe_id, six.string_types) and len(responder_recipe_id.strip()) == 0: + if isinstance(responder_recipe_id, str) and len(responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --responder-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -736,7 +735,7 @@ def change_responder_recipe_compartment(ctx, from_json, responder_recipe_id, com @cli_util.wrap_exceptions def change_saved_query_compartment(ctx, from_json, saved_query_id, compartment_id, if_match): - if isinstance(saved_query_id, six.string_types) and len(saved_query_id.strip()) == 0: + if isinstance(saved_query_id, str) and len(saved_query_id.strip()) == 0: raise click.UsageError('Parameter --saved-query-id cannot be whitespace or empty string') kwargs = {} @@ -767,7 +766,7 @@ def change_saved_query_compartment(ctx, from_json, saved_query_id, compartment_i @cli_util.wrap_exceptions def change_security_recipe_compartment(ctx, from_json, security_recipe_id, compartment_id, if_match): - if isinstance(security_recipe_id, six.string_types) and len(security_recipe_id.strip()) == 0: + if isinstance(security_recipe_id, str) and len(security_recipe_id.strip()) == 0: raise click.UsageError('Parameter --security-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -798,7 +797,7 @@ def change_security_recipe_compartment(ctx, from_json, security_recipe_id, compa @cli_util.wrap_exceptions def change_security_zone_compartment(ctx, from_json, security_zone_id, compartment_id, if_match): - if isinstance(security_zone_id, six.string_types) and len(security_zone_id.strip()) == 0: + if isinstance(security_zone_id, str) and len(security_zone_id.strip()) == 0: raise click.UsageError('Parameter --security-zone-id cannot be whitespace or empty string') kwargs = {} @@ -1587,7 +1586,7 @@ def create_detector_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def create_detector_recipe_detector_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, detector_recipe_id, details): - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -2101,7 +2100,7 @@ def create_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def create_target_detector_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_id, detector_recipe_id): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') kwargs = {} @@ -2152,7 +2151,7 @@ def create_target_detector_recipe(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def create_target_responder_recipe(ctx, from_json, target_id, responder_recipe_id): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') kwargs = {} @@ -2223,7 +2222,7 @@ def create_wlp_agent(ctx, from_json, compartment_id, agent_version, certificate_ @cli_util.wrap_exceptions def delete_adhoc_query(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, adhoc_query_id, if_match): - if isinstance(adhoc_query_id, six.string_types) and len(adhoc_query_id.strip()) == 0: + if isinstance(adhoc_query_id, str) and len(adhoc_query_id.strip()) == 0: raise click.UsageError('Parameter --adhoc-query-id cannot be whitespace or empty string') kwargs = {} @@ -2287,7 +2286,7 @@ def delete_adhoc_query(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_data_mask_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, data_mask_rule_id, if_match): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') kwargs = {} @@ -2351,7 +2350,7 @@ def delete_data_mask_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, data_source_id, if_match): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') kwargs = {} @@ -2407,7 +2406,7 @@ def delete_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_detector_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, detector_recipe_id, if_match): - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -2469,10 +2468,10 @@ def delete_detector_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_detector_recipe_detector_rule(ctx, from_json, detector_recipe_id, detector_rule_id, if_match): - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') - if isinstance(detector_rule_id, six.string_types) and len(detector_rule_id.strip()) == 0: + if isinstance(detector_rule_id, str) and len(detector_rule_id.strip()) == 0: raise click.UsageError('Parameter --detector-rule-id cannot be whitespace or empty string') kwargs = {} @@ -2501,13 +2500,13 @@ def delete_detector_recipe_detector_rule(ctx, from_json, detector_recipe_id, det @cli_util.wrap_exceptions def delete_detector_recipe_detector_rule_data_source(ctx, from_json, detector_recipe_id, detector_rule_id, data_source_id, if_match): - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') - if isinstance(detector_rule_id, six.string_types) and len(detector_rule_id.strip()) == 0: + if isinstance(detector_rule_id, str) and len(detector_rule_id.strip()) == 0: raise click.UsageError('Parameter --detector-rule-id cannot be whitespace or empty string') - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') kwargs = {} @@ -2538,7 +2537,7 @@ def delete_detector_recipe_detector_rule_data_source(ctx, from_json, detector_re @cli_util.wrap_exceptions def delete_managed_list(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_list_id, if_match): - if isinstance(managed_list_id, six.string_types) and len(managed_list_id.strip()) == 0: + if isinstance(managed_list_id, str) and len(managed_list_id.strip()) == 0: raise click.UsageError('Parameter --managed-list-id cannot be whitespace or empty string') kwargs = {} @@ -2602,7 +2601,7 @@ def delete_managed_list(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_responder_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, responder_recipe_id, if_match): - if isinstance(responder_recipe_id, six.string_types) and len(responder_recipe_id.strip()) == 0: + if isinstance(responder_recipe_id, str) and len(responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --responder-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -2666,7 +2665,7 @@ def delete_responder_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_saved_query(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, saved_query_id, if_match): - if isinstance(saved_query_id, six.string_types) and len(saved_query_id.strip()) == 0: + if isinstance(saved_query_id, str) and len(saved_query_id.strip()) == 0: raise click.UsageError('Parameter --saved-query-id cannot be whitespace or empty string') kwargs = {} @@ -2730,7 +2729,7 @@ def delete_saved_query(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_security_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_recipe_id, if_match): - if isinstance(security_recipe_id, six.string_types) and len(security_recipe_id.strip()) == 0: + if isinstance(security_recipe_id, str) and len(security_recipe_id.strip()) == 0: raise click.UsageError('Parameter --security-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -2794,7 +2793,7 @@ def delete_security_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_security_zone(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_zone_id, if_match): - if isinstance(security_zone_id, six.string_types) and len(security_zone_id.strip()) == 0: + if isinstance(security_zone_id, str) and len(security_zone_id.strip()) == 0: raise click.UsageError('Parameter --security-zone-id cannot be whitespace or empty string') kwargs = {} @@ -2858,7 +2857,7 @@ def delete_security_zone(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_id, if_match): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') kwargs = {} @@ -2920,10 +2919,10 @@ def delete_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_target_detector_recipe(ctx, from_json, target_id, target_detector_recipe_id, if_match): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_detector_recipe_id, six.string_types) and len(target_detector_recipe_id.strip()) == 0: + if isinstance(target_detector_recipe_id, str) and len(target_detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-detector-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -2951,10 +2950,10 @@ def delete_target_detector_recipe(ctx, from_json, target_id, target_detector_rec @cli_util.wrap_exceptions def delete_target_responder_recipe(ctx, from_json, target_id, target_responder_recipe_id, if_match): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_responder_recipe_id, six.string_types) and len(target_responder_recipe_id.strip()) == 0: + if isinstance(target_responder_recipe_id, str) and len(target_responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-responder-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -2981,7 +2980,7 @@ def delete_target_responder_recipe(ctx, from_json, target_id, target_responder_r @cli_util.wrap_exceptions def delete_wlp_agent(ctx, from_json, wlp_agent_id, if_match): - if isinstance(wlp_agent_id, six.string_types) and len(wlp_agent_id.strip()) == 0: + if isinstance(wlp_agent_id, str) and len(wlp_agent_id.strip()) == 0: raise click.UsageError('Parameter --wlp-agent-id cannot be whitespace or empty string') kwargs = {} @@ -3010,7 +3009,7 @@ def delete_wlp_agent(ctx, from_json, wlp_agent_id, if_match): @cli_util.wrap_exceptions def execute_responder_execution(ctx, from_json, responder_execution_id, compartment_id, if_match, configurations): - if isinstance(responder_execution_id, six.string_types) and len(responder_execution_id.strip()) == 0: + if isinstance(responder_execution_id, str) and len(responder_execution_id.strip()) == 0: raise click.UsageError('Parameter --responder-execution-id cannot be whitespace or empty string') kwargs = {} @@ -3042,7 +3041,7 @@ def execute_responder_execution(ctx, from_json, responder_execution_id, compartm @cli_util.wrap_exceptions def get_adhoc_query(ctx, from_json, adhoc_query_id): - if isinstance(adhoc_query_id, six.string_types) and len(adhoc_query_id.strip()) == 0: + if isinstance(adhoc_query_id, str) and len(adhoc_query_id.strip()) == 0: raise click.UsageError('Parameter --adhoc-query-id cannot be whitespace or empty string') kwargs = {} @@ -3065,7 +3064,7 @@ def get_adhoc_query(ctx, from_json, adhoc_query_id): @cli_util.wrap_exceptions def get_adhoc_query_result_content(ctx, from_json, file, adhoc_query_id): - if isinstance(adhoc_query_id, six.string_types) and len(adhoc_query_id.strip()) == 0: + if isinstance(adhoc_query_id, str) and len(adhoc_query_id.strip()) == 0: raise click.UsageError('Parameter --adhoc-query-id cannot be whitespace or empty string') kwargs = {} @@ -3111,7 +3110,7 @@ def get_adhoc_query_result_content(ctx, from_json, file, adhoc_query_id): @cli_util.wrap_exceptions def get_condition_metadata_type(ctx, from_json, condition_metadata_type_id, service_type, resource_type): - if isinstance(condition_metadata_type_id, six.string_types) and len(condition_metadata_type_id.strip()) == 0: + if isinstance(condition_metadata_type_id, str) and len(condition_metadata_type_id.strip()) == 0: raise click.UsageError('Parameter --condition-metadata-type-id cannot be whitespace or empty string') kwargs = {} @@ -3156,7 +3155,7 @@ def get_configuration(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_data_mask_rule(ctx, from_json, data_mask_rule_id): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') kwargs = {} @@ -3178,7 +3177,7 @@ def get_data_mask_rule(ctx, from_json, data_mask_rule_id): @cli_util.wrap_exceptions def get_data_source(ctx, from_json, data_source_id): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') kwargs = {} @@ -3200,7 +3199,7 @@ def get_data_source(ctx, from_json, data_source_id): @cli_util.wrap_exceptions def get_detector(ctx, from_json, detector_id): - if isinstance(detector_id, six.string_types) and len(detector_id.strip()) == 0: + if isinstance(detector_id, str) and len(detector_id.strip()) == 0: raise click.UsageError('Parameter --detector-id cannot be whitespace or empty string') kwargs = {} @@ -3222,7 +3221,7 @@ def get_detector(ctx, from_json, detector_id): @cli_util.wrap_exceptions def get_detector_recipe(ctx, from_json, detector_recipe_id): - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -3245,10 +3244,10 @@ def get_detector_recipe(ctx, from_json, detector_recipe_id): @cli_util.wrap_exceptions def get_detector_recipe_detector_rule(ctx, from_json, detector_recipe_id, detector_rule_id): - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') - if isinstance(detector_rule_id, six.string_types) and len(detector_rule_id.strip()) == 0: + if isinstance(detector_rule_id, str) and len(detector_rule_id.strip()) == 0: raise click.UsageError('Parameter --detector-rule-id cannot be whitespace or empty string') kwargs = {} @@ -3272,10 +3271,10 @@ def get_detector_recipe_detector_rule(ctx, from_json, detector_recipe_id, detect @cli_util.wrap_exceptions def get_detector_rule(ctx, from_json, detector_id, detector_rule_id): - if isinstance(detector_id, six.string_types) and len(detector_id.strip()) == 0: + if isinstance(detector_id, str) and len(detector_id.strip()) == 0: raise click.UsageError('Parameter --detector-id cannot be whitespace or empty string') - if isinstance(detector_rule_id, six.string_types) and len(detector_rule_id.strip()) == 0: + if isinstance(detector_rule_id, str) and len(detector_rule_id.strip()) == 0: raise click.UsageError('Parameter --detector-rule-id cannot be whitespace or empty string') kwargs = {} @@ -3298,7 +3297,7 @@ def get_detector_rule(ctx, from_json, detector_id, detector_rule_id): @cli_util.wrap_exceptions def get_managed_list(ctx, from_json, managed_list_id): - if isinstance(managed_list_id, six.string_types) and len(managed_list_id.strip()) == 0: + if isinstance(managed_list_id, str) and len(managed_list_id.strip()) == 0: raise click.UsageError('Parameter --managed-list-id cannot be whitespace or empty string') kwargs = {} @@ -3320,7 +3319,7 @@ def get_managed_list(ctx, from_json, managed_list_id): @cli_util.wrap_exceptions def get_problem(ctx, from_json, problem_id): - if isinstance(problem_id, six.string_types) and len(problem_id.strip()) == 0: + if isinstance(problem_id, str) and len(problem_id.strip()) == 0: raise click.UsageError('Parameter --problem-id cannot be whitespace or empty string') kwargs = {} @@ -3342,7 +3341,7 @@ def get_problem(ctx, from_json, problem_id): @cli_util.wrap_exceptions def get_resource(ctx, from_json, resource_id): - if isinstance(resource_id, six.string_types) and len(resource_id.strip()) == 0: + if isinstance(resource_id, str) and len(resource_id.strip()) == 0: raise click.UsageError('Parameter --resource-id cannot be whitespace or empty string') kwargs = {} @@ -3364,7 +3363,7 @@ def get_resource(ctx, from_json, resource_id): @cli_util.wrap_exceptions def get_resource_profile(ctx, from_json, resource_profile_id): - if isinstance(resource_profile_id, six.string_types) and len(resource_profile_id.strip()) == 0: + if isinstance(resource_profile_id, str) and len(resource_profile_id.strip()) == 0: raise click.UsageError('Parameter --resource-profile-id cannot be whitespace or empty string') kwargs = {} @@ -3387,10 +3386,10 @@ def get_resource_profile(ctx, from_json, resource_profile_id): @cli_util.wrap_exceptions def get_resource_vulnerability(ctx, from_json, resource_id, vulnerability_key): - if isinstance(resource_id, six.string_types) and len(resource_id.strip()) == 0: + if isinstance(resource_id, str) and len(resource_id.strip()) == 0: raise click.UsageError('Parameter --resource-id cannot be whitespace or empty string') - if isinstance(vulnerability_key, six.string_types) and len(vulnerability_key.strip()) == 0: + if isinstance(vulnerability_key, str) and len(vulnerability_key.strip()) == 0: raise click.UsageError('Parameter --vulnerability-key cannot be whitespace or empty string') kwargs = {} @@ -3413,7 +3412,7 @@ def get_resource_vulnerability(ctx, from_json, resource_id, vulnerability_key): @cli_util.wrap_exceptions def get_responder_execution(ctx, from_json, responder_execution_id): - if isinstance(responder_execution_id, six.string_types) and len(responder_execution_id.strip()) == 0: + if isinstance(responder_execution_id, str) and len(responder_execution_id.strip()) == 0: raise click.UsageError('Parameter --responder-execution-id cannot be whitespace or empty string') kwargs = {} @@ -3435,7 +3434,7 @@ def get_responder_execution(ctx, from_json, responder_execution_id): @cli_util.wrap_exceptions def get_responder_recipe(ctx, from_json, responder_recipe_id): - if isinstance(responder_recipe_id, six.string_types) and len(responder_recipe_id.strip()) == 0: + if isinstance(responder_recipe_id, str) and len(responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --responder-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -3458,10 +3457,10 @@ def get_responder_recipe(ctx, from_json, responder_recipe_id): @cli_util.wrap_exceptions def get_responder_recipe_responder_rule(ctx, from_json, responder_recipe_id, responder_rule_id): - if isinstance(responder_recipe_id, six.string_types) and len(responder_recipe_id.strip()) == 0: + if isinstance(responder_recipe_id, str) and len(responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --responder-recipe-id cannot be whitespace or empty string') - if isinstance(responder_rule_id, six.string_types) and len(responder_rule_id.strip()) == 0: + if isinstance(responder_rule_id, str) and len(responder_rule_id.strip()) == 0: raise click.UsageError('Parameter --responder-rule-id cannot be whitespace or empty string') kwargs = {} @@ -3484,7 +3483,7 @@ def get_responder_recipe_responder_rule(ctx, from_json, responder_recipe_id, res @cli_util.wrap_exceptions def get_responder_rule(ctx, from_json, responder_rule_id): - if isinstance(responder_rule_id, six.string_types) and len(responder_rule_id.strip()) == 0: + if isinstance(responder_rule_id, str) and len(responder_rule_id.strip()) == 0: raise click.UsageError('Parameter --responder-rule-id cannot be whitespace or empty string') kwargs = {} @@ -3506,7 +3505,7 @@ def get_responder_rule(ctx, from_json, responder_rule_id): @cli_util.wrap_exceptions def get_saved_query(ctx, from_json, saved_query_id): - if isinstance(saved_query_id, six.string_types) and len(saved_query_id.strip()) == 0: + if isinstance(saved_query_id, str) and len(saved_query_id.strip()) == 0: raise click.UsageError('Parameter --saved-query-id cannot be whitespace or empty string') kwargs = {} @@ -3528,7 +3527,7 @@ def get_saved_query(ctx, from_json, saved_query_id): @cli_util.wrap_exceptions def get_security_policy(ctx, from_json, security_policy_id): - if isinstance(security_policy_id, six.string_types) and len(security_policy_id.strip()) == 0: + if isinstance(security_policy_id, str) and len(security_policy_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3550,7 +3549,7 @@ def get_security_policy(ctx, from_json, security_policy_id): @cli_util.wrap_exceptions def get_security_recipe(ctx, from_json, security_recipe_id): - if isinstance(security_recipe_id, six.string_types) and len(security_recipe_id.strip()) == 0: + if isinstance(security_recipe_id, str) and len(security_recipe_id.strip()) == 0: raise click.UsageError('Parameter --security-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -3572,7 +3571,7 @@ def get_security_recipe(ctx, from_json, security_recipe_id): @cli_util.wrap_exceptions def get_security_zone(ctx, from_json, security_zone_id): - if isinstance(security_zone_id, six.string_types) and len(security_zone_id.strip()) == 0: + if isinstance(security_zone_id, str) and len(security_zone_id.strip()) == 0: raise click.UsageError('Parameter --security-zone-id cannot be whitespace or empty string') kwargs = {} @@ -3594,7 +3593,7 @@ def get_security_zone(ctx, from_json, security_zone_id): @cli_util.wrap_exceptions def get_sighting(ctx, from_json, sighting_id): - if isinstance(sighting_id, six.string_types) and len(sighting_id.strip()) == 0: + if isinstance(sighting_id, str) and len(sighting_id.strip()) == 0: raise click.UsageError('Parameter --sighting-id cannot be whitespace or empty string') kwargs = {} @@ -3616,7 +3615,7 @@ def get_sighting(ctx, from_json, sighting_id): @cli_util.wrap_exceptions def get_target(ctx, from_json, target_id): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') kwargs = {} @@ -3639,10 +3638,10 @@ def get_target(ctx, from_json, target_id): @cli_util.wrap_exceptions def get_target_detector_recipe(ctx, from_json, target_id, target_detector_recipe_id): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_detector_recipe_id, six.string_types) and len(target_detector_recipe_id.strip()) == 0: + if isinstance(target_detector_recipe_id, str) and len(target_detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-detector-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -3667,13 +3666,13 @@ def get_target_detector_recipe(ctx, from_json, target_id, target_detector_recipe @cli_util.wrap_exceptions def get_target_detector_recipe_detector_rule(ctx, from_json, target_id, target_detector_recipe_id, detector_rule_id): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_detector_recipe_id, six.string_types) and len(target_detector_recipe_id.strip()) == 0: + if isinstance(target_detector_recipe_id, str) and len(target_detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-detector-recipe-id cannot be whitespace or empty string') - if isinstance(detector_rule_id, six.string_types) and len(detector_rule_id.strip()) == 0: + if isinstance(detector_rule_id, str) and len(detector_rule_id.strip()) == 0: raise click.UsageError('Parameter --detector-rule-id cannot be whitespace or empty string') kwargs = {} @@ -3698,10 +3697,10 @@ def get_target_detector_recipe_detector_rule(ctx, from_json, target_id, target_d @cli_util.wrap_exceptions def get_target_responder_recipe(ctx, from_json, target_id, target_responder_recipe_id): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_responder_recipe_id, six.string_types) and len(target_responder_recipe_id.strip()) == 0: + if isinstance(target_responder_recipe_id, str) and len(target_responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-responder-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -3726,13 +3725,13 @@ def get_target_responder_recipe(ctx, from_json, target_id, target_responder_reci @cli_util.wrap_exceptions def get_target_responder_recipe_responder_rule(ctx, from_json, target_id, target_responder_recipe_id, responder_rule_id): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_responder_recipe_id, six.string_types) and len(target_responder_recipe_id.strip()) == 0: + if isinstance(target_responder_recipe_id, str) and len(target_responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-responder-recipe-id cannot be whitespace or empty string') - if isinstance(responder_rule_id, six.string_types) and len(responder_rule_id.strip()) == 0: + if isinstance(responder_rule_id, str) and len(responder_rule_id.strip()) == 0: raise click.UsageError('Parameter --responder-rule-id cannot be whitespace or empty string') kwargs = {} @@ -3756,7 +3755,7 @@ def get_target_responder_recipe_responder_rule(ctx, from_json, target_id, target @cli_util.wrap_exceptions def get_wlp_agent(ctx, from_json, wlp_agent_id): - if isinstance(wlp_agent_id, six.string_types) and len(wlp_agent_id.strip()) == 0: + if isinstance(wlp_agent_id, str) and len(wlp_agent_id.strip()) == 0: raise click.UsageError('Parameter --wlp-agent-id cannot be whitespace or empty string') kwargs = {} @@ -3778,7 +3777,7 @@ def get_wlp_agent(ctx, from_json, wlp_agent_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3885,7 +3884,7 @@ def list_adhoc_query_results(ctx, from_json, all_pages, page_size, adhoc_query_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(adhoc_query_id, six.string_types) and len(adhoc_query_id.strip()) == 0: + if isinstance(adhoc_query_id, str) and len(adhoc_query_id.strip()) == 0: raise click.UsageError('Parameter --adhoc-query-id cannot be whitespace or empty string') kwargs = {} @@ -4078,7 +4077,7 @@ def list_data_source_events(ctx, from_json, all_pages, page_size, data_source_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') kwargs = {} @@ -4218,7 +4217,7 @@ def list_detector_recipe_detector_rules(ctx, from_json, all_pages, page_size, de if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -4360,7 +4359,7 @@ def list_detector_rules(ctx, from_json, all_pages, page_size, detector_id, compa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(detector_id, six.string_types) and len(detector_id.strip()) == 0: + if isinstance(detector_id, str) and len(detector_id.strip()) == 0: raise click.UsageError('Parameter --detector-id cannot be whitespace or empty string') kwargs = {} @@ -4481,7 +4480,7 @@ def list_impacted_resources(ctx, from_json, all_pages, page_size, problem_id, li if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(problem_id, six.string_types) and len(problem_id.strip()) == 0: + if isinstance(problem_id, str) and len(problem_id.strip()) == 0: raise click.UsageError('Parameter --problem-id cannot be whitespace or empty string') kwargs = {} @@ -4725,7 +4724,7 @@ def list_problem_endpoints(ctx, from_json, all_pages, page_size, problem_id, lim if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(problem_id, six.string_types) and len(problem_id.strip()) == 0: + if isinstance(problem_id, str) and len(problem_id.strip()) == 0: raise click.UsageError('Parameter --problem-id cannot be whitespace or empty string') kwargs = {} @@ -4782,7 +4781,7 @@ def list_problem_entities(ctx, from_json, all_pages, page_size, problem_id, page if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(problem_id, six.string_types) and len(problem_id.strip()) == 0: + if isinstance(problem_id, str) and len(problem_id.strip()) == 0: raise click.UsageError('Parameter --problem-id cannot be whitespace or empty string') kwargs = {} @@ -4840,7 +4839,7 @@ def list_problem_histories(ctx, from_json, all_pages, page_size, compartment_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(problem_id, six.string_types) and len(problem_id.strip()) == 0: + if isinstance(problem_id, str) and len(problem_id.strip()) == 0: raise click.UsageError('Parameter --problem-id cannot be whitespace or empty string') kwargs = {} @@ -5090,7 +5089,7 @@ def list_resource_ports(ctx, from_json, all_pages, page_size, resource_id, open_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(resource_id, six.string_types) and len(resource_id.strip()) == 0: + if isinstance(resource_id, str) and len(resource_id.strip()) == 0: raise click.UsageError('Parameter --resource-id cannot be whitespace or empty string') kwargs = {} @@ -5149,7 +5148,7 @@ def list_resource_profile_endpoints(ctx, from_json, all_pages, page_size, resour if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(resource_profile_id, six.string_types) and len(resource_profile_id.strip()) == 0: + if isinstance(resource_profile_id, str) and len(resource_profile_id.strip()) == 0: raise click.UsageError('Parameter --resource-profile-id cannot be whitespace or empty string') kwargs = {} @@ -5206,7 +5205,7 @@ def list_resource_profile_impacted_resources(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(resource_profile_id, six.string_types) and len(resource_profile_id.strip()) == 0: + if isinstance(resource_profile_id, str) and len(resource_profile_id.strip()) == 0: raise click.UsageError('Parameter --resource-profile-id cannot be whitespace or empty string') kwargs = {} @@ -5416,7 +5415,7 @@ def list_resource_vulnerabilities(ctx, from_json, all_pages, page_size, resource if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(resource_id, six.string_types) and len(resource_id.strip()) == 0: + if isinstance(resource_id, str) and len(resource_id.strip()) == 0: raise click.UsageError('Parameter --resource-id cannot be whitespace or empty string') kwargs = {} @@ -5576,7 +5575,7 @@ def list_responder_activities(ctx, from_json, all_pages, page_size, problem_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(problem_id, six.string_types) and len(problem_id.strip()) == 0: + if isinstance(problem_id, str) and len(problem_id.strip()) == 0: raise click.UsageError('Parameter --problem-id cannot be whitespace or empty string') kwargs = {} @@ -5726,7 +5725,7 @@ def list_responder_recipe_responder_rules(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(responder_recipe_id, six.string_types) and len(responder_recipe_id.strip()) == 0: + if isinstance(responder_recipe_id, str) and len(responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --responder-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -6181,7 +6180,7 @@ def list_sighting_endpoints(ctx, from_json, all_pages, page_size, sighting_id, l if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sighting_id, six.string_types) and len(sighting_id.strip()) == 0: + if isinstance(sighting_id, str) and len(sighting_id.strip()) == 0: raise click.UsageError('Parameter --sighting-id cannot be whitespace or empty string') kwargs = {} @@ -6238,7 +6237,7 @@ def list_sighting_impacted_resources(ctx, from_json, all_pages, page_size, sight if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sighting_id, six.string_types) and len(sighting_id.strip()) == 0: + if isinstance(sighting_id, str) and len(sighting_id.strip()) == 0: raise click.UsageError('Parameter --sighting-id cannot be whitespace or empty string') kwargs = {} @@ -6432,10 +6431,10 @@ def list_target_detector_recipe_detector_rules(ctx, from_json, all_pages, page_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_detector_recipe_id, six.string_types) and len(target_detector_recipe_id.strip()) == 0: + if isinstance(target_detector_recipe_id, str) and len(target_detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-detector-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -6505,7 +6504,7 @@ def list_target_detector_recipes(ctx, from_json, all_pages, page_size, target_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') kwargs = {} @@ -6573,10 +6572,10 @@ def list_target_responder_recipe_responder_rules(ctx, from_json, all_pages, page if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_responder_recipe_id, six.string_types) and len(target_responder_recipe_id.strip()) == 0: + if isinstance(target_responder_recipe_id, str) and len(target_responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-responder-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -6646,7 +6645,7 @@ def list_target_responder_recipes(ctx, from_json, all_pages, page_size, target_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') kwargs = {} @@ -6897,7 +6896,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -6954,7 +6953,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -7067,7 +7066,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, sta @cli_util.wrap_exceptions def remove_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_zone_id, compartment_id, if_match): - if isinstance(security_zone_id, six.string_types) and len(security_zone_id.strip()) == 0: + if isinstance(security_zone_id, str) and len(security_zone_id.strip()) == 0: raise click.UsageError('Parameter --security-zone-id cannot be whitespace or empty string') kwargs = {} @@ -7596,7 +7595,7 @@ def skip_bulk_responder_execution(ctx, from_json, responder_execution_ids): @cli_util.wrap_exceptions def skip_responder_execution(ctx, from_json, responder_execution_id, compartment_id, if_match): - if isinstance(responder_execution_id, six.string_types) and len(responder_execution_id.strip()) == 0: + if isinstance(responder_execution_id, str) and len(responder_execution_id.strip()) == 0: raise click.UsageError('Parameter --responder-execution-id cannot be whitespace or empty string') kwargs = {} @@ -7626,7 +7625,7 @@ def skip_responder_execution(ctx, from_json, responder_execution_id, compartment @cli_util.wrap_exceptions def trigger_responder(ctx, from_json, problem_id, responder_rule_id, configurations, if_match): - if isinstance(problem_id, six.string_types) and len(problem_id.strip()) == 0: + if isinstance(problem_id, str) and len(problem_id.strip()) == 0: raise click.UsageError('Parameter --problem-id cannot be whitespace or empty string') kwargs = {} @@ -7749,7 +7748,7 @@ def update_configuration(ctx, from_json, force, reporting_region, status, compar @cli_util.wrap_exceptions def update_data_mask_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_mask_rule_id, display_name, compartment_id, iam_group_id, target_selected, data_mask_categories, data_mask_rule_status, freeform_tags, defined_tags, if_match): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') if not force: if target_selected or data_mask_categories or freeform_tags or defined_tags: @@ -7844,7 +7843,7 @@ def update_data_mask_rule(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_data_mask_rule_all_targets_selected(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_mask_rule_id, display_name, compartment_id, iam_group_id, data_mask_categories, data_mask_rule_status, freeform_tags, defined_tags, if_match): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') if not force: if data_mask_categories or freeform_tags or defined_tags: @@ -7940,7 +7939,7 @@ def update_data_mask_rule_all_targets_selected(ctx, from_json, force, wait_for_s @cli_util.wrap_exceptions def update_data_mask_rule_target_resource_types_selected(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_mask_rule_id, display_name, compartment_id, iam_group_id, data_mask_categories, data_mask_rule_status, freeform_tags, defined_tags, if_match, target_selected_values): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') if not force: if data_mask_categories or freeform_tags or defined_tags: @@ -8039,7 +8038,7 @@ def update_data_mask_rule_target_resource_types_selected(ctx, from_json, force, @cli_util.wrap_exceptions def update_data_mask_rule_target_ids_selected(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_mask_rule_id, display_name, compartment_id, iam_group_id, data_mask_categories, data_mask_rule_status, freeform_tags, defined_tags, if_match, target_selected_values): - if isinstance(data_mask_rule_id, six.string_types) and len(data_mask_rule_id.strip()) == 0: + if isinstance(data_mask_rule_id, str) and len(data_mask_rule_id.strip()) == 0: raise click.UsageError('Parameter --data-mask-rule-id cannot be whitespace or empty string') if not force: if data_mask_categories or freeform_tags or defined_tags: @@ -8133,7 +8132,7 @@ def update_data_mask_rule_target_ids_selected(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_data_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_source_id, display_name, status, data_source_details, freeform_tags, defined_tags, if_match): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') if not force: if data_source_details or freeform_tags or defined_tags: @@ -8224,7 +8223,7 @@ def update_data_source(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_data_source_scheduled_query_data_source_obj_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_source_id, display_name, status, freeform_tags, defined_tags, if_match, data_source_details_query, data_source_details_description, data_source_details_interval_in_seconds, data_source_details_scheduled_query_scope_details): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -8330,7 +8329,7 @@ def update_data_source_scheduled_query_data_source_obj_details(ctx, from_json, f @cli_util.wrap_exceptions def update_data_source_logging_query_data_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_source_id, display_name, status, freeform_tags, defined_tags, if_match, data_source_details_regions, data_source_details_query, data_source_details_interval_in_minutes, data_source_details_threshold, data_source_details_query_start_time, data_source_details_operator, data_source_details_logging_query_type, data_source_details_additional_entities_count, data_source_details_logging_query_details): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -8449,7 +8448,7 @@ def update_data_source_logging_query_data_source_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_detector_recipe(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, detector_recipe_id, display_name, description, detector_rules, freeform_tags, defined_tags, if_match): - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') if not force: if detector_rules or freeform_tags or defined_tags: @@ -8526,10 +8525,10 @@ def update_detector_recipe(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_detector_recipe_detector_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, detector_recipe_id, detector_rule_id, details, if_match): - if isinstance(detector_recipe_id, six.string_types) and len(detector_recipe_id.strip()) == 0: + if isinstance(detector_recipe_id, str) and len(detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --detector-recipe-id cannot be whitespace or empty string') - if isinstance(detector_rule_id, six.string_types) and len(detector_rule_id.strip()) == 0: + if isinstance(detector_rule_id, str) and len(detector_rule_id.strip()) == 0: raise click.UsageError('Parameter --detector-rule-id cannot be whitespace or empty string') if not force: if details: @@ -8603,7 +8602,7 @@ def update_detector_recipe_detector_rule(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_managed_list(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_list_id, display_name, description, list_items, group, freeform_tags, defined_tags, if_match): - if isinstance(managed_list_id, six.string_types) and len(managed_list_id.strip()) == 0: + if isinstance(managed_list_id, str) and len(managed_list_id.strip()) == 0: raise click.UsageError('Parameter --managed-list-id cannot be whitespace or empty string') if not force: if list_items or freeform_tags or defined_tags: @@ -8682,7 +8681,7 @@ def update_managed_list(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_problem_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, problem_id, status, comment, if_match): - if isinstance(problem_id, six.string_types) and len(problem_id.strip()) == 0: + if isinstance(problem_id, str) and len(problem_id.strip()) == 0: raise click.UsageError('Parameter --problem-id cannot be whitespace or empty string') kwargs = {} @@ -8755,7 +8754,7 @@ def update_problem_status(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_responder_recipe(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, responder_recipe_id, display_name, description, responder_rules, freeform_tags, defined_tags, if_match): - if isinstance(responder_recipe_id, six.string_types) and len(responder_recipe_id.strip()) == 0: + if isinstance(responder_recipe_id, str) and len(responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --responder-recipe-id cannot be whitespace or empty string') if not force: if responder_rules or freeform_tags or defined_tags: @@ -8830,10 +8829,10 @@ def update_responder_recipe(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_responder_recipe_responder_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, responder_recipe_id, responder_rule_id, details, if_match): - if isinstance(responder_recipe_id, six.string_types) and len(responder_recipe_id.strip()) == 0: + if isinstance(responder_recipe_id, str) and len(responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --responder-recipe-id cannot be whitespace or empty string') - if isinstance(responder_rule_id, six.string_types) and len(responder_rule_id.strip()) == 0: + if isinstance(responder_rule_id, str) and len(responder_rule_id.strip()) == 0: raise click.UsageError('Parameter --responder-rule-id cannot be whitespace or empty string') if not force: if details: @@ -8902,7 +8901,7 @@ def update_responder_recipe_responder_rule(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_saved_query(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, saved_query_id, display_name, description, query_parameterconflict, freeform_tags, defined_tags, if_match): - if isinstance(saved_query_id, six.string_types) and len(saved_query_id.strip()) == 0: + if isinstance(saved_query_id, str) and len(saved_query_id.strip()) == 0: raise click.UsageError('Parameter --saved-query-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -8984,7 +8983,7 @@ def update_saved_query(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_security_recipe(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, security_recipe_id, display_name, description, security_policies, freeform_tags, defined_tags, if_match): - if isinstance(security_recipe_id, six.string_types) and len(security_recipe_id.strip()) == 0: + if isinstance(security_recipe_id, str) and len(security_recipe_id.strip()) == 0: raise click.UsageError('Parameter --security-recipe-id cannot be whitespace or empty string') if not force: if security_policies or freeform_tags or defined_tags: @@ -9065,7 +9064,7 @@ def update_security_recipe(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_security_zone(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, security_zone_id, display_name, description, security_zone_recipe_id, is_inheritance_after_delete_enabled, freeform_tags, defined_tags, if_match): - if isinstance(security_zone_id, six.string_types) and len(security_zone_id.strip()) == 0: + if isinstance(security_zone_id, str) and len(security_zone_id.strip()) == 0: raise click.UsageError('Parameter --security-zone-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -9155,7 +9154,7 @@ def update_security_zone(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_target(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_id, display_name, lifecycle_state, target_detector_recipes, target_responder_recipes, freeform_tags, defined_tags, if_match): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') if not force: if target_detector_recipes or target_responder_recipes or freeform_tags or defined_tags: @@ -9239,10 +9238,10 @@ def update_target(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_target_detector_recipe(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_id, target_detector_recipe_id, detector_recipe_id, is_validation_only_query, detector_rules, if_match): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_detector_recipe_id, six.string_types) and len(target_detector_recipe_id.strip()) == 0: + if isinstance(target_detector_recipe_id, str) and len(target_detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-detector-recipe-id cannot be whitespace or empty string') if not force: if detector_rules: @@ -9315,13 +9314,13 @@ def update_target_detector_recipe(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_target_detector_recipe_detector_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_id, target_detector_recipe_id, detector_rule_id, details, if_match): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_detector_recipe_id, six.string_types) and len(target_detector_recipe_id.strip()) == 0: + if isinstance(target_detector_recipe_id, str) and len(target_detector_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-detector-recipe-id cannot be whitespace or empty string') - if isinstance(detector_rule_id, six.string_types) and len(detector_rule_id.strip()) == 0: + if isinstance(detector_rule_id, str) and len(detector_rule_id.strip()) == 0: raise click.UsageError('Parameter --detector-rule-id cannot be whitespace or empty string') if not force: if details: @@ -9383,10 +9382,10 @@ def update_target_detector_recipe_detector_rule(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_target_responder_recipe(ctx, from_json, force, target_id, target_responder_recipe_id, responder_rules, if_match): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_responder_recipe_id, six.string_types) and len(target_responder_recipe_id.strip()) == 0: + if isinstance(target_responder_recipe_id, str) and len(target_responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-responder-recipe-id cannot be whitespace or empty string') if not force: if responder_rules: @@ -9428,13 +9427,13 @@ def update_target_responder_recipe(ctx, from_json, force, target_id, target_resp @cli_util.wrap_exceptions def update_target_responder_recipe_responder_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_id, target_responder_recipe_id, responder_rule_id, details, if_match): - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') - if isinstance(target_responder_recipe_id, six.string_types) and len(target_responder_recipe_id.strip()) == 0: + if isinstance(target_responder_recipe_id, str) and len(target_responder_recipe_id.strip()) == 0: raise click.UsageError('Parameter --target-responder-recipe-id cannot be whitespace or empty string') - if isinstance(responder_rule_id, six.string_types) and len(responder_rule_id.strip()) == 0: + if isinstance(responder_rule_id, str) and len(responder_rule_id.strip()) == 0: raise click.UsageError('Parameter --responder-rule-id cannot be whitespace or empty string') if not force: if details: @@ -9499,7 +9498,7 @@ def update_target_responder_recipe_responder_rule(ctx, from_json, force, wait_fo @cli_util.wrap_exceptions def update_wlp_agent(ctx, from_json, force, wlp_agent_id, certificate_signed_request, freeform_tags, defined_tags, if_match): - if isinstance(wlp_agent_id, six.string_types) and len(wlp_agent_id.strip()) == 0: + if isinstance(wlp_agent_id, str) and len(wlp_agent_id.strip()) == 0: raise click.UsageError('Parameter --wlp-agent-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/cloud_migrations/src/oci_cli_migration/generated/migration_cli.py b/services/cloud_migrations/src/oci_cli_migration/generated/migration_cli.py index a16203d0d..e558cb813 100644 --- a/services/cloud_migrations/src/oci_cli_migration/generated/migration_cli.py +++ b/services/cloud_migrations/src/oci_cli_migration/generated/migration_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -133,7 +132,7 @@ def available_shapes_collection_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -162,7 +161,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_migration_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, compartment_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -223,7 +222,7 @@ def change_migration_compartment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def change_migration_plan_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_plan_id, compartment_id, if_match): - if isinstance(migration_plan_id, six.string_types) and len(migration_plan_id.strip()) == 0: + if isinstance(migration_plan_id, str) and len(migration_plan_id.strip()) == 0: raise click.UsageError('Parameter --migration-plan-id cannot be whitespace or empty string') kwargs = {} @@ -284,7 +283,7 @@ def change_migration_plan_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_replication_schedule_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, replication_schedule_id, compartment_id, if_match): - if isinstance(replication_schedule_id, six.string_types) and len(replication_schedule_id.strip()) == 0: + if isinstance(replication_schedule_id, str) and len(replication_schedule_id.strip()) == 0: raise click.UsageError('Parameter --replication-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -836,7 +835,7 @@ def create_target_asset_create_vm_target_asset_details(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def delete_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -892,7 +891,7 @@ def delete_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_migration_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_asset_id, if_match): - if isinstance(migration_asset_id, six.string_types) and len(migration_asset_id.strip()) == 0: + if isinstance(migration_asset_id, str) and len(migration_asset_id.strip()) == 0: raise click.UsageError('Parameter --migration-asset-id cannot be whitespace or empty string') kwargs = {} @@ -948,7 +947,7 @@ def delete_migration_asset(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_migration_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_plan_id, if_match): - if isinstance(migration_plan_id, six.string_types) and len(migration_plan_id.strip()) == 0: + if isinstance(migration_plan_id, str) and len(migration_plan_id.strip()) == 0: raise click.UsageError('Parameter --migration-plan-id cannot be whitespace or empty string') kwargs = {} @@ -1004,7 +1003,7 @@ def delete_migration_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_replication_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, replication_schedule_id, if_match): - if isinstance(replication_schedule_id, six.string_types) and len(replication_schedule_id.strip()) == 0: + if isinstance(replication_schedule_id, str) and len(replication_schedule_id.strip()) == 0: raise click.UsageError('Parameter --replication-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -1060,7 +1059,7 @@ def delete_replication_schedule(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_target_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_asset_id, if_match): - if isinstance(target_asset_id, six.string_types) and len(target_asset_id.strip()) == 0: + if isinstance(target_asset_id, str) and len(target_asset_id.strip()) == 0: raise click.UsageError('Parameter --target-asset-id cannot be whitespace or empty string') kwargs = {} @@ -1115,7 +1114,7 @@ def delete_target_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def execute_migration_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_plan_id, if_match): - if isinstance(migration_plan_id, six.string_types) and len(migration_plan_id.strip()) == 0: + if isinstance(migration_plan_id, str) and len(migration_plan_id.strip()) == 0: raise click.UsageError('Parameter --migration-plan-id cannot be whitespace or empty string') kwargs = {} @@ -1167,7 +1166,7 @@ def execute_migration_plan(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def export_migration_plan(ctx, from_json, file, migration_plan_id): - if isinstance(migration_plan_id, six.string_types) and len(migration_plan_id.strip()) == 0: + if isinstance(migration_plan_id, str) and len(migration_plan_id.strip()) == 0: raise click.UsageError('Parameter --migration-plan-id cannot be whitespace or empty string') kwargs = {} @@ -1211,7 +1210,7 @@ def export_migration_plan(ctx, from_json, file, migration_plan_id): @cli_util.wrap_exceptions def get_migration(ctx, from_json, migration_id): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -1233,7 +1232,7 @@ def get_migration(ctx, from_json, migration_id): @cli_util.wrap_exceptions def get_migration_asset(ctx, from_json, migration_asset_id): - if isinstance(migration_asset_id, six.string_types) and len(migration_asset_id.strip()) == 0: + if isinstance(migration_asset_id, str) and len(migration_asset_id.strip()) == 0: raise click.UsageError('Parameter --migration-asset-id cannot be whitespace or empty string') kwargs = {} @@ -1255,7 +1254,7 @@ def get_migration_asset(ctx, from_json, migration_asset_id): @cli_util.wrap_exceptions def get_migration_plan(ctx, from_json, migration_plan_id): - if isinstance(migration_plan_id, six.string_types) and len(migration_plan_id.strip()) == 0: + if isinstance(migration_plan_id, str) and len(migration_plan_id.strip()) == 0: raise click.UsageError('Parameter --migration-plan-id cannot be whitespace or empty string') kwargs = {} @@ -1277,7 +1276,7 @@ def get_migration_plan(ctx, from_json, migration_plan_id): @cli_util.wrap_exceptions def get_replication_progress(ctx, from_json, migration_asset_id): - if isinstance(migration_asset_id, six.string_types) and len(migration_asset_id.strip()) == 0: + if isinstance(migration_asset_id, str) and len(migration_asset_id.strip()) == 0: raise click.UsageError('Parameter --migration-asset-id cannot be whitespace or empty string') kwargs = {} @@ -1299,7 +1298,7 @@ def get_replication_progress(ctx, from_json, migration_asset_id): @cli_util.wrap_exceptions def get_replication_schedule(ctx, from_json, replication_schedule_id): - if isinstance(replication_schedule_id, six.string_types) and len(replication_schedule_id.strip()) == 0: + if isinstance(replication_schedule_id, str) and len(replication_schedule_id.strip()) == 0: raise click.UsageError('Parameter --replication-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -1321,7 +1320,7 @@ def get_replication_schedule(ctx, from_json, replication_schedule_id): @cli_util.wrap_exceptions def get_target_asset(ctx, from_json, target_asset_id): - if isinstance(target_asset_id, six.string_types) and len(target_asset_id.strip()) == 0: + if isinstance(target_asset_id, str) and len(target_asset_id.strip()) == 0: raise click.UsageError('Parameter --target-asset-id cannot be whitespace or empty string') kwargs = {} @@ -1343,7 +1342,7 @@ def get_target_asset(ctx, from_json, target_asset_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1370,7 +1369,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def import_migration_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_plan_id, import_migration_plan_details, if_match): - if isinstance(migration_plan_id, six.string_types) and len(migration_plan_id.strip()) == 0: + if isinstance(migration_plan_id, str) and len(migration_plan_id.strip()) == 0: raise click.UsageError('Parameter --migration-plan-id cannot be whitespace or empty string') kwargs = {} @@ -1441,7 +1440,7 @@ def list_available_shapes(ctx, from_json, all_pages, page_size, migration_plan_i if sort_by and not availability_domain and not all_pages: raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter') - if isinstance(migration_plan_id, six.string_types) and len(migration_plan_id.strip()) == 0: + if isinstance(migration_plan_id, str) and len(migration_plan_id.strip()) == 0: raise click.UsageError('Parameter --migration-plan-id cannot be whitespace or empty string') kwargs = {} @@ -1819,7 +1818,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1876,7 +1875,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1993,7 +1992,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def refresh_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -2048,7 +2047,7 @@ def refresh_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def refresh_migration_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_asset_id, if_match): - if isinstance(migration_asset_id, six.string_types) and len(migration_asset_id.strip()) == 0: + if isinstance(migration_asset_id, str) and len(migration_asset_id.strip()) == 0: raise click.UsageError('Parameter --migration-asset-id cannot be whitespace or empty string') kwargs = {} @@ -2103,7 +2102,7 @@ def refresh_migration_asset(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def refresh_migration_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_plan_id, if_match): - if isinstance(migration_plan_id, six.string_types) and len(migration_plan_id.strip()) == 0: + if isinstance(migration_plan_id, str) and len(migration_plan_id.strip()) == 0: raise click.UsageError('Parameter --migration-plan-id cannot be whitespace or empty string') kwargs = {} @@ -2158,7 +2157,7 @@ def refresh_migration_plan(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def start_asset_replication(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_asset_id, if_match): - if isinstance(migration_asset_id, six.string_types) and len(migration_asset_id.strip()) == 0: + if isinstance(migration_asset_id, str) and len(migration_asset_id.strip()) == 0: raise click.UsageError('Parameter --migration-asset-id cannot be whitespace or empty string') kwargs = {} @@ -2213,7 +2212,7 @@ def start_asset_replication(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def start_migration_replication(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -2279,7 +2278,7 @@ def start_migration_replication(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_migration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, display_name, replication_schedule_id, is_completed, migration_type, migration_config, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') if not force: if migration_config or freeform_tags or defined_tags or security_attributes: @@ -2366,7 +2365,7 @@ def update_migration(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_migration_asset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_asset_id, display_name, replication_schedule_id, depends_on, if_match): - if isinstance(migration_asset_id, six.string_types) and len(migration_asset_id.strip()) == 0: + if isinstance(migration_asset_id, str) and len(migration_asset_id.strip()) == 0: raise click.UsageError('Parameter --migration-asset-id cannot be whitespace or empty string') if not force: if depends_on: @@ -2444,7 +2443,7 @@ def update_migration_asset(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_migration_plan(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_plan_id, display_name, strategies, target_environments, freeform_tags, defined_tags, if_match): - if isinstance(migration_plan_id, six.string_types) and len(migration_plan_id.strip()) == 0: + if isinstance(migration_plan_id, str) and len(migration_plan_id.strip()) == 0: raise click.UsageError('Parameter --migration-plan-id cannot be whitespace or empty string') if not force: if strategies or target_environments or freeform_tags or defined_tags: @@ -2527,7 +2526,7 @@ def update_migration_plan(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_replication_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, replication_schedule_id, display_name, execution_recurrences, freeform_tags, defined_tags, if_match): - if isinstance(replication_schedule_id, six.string_types) and len(replication_schedule_id.strip()) == 0: + if isinstance(replication_schedule_id, str) and len(replication_schedule_id.strip()) == 0: raise click.UsageError('Parameter --replication-schedule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2604,7 +2603,7 @@ def update_replication_schedule(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_target_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_asset_id, type, is_excluded_from_execution, if_match): - if isinstance(target_asset_id, six.string_types) and len(target_asset_id.strip()) == 0: + if isinstance(target_asset_id, str) and len(target_asset_id.strip()) == 0: raise click.UsageError('Parameter --target-asset-id cannot be whitespace or empty string') kwargs = {} @@ -2673,7 +2672,7 @@ def update_target_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_target_asset_update_vm_target_asset_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_asset_id, is_excluded_from_execution, preferred_shape_type, block_volumes_performance, ms_license, user_spec, if_match): - if isinstance(target_asset_id, six.string_types) and len(target_asset_id.strip()) == 0: + if isinstance(target_asset_id, str) and len(target_asset_id.strip()) == 0: raise click.UsageError('Parameter --target-asset-id cannot be whitespace or empty string') if not force: if user_spec: @@ -2755,7 +2754,7 @@ def update_target_asset_update_vm_target_asset_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_target_asset_update_olvm_target_asset_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_asset_id, is_excluded_from_execution, ms_license, if_match): - if isinstance(target_asset_id, six.string_types) and len(target_asset_id.strip()) == 0: + if isinstance(target_asset_id, str) and len(target_asset_id.strip()) == 0: raise click.UsageError('Parameter --target-asset-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/cloud_migrations/src/oci_cli_migration/migration_cli_extended.py b/services/cloud_migrations/src/oci_cli_migration/migration_cli_extended.py index 7ab3ee2f9..595c1eec9 100644 --- a/services/cloud_migrations/src/oci_cli_migration/migration_cli_extended.py +++ b/services/cloud_migrations/src/oci_cli_migration/migration_cli_extended.py @@ -4,7 +4,6 @@ import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 import click # noqa: F401 import json # noqa: F401 @@ -161,7 +160,7 @@ def create_target_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_i def update_target_asset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_asset_id, type, is_excluded_from_execution, if_match, preferred_shape_type, block_volumes_performance, ms_license, user_spec): - if isinstance(target_asset_id, six.string_types) and len(target_asset_id.strip()) == 0: + if isinstance(target_asset_id, str) and len(target_asset_id.strip()) == 0: raise click.UsageError('Parameter --target-asset-id cannot be whitespace or empty string') if not force: diff --git a/services/cluster_health/src/oci_cli_diagnosis/generated/diagnosis_cli.py b/services/cluster_health/src/oci_cli_diagnosis/generated/diagnosis_cli.py index 27767f626..8014ecb17 100644 --- a/services/cluster_health/src/oci_cli_diagnosis/generated/diagnosis_cli.py +++ b/services/cluster_health/src/oci_cli_diagnosis/generated/diagnosis_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -86,7 +85,7 @@ def diagnosis_results_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -115,7 +114,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_diagnosis_store_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, diagnosis_store_id, compartment_id, if_match): - if isinstance(diagnosis_store_id, six.string_types) and len(diagnosis_store_id.strip()) == 0: + if isinstance(diagnosis_store_id, str) and len(diagnosis_store_id.strip()) == 0: raise click.UsageError('Parameter --diagnosis-store-id cannot be whitespace or empty string') kwargs = {} @@ -253,7 +252,7 @@ def create_diagnosis_store(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_diagnosis_store(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, diagnosis_store_id, if_match): - if isinstance(diagnosis_store_id, six.string_types) and len(diagnosis_store_id.strip()) == 0: + if isinstance(diagnosis_store_id, str) and len(diagnosis_store_id.strip()) == 0: raise click.UsageError('Parameter --diagnosis-store-id cannot be whitespace or empty string') kwargs = {} @@ -304,7 +303,7 @@ def delete_diagnosis_store(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def get_diagnosis_store(ctx, from_json, diagnosis_store_id): - if isinstance(diagnosis_store_id, six.string_types) and len(diagnosis_store_id.strip()) == 0: + if isinstance(diagnosis_store_id, str) and len(diagnosis_store_id.strip()) == 0: raise click.UsageError('Parameter --diagnosis-store-id cannot be whitespace or empty string') kwargs = {} @@ -326,7 +325,7 @@ def get_diagnosis_store(ctx, from_json, diagnosis_store_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -419,7 +418,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -476,7 +475,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -587,7 +586,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def query_diagnosis_by_health_check_key(ctx, from_json, diagnosis_store_id, health_check_key): - if isinstance(diagnosis_store_id, six.string_types) and len(diagnosis_store_id.strip()) == 0: + if isinstance(diagnosis_store_id, str) and len(diagnosis_store_id.strip()) == 0: raise click.UsageError('Parameter --diagnosis-store-id cannot be whitespace or empty string') kwargs = {} @@ -620,7 +619,7 @@ def query_diagnosis_by_health_check_key(ctx, from_json, diagnosis_store_id, heal @cli_util.wrap_exceptions def query_diagnosis_summary(ctx, from_json, diagnosis_store_id, instance_ids, test_type, time_test_run_interval_start, time_test_run_interval_end, limit, page): - if isinstance(diagnosis_store_id, six.string_types) and len(diagnosis_store_id.strip()) == 0: + if isinstance(diagnosis_store_id, str) and len(diagnosis_store_id.strip()) == 0: raise click.UsageError('Parameter --diagnosis-store-id cannot be whitespace or empty string') kwargs = {} @@ -661,7 +660,7 @@ def query_diagnosis_summary(ctx, from_json, diagnosis_store_id, instance_ids, te @cli_util.wrap_exceptions def request_diagnosis(ctx, from_json, diagnosis_store_id, health_check_keys): - if isinstance(diagnosis_store_id, six.string_types) and len(diagnosis_store_id.strip()) == 0: + if isinstance(diagnosis_store_id, str) and len(diagnosis_store_id.strip()) == 0: raise click.UsageError('Parameter --diagnosis-store-id cannot be whitespace or empty string') kwargs = {} @@ -702,7 +701,7 @@ def request_diagnosis(ctx, from_json, diagnosis_store_id, health_check_keys): @cli_util.wrap_exceptions def update_diagnosis_store(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, diagnosis_store_id, display_name, object_store_namespace, object_store_bucket, freeform_tags, defined_tags, if_match): - if isinstance(diagnosis_store_id, six.string_types) and len(diagnosis_store_id.strip()) == 0: + if isinstance(diagnosis_store_id, str) and len(diagnosis_store_id.strip()) == 0: raise click.UsageError('Parameter --diagnosis-store-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/cluster_placement_groups/src/oci_cli_cluster_placement_groups_cp/generated/clusterplacementgroupscp_cli.py b/services/cluster_placement_groups/src/oci_cli_cluster_placement_groups_cp/generated/clusterplacementgroupscp_cli.py index a1b00826d..fe2a8db4e 100644 --- a/services/cluster_placement_groups/src/oci_cli_cluster_placement_groups_cp/generated/clusterplacementgroupscp_cli.py +++ b/services/cluster_placement_groups/src/oci_cli_cluster_placement_groups_cp/generated/clusterplacementgroupscp_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -72,7 +71,7 @@ def work_request_group(): @cli_util.wrap_exceptions def activate_cluster_placement_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_placement_group_id, if_match): - if isinstance(cluster_placement_group_id, six.string_types) and len(cluster_placement_group_id.strip()) == 0: + if isinstance(cluster_placement_group_id, str) and len(cluster_placement_group_id.strip()) == 0: raise click.UsageError('Parameter --cluster-placement-group-id cannot be whitespace or empty string') kwargs = {} @@ -121,7 +120,7 @@ def activate_cluster_placement_group(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -149,7 +148,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_cluster_placement_group_compartment(ctx, from_json, cluster_placement_group_id, compartment_id, if_match): - if isinstance(cluster_placement_group_id, six.string_types) and len(cluster_placement_group_id.strip()) == 0: + if isinstance(cluster_placement_group_id, str) and len(cluster_placement_group_id.strip()) == 0: raise click.UsageError('Parameter --cluster-placement-group-id cannot be whitespace or empty string') kwargs = {} @@ -262,7 +261,7 @@ def create_cluster_placement_group(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def deactivate_cluster_placement_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_placement_group_id, if_match): - if isinstance(cluster_placement_group_id, six.string_types) and len(cluster_placement_group_id.strip()) == 0: + if isinstance(cluster_placement_group_id, str) and len(cluster_placement_group_id.strip()) == 0: raise click.UsageError('Parameter --cluster-placement-group-id cannot be whitespace or empty string') kwargs = {} @@ -314,7 +313,7 @@ def deactivate_cluster_placement_group(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_cluster_placement_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_placement_group_id, if_match): - if isinstance(cluster_placement_group_id, six.string_types) and len(cluster_placement_group_id.strip()) == 0: + if isinstance(cluster_placement_group_id, str) and len(cluster_placement_group_id.strip()) == 0: raise click.UsageError('Parameter --cluster-placement-group-id cannot be whitespace or empty string') kwargs = {} @@ -365,7 +364,7 @@ def delete_cluster_placement_group(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def get_cluster_placement_group(ctx, from_json, cluster_placement_group_id): - if isinstance(cluster_placement_group_id, six.string_types) and len(cluster_placement_group_id.strip()) == 0: + if isinstance(cluster_placement_group_id, str) and len(cluster_placement_group_id.strip()) == 0: raise click.UsageError('Parameter --cluster-placement-group-id cannot be whitespace or empty string') kwargs = {} @@ -387,7 +386,7 @@ def get_cluster_placement_group(ctx, from_json, cluster_placement_group_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -486,7 +485,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -543,7 +542,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -661,7 +660,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_cluster_placement_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_placement_group_id, description, freeform_tags, defined_tags, if_match): - if isinstance(cluster_placement_group_id, six.string_types) and len(cluster_placement_group_id.strip()) == 0: + if isinstance(cluster_placement_group_id, str) and len(cluster_placement_group_id.strip()) == 0: raise click.UsageError('Parameter --cluster-placement-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/compute_cloud_at_customer/src/oci_cli_compute_cloud_at_customer/generated/computecloudatcustomer_cli.py b/services/compute_cloud_at_customer/src/oci_cli_compute_cloud_at_customer/generated/computecloudatcustomer_cli.py index 9974db71e..81c200834 100644 --- a/services/compute_cloud_at_customer/src/oci_cli_compute_cloud_at_customer/generated/computecloudatcustomer_cli.py +++ b/services/compute_cloud_at_customer/src/oci_cli_compute_cloud_at_customer/generated/computecloudatcustomer_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -64,7 +63,7 @@ def ccc_infrastructure_collection_group(): @cli_util.wrap_exceptions def change_ccc_infrastructure_compartment(ctx, from_json, ccc_infrastructure_id, compartment_id, if_match): - if isinstance(ccc_infrastructure_id, six.string_types) and len(ccc_infrastructure_id.strip()) == 0: + if isinstance(ccc_infrastructure_id, str) and len(ccc_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --ccc-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -95,7 +94,7 @@ def change_ccc_infrastructure_compartment(ctx, from_json, ccc_infrastructure_id, @cli_util.wrap_exceptions def change_ccc_upgrade_schedule_compartment(ctx, from_json, ccc_upgrade_schedule_id, compartment_id, if_match): - if isinstance(ccc_upgrade_schedule_id, six.string_types) and len(ccc_upgrade_schedule_id.strip()) == 0: + if isinstance(ccc_upgrade_schedule_id, str) and len(ccc_upgrade_schedule_id.strip()) == 0: raise click.UsageError('Parameter --ccc-upgrade-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -271,7 +270,7 @@ def create_ccc_upgrade_schedule(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_ccc_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ccc_infrastructure_id, if_match): - if isinstance(ccc_infrastructure_id, six.string_types) and len(ccc_infrastructure_id.strip()) == 0: + if isinstance(ccc_infrastructure_id, str) and len(ccc_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --ccc-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -335,7 +334,7 @@ def delete_ccc_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_ccc_upgrade_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ccc_upgrade_schedule_id, if_match): - if isinstance(ccc_upgrade_schedule_id, six.string_types) and len(ccc_upgrade_schedule_id.strip()) == 0: + if isinstance(ccc_upgrade_schedule_id, str) and len(ccc_upgrade_schedule_id.strip()) == 0: raise click.UsageError('Parameter --ccc-upgrade-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -394,7 +393,7 @@ def delete_ccc_upgrade_schedule(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def get_ccc_infrastructure(ctx, from_json, ccc_infrastructure_id): - if isinstance(ccc_infrastructure_id, six.string_types) and len(ccc_infrastructure_id.strip()) == 0: + if isinstance(ccc_infrastructure_id, str) and len(ccc_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --ccc-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -416,7 +415,7 @@ def get_ccc_infrastructure(ctx, from_json, ccc_infrastructure_id): @cli_util.wrap_exceptions def get_ccc_upgrade_schedule(ctx, from_json, ccc_upgrade_schedule_id): - if isinstance(ccc_upgrade_schedule_id, six.string_types) and len(ccc_upgrade_schedule_id.strip()) == 0: + if isinstance(ccc_upgrade_schedule_id, str) and len(ccc_upgrade_schedule_id.strip()) == 0: raise click.UsageError('Parameter --ccc-upgrade-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -593,7 +592,7 @@ def list_ccc_upgrade_schedules(ctx, from_json, all_pages, page_size, ccc_upgrade @cli_util.wrap_exceptions def update_ccc_infrastructure(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ccc_infrastructure_id, display_name, description, subnet_id, connection_state, connection_details, ccc_upgrade_schedule_id, freeform_tags, defined_tags, if_match): - if isinstance(ccc_infrastructure_id, six.string_types) and len(ccc_infrastructure_id.strip()) == 0: + if isinstance(ccc_infrastructure_id, str) and len(ccc_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --ccc-infrastructure-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -684,7 +683,7 @@ def update_ccc_infrastructure(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_ccc_upgrade_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ccc_upgrade_schedule_id, display_name, description, events, freeform_tags, defined_tags, if_match): - if isinstance(ccc_upgrade_schedule_id, six.string_types) and len(ccc_upgrade_schedule_id.strip()) == 0: + if isinstance(ccc_upgrade_schedule_id, str) and len(ccc_upgrade_schedule_id.strip()) == 0: raise click.UsageError('Parameter --ccc-upgrade-schedule-id cannot be whitespace or empty string') if not force: if events or freeform_tags or defined_tags: diff --git a/services/compute_instance_agent/src/oci_cli_compute_instance_agent/generated/computeinstanceagent_cli.py b/services/compute_instance_agent/src/oci_cli_compute_instance_agent/generated/computeinstanceagent_cli.py index c71e32b4a..1d902bdb5 100644 --- a/services/compute_instance_agent/src/oci_cli_compute_instance_agent/generated/computeinstanceagent_cli.py +++ b/services/compute_instance_agent/src/oci_cli_compute_instance_agent/generated/computeinstanceagent_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,7 +52,7 @@ def instance_agent_command_execution_group(): @cli_util.wrap_exceptions def cancel_instance_agent_command(ctx, from_json, instance_agent_command_id, if_match): - if isinstance(instance_agent_command_id, six.string_types) and len(instance_agent_command_id.strip()) == 0: + if isinstance(instance_agent_command_id, str) and len(instance_agent_command_id.strip()) == 0: raise click.UsageError('Parameter --instance-agent-command-id cannot be whitespace or empty string') kwargs = {} @@ -116,7 +115,7 @@ def create_instance_agent_command(ctx, from_json, compartment_id, execution_time @cli_util.wrap_exceptions def get_instance_agent_command(ctx, from_json, instance_agent_command_id): - if isinstance(instance_agent_command_id, six.string_types) and len(instance_agent_command_id.strip()) == 0: + if isinstance(instance_agent_command_id, str) and len(instance_agent_command_id.strip()) == 0: raise click.UsageError('Parameter --instance-agent-command-id cannot be whitespace or empty string') kwargs = {} @@ -139,7 +138,7 @@ def get_instance_agent_command(ctx, from_json, instance_agent_command_id): @cli_util.wrap_exceptions def get_instance_agent_command_execution(ctx, from_json, instance_agent_command_id, instance_id): - if isinstance(instance_agent_command_id, six.string_types) and len(instance_agent_command_id.strip()) == 0: + if isinstance(instance_agent_command_id, str) and len(instance_agent_command_id.strip()) == 0: raise click.UsageError('Parameter --instance-agent-command-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/compute_instance_agent/src/oci_cli_plugin/generated/plugin_cli.py b/services/compute_instance_agent/src/oci_cli_plugin/generated/plugin_cli.py index 20d4134bd..6cf069df0 100644 --- a/services/compute_instance_agent/src/oci_cli_plugin/generated/plugin_cli.py +++ b/services/compute_instance_agent/src/oci_cli_plugin/generated/plugin_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -44,10 +43,10 @@ def plugin_group(): @cli_util.wrap_exceptions def get_instance_agent_plugin(ctx, from_json, instanceagent_id, compartment_id, plugin_name): - if isinstance(instanceagent_id, six.string_types) and len(instanceagent_id.strip()) == 0: + if isinstance(instanceagent_id, str) and len(instanceagent_id.strip()) == 0: raise click.UsageError('Parameter --instanceagent-id cannot be whitespace or empty string') - if isinstance(plugin_name, six.string_types) and len(plugin_name.strip()) == 0: + if isinstance(plugin_name, str) and len(plugin_name.strip()) == 0: raise click.UsageError('Parameter --plugin-name cannot be whitespace or empty string') kwargs = {} @@ -85,7 +84,7 @@ def list_instance_agent_plugins(ctx, from_json, all_pages, page_size, compartmen if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(instanceagent_id, six.string_types) and len(instanceagent_id.strip()) == 0: + if isinstance(instanceagent_id, str) and len(instanceagent_id.strip()) == 0: raise click.UsageError('Parameter --instanceagent-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/compute_instance_agent/src/oci_cli_pluginconfig/generated/pluginconfig_cli.py b/services/compute_instance_agent/src/oci_cli_pluginconfig/generated/pluginconfig_cli.py index f1f9148b5..9776848ef 100644 --- a/services/compute_instance_agent/src/oci_cli_pluginconfig/generated/pluginconfig_cli.py +++ b/services/compute_instance_agent/src/oci_cli_pluginconfig/generated/pluginconfig_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/container_engine/src/oci_cli_container_engine/containerengine_cli_extended.py b/services/container_engine/src/oci_cli_container_engine/containerengine_cli_extended.py index 372c3894d..34fe8e970 100644 --- a/services/container_engine/src/oci_cli_container_engine/containerengine_cli_extended.py +++ b/services/container_engine/src/oci_cli_container_engine/containerengine_cli_extended.py @@ -11,7 +11,6 @@ from oci.auth.signers import InstancePrincipalsDelegationTokenSigner import click import json -import six import os import yaml import base64 @@ -36,7 +35,7 @@ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}) @cli_util.wrap_exceptions def generate_token(ctx, from_json, cluster_id): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') client = cli_util.build_client('container_engine', 'container_engine', ctx) @@ -619,7 +618,7 @@ def update_node_pool(ctx, **kwargs): @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}) @cli_util.wrap_exceptions def create_kubeconfig(ctx, from_json, file, cluster_id, token_version, expiration, kube_endpoint, overwrite, with_auth_context): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/container_engine/src/oci_cli_container_engine/generated/containerengine_cli.py b/services/container_engine/src/oci_cli_container_engine/generated/containerengine_cli.py index 3e83602fd..134109142 100644 --- a/services/container_engine/src/oci_cli_container_engine/generated/containerengine_cli.py +++ b/services/container_engine/src/oci_cli_container_engine/generated/containerengine_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -132,7 +131,7 @@ def cluster_options_group(): @cli_util.wrap_exceptions def cluster_migrate_to_native_vcn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, endpoint_config, decommission_delay_duration, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -195,7 +194,7 @@ def cluster_migrate_to_native_vcn(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def complete_credential_rotation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -343,7 +342,7 @@ def create_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def create_kubeconfig(ctx, from_json, file, cluster_id, token_version, expiration, endpoint_parameterconflict): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -769,7 +768,7 @@ def create_virtual_node_pool(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def create_workload_mapping(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, namespace, mapped_compartment_id, freeform_tags, defined_tags): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -831,7 +830,7 @@ def create_workload_mapping(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -891,10 +890,10 @@ def delete_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, node_pool_id, node_id, is_decrement_size, if_match, override_eviction_grace_duration, is_force_deletion_after_override_grace_duration): - if isinstance(node_pool_id, six.string_types) and len(node_pool_id.strip()) == 0: + if isinstance(node_pool_id, str) and len(node_pool_id.strip()) == 0: raise click.UsageError('Parameter --node-pool-id cannot be whitespace or empty string') - if isinstance(node_id, six.string_types) and len(node_id.strip()) == 0: + if isinstance(node_id, str) and len(node_id.strip()) == 0: raise click.UsageError('Parameter --node-id cannot be whitespace or empty string') kwargs = {} @@ -959,7 +958,7 @@ def delete_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_node_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, node_pool_id, if_match, override_eviction_grace_duration, is_force_deletion_after_override_grace_duration): - if isinstance(node_pool_id, six.string_types) and len(node_pool_id.strip()) == 0: + if isinstance(node_pool_id, str) and len(node_pool_id.strip()) == 0: raise click.UsageError('Parameter --node-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1021,7 +1020,7 @@ def delete_node_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_virtual_node_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, virtual_node_pool_id, if_match, override_eviction_grace_duration_vnp, is_force_deletion_after_override_grace_duration_vnp): - if isinstance(virtual_node_pool_id, six.string_types) and len(virtual_node_pool_id.strip()) == 0: + if isinstance(virtual_node_pool_id, str) and len(virtual_node_pool_id.strip()) == 0: raise click.UsageError('Parameter --virtual-node-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1078,7 +1077,7 @@ def delete_virtual_node_pool(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1105,10 +1104,10 @@ def delete_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def delete_workload_mapping(ctx, from_json, cluster_id, workload_mapping_id, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') - if isinstance(workload_mapping_id, six.string_types) and len(workload_mapping_id.strip()) == 0: + if isinstance(workload_mapping_id, str) and len(workload_mapping_id.strip()) == 0: raise click.UsageError('Parameter --workload-mapping-id cannot be whitespace or empty string') kwargs = {} @@ -1140,10 +1139,10 @@ def delete_workload_mapping(ctx, from_json, cluster_id, workload_mapping_id, if_ @cli_util.wrap_exceptions def disable_addon(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, addon_name, is_remove_existing_add_on, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') - if isinstance(addon_name, six.string_types) and len(addon_name.strip()) == 0: + if isinstance(addon_name, str) and len(addon_name.strip()) == 0: raise click.UsageError('Parameter --addon-name cannot be whitespace or empty string') kwargs = {} @@ -1198,7 +1197,7 @@ def disable_addon(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def extend_endpoint_decommission_rollback_deadline(ctx, from_json, cluster_id, rollback_deadline_delay, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1228,10 +1227,10 @@ def extend_endpoint_decommission_rollback_deadline(ctx, from_json, cluster_id, r @cli_util.wrap_exceptions def get_addon(ctx, from_json, cluster_id, addon_name): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') - if isinstance(addon_name, six.string_types) and len(addon_name.strip()) == 0: + if isinstance(addon_name, str) and len(addon_name.strip()) == 0: raise click.UsageError('Parameter --addon-name cannot be whitespace or empty string') kwargs = {} @@ -1255,7 +1254,7 @@ def get_addon(ctx, from_json, cluster_id, addon_name): @cli_util.wrap_exceptions def get_cluster(ctx, from_json, cluster_id, should_include_oidc_config_file): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1279,7 +1278,7 @@ def get_cluster(ctx, from_json, cluster_id, should_include_oidc_config_file): @cli_util.wrap_exceptions def get_cluster_migrate_to_native_vcn_status(ctx, from_json, cluster_id): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1303,7 +1302,7 @@ def get_cluster_migrate_to_native_vcn_status(ctx, from_json, cluster_id): @cli_util.wrap_exceptions def get_cluster_options(ctx, from_json, cluster_option_id, compartment_id, should_list_all_patch_versions): - if isinstance(cluster_option_id, six.string_types) and len(cluster_option_id.strip()) == 0: + if isinstance(cluster_option_id, str) and len(cluster_option_id.strip()) == 0: raise click.UsageError('Parameter --cluster-option-id cannot be whitespace or empty string') kwargs = {} @@ -1329,7 +1328,7 @@ def get_cluster_options(ctx, from_json, cluster_option_id, compartment_id, shoul @cli_util.wrap_exceptions def get_credential_rotation_status(ctx, from_json, cluster_id): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1351,7 +1350,7 @@ def get_credential_rotation_status(ctx, from_json, cluster_id): @cli_util.wrap_exceptions def get_node_pool(ctx, from_json, node_pool_id): - if isinstance(node_pool_id, six.string_types) and len(node_pool_id.strip()) == 0: + if isinstance(node_pool_id, str) and len(node_pool_id.strip()) == 0: raise click.UsageError('Parameter --node-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1378,7 +1377,7 @@ def get_node_pool(ctx, from_json, node_pool_id): @cli_util.wrap_exceptions def get_node_pool_options(ctx, from_json, node_pool_option_id, compartment_id, should_list_all_patch_versions, node_pool_os_type, node_pool_os_arch, node_pool_k8s_version): - if isinstance(node_pool_option_id, six.string_types) and len(node_pool_option_id.strip()) == 0: + if isinstance(node_pool_option_id, str) and len(node_pool_option_id.strip()) == 0: raise click.UsageError('Parameter --node-pool-option-id cannot be whitespace or empty string') kwargs = {} @@ -1410,7 +1409,7 @@ def get_node_pool_options(ctx, from_json, node_pool_option_id, compartment_id, s @cli_util.wrap_exceptions def get_public_api_endpoint_decommission_status(ctx, from_json, cluster_id): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1433,10 +1432,10 @@ def get_public_api_endpoint_decommission_status(ctx, from_json, cluster_id): @cli_util.wrap_exceptions def get_virtual_node(ctx, from_json, virtual_node_pool_id, virtual_node_id): - if isinstance(virtual_node_pool_id, six.string_types) and len(virtual_node_pool_id.strip()) == 0: + if isinstance(virtual_node_pool_id, str) and len(virtual_node_pool_id.strip()) == 0: raise click.UsageError('Parameter --virtual-node-pool-id cannot be whitespace or empty string') - if isinstance(virtual_node_id, six.string_types) and len(virtual_node_id.strip()) == 0: + if isinstance(virtual_node_id, str) and len(virtual_node_id.strip()) == 0: raise click.UsageError('Parameter --virtual-node-id cannot be whitespace or empty string') kwargs = {} @@ -1459,7 +1458,7 @@ def get_virtual_node(ctx, from_json, virtual_node_pool_id, virtual_node_id): @cli_util.wrap_exceptions def get_virtual_node_pool(ctx, from_json, virtual_node_pool_id): - if isinstance(virtual_node_pool_id, six.string_types) and len(virtual_node_pool_id.strip()) == 0: + if isinstance(virtual_node_pool_id, str) and len(virtual_node_pool_id.strip()) == 0: raise click.UsageError('Parameter --virtual-node-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1481,7 +1480,7 @@ def get_virtual_node_pool(ctx, from_json, virtual_node_pool_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1504,10 +1503,10 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def get_workload_mapping(ctx, from_json, cluster_id, workload_mapping_id): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') - if isinstance(workload_mapping_id, six.string_types) and len(workload_mapping_id.strip()) == 0: + if isinstance(workload_mapping_id, str) and len(workload_mapping_id.strip()) == 0: raise click.UsageError('Parameter --workload-mapping-id cannot be whitespace or empty string') kwargs = {} @@ -1540,7 +1539,7 @@ def get_workload_mapping(ctx, from_json, cluster_id, workload_mapping_id): @cli_util.wrap_exceptions def install_addon(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, addon_name, version_parameterconflict, configurations, is_override_existing, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1674,7 +1673,7 @@ def list_addons(ctx, from_json, all_pages, page_size, cluster_id, limit, page, s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1980,7 +1979,7 @@ def list_virtual_nodes(ctx, from_json, all_pages, page_size, virtual_node_pool_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(virtual_node_pool_id, six.string_types) and len(virtual_node_pool_id.strip()) == 0: + if isinstance(virtual_node_pool_id, str) and len(virtual_node_pool_id.strip()) == 0: raise click.UsageError('Parameter --virtual-node-pool-id cannot be whitespace or empty string') kwargs = {} @@ -2032,7 +2031,7 @@ def list_virtual_nodes(ctx, from_json, all_pages, page_size, virtual_node_pool_i @cli_util.wrap_exceptions def list_work_request_errors(ctx, from_json, all_pages, compartment_id, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2057,7 +2056,7 @@ def list_work_request_errors(ctx, from_json, all_pages, compartment_id, work_req @cli_util.wrap_exceptions def list_work_request_logs(ctx, from_json, all_pages, compartment_id, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2155,7 +2154,7 @@ def list_workload_mappings(ctx, from_json, all_pages, page_size, cluster_id, lim if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -2208,10 +2207,10 @@ def list_workload_mappings(ctx, from_json, all_pages, page_size, cluster_id, lim @cli_util.wrap_exceptions def reboot_cluster_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, node_id, node_eviction_settings): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') - if isinstance(node_id, six.string_types) and len(node_id.strip()) == 0: + if isinstance(node_id, str) and len(node_id.strip()) == 0: raise click.UsageError('Parameter --node-id cannot be whitespace or empty string') kwargs = {} @@ -2273,10 +2272,10 @@ def reboot_cluster_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def replace_boot_volume_cluster_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, node_id, node_eviction_settings): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') - if isinstance(node_id, six.string_types) and len(node_id.strip()) == 0: + if isinstance(node_id, str) and len(node_id.strip()) == 0: raise click.UsageError('Parameter --node-id cannot be whitespace or empty string') kwargs = {} @@ -2337,7 +2336,7 @@ def replace_boot_volume_cluster_node(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def rollback_public_api_endpoint_decommission(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -2393,7 +2392,7 @@ def rollback_public_api_endpoint_decommission(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def start_credential_rotation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, auto_completion_delay_duration, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -2453,7 +2452,7 @@ def start_credential_rotation(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def start_public_api_endpoint_decommission(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -2514,10 +2513,10 @@ def start_public_api_endpoint_decommission(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def update_addon(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, addon_name, version_parameterconflict, configurations, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') - if isinstance(addon_name, six.string_types) and len(addon_name.strip()) == 0: + if isinstance(addon_name, str) and len(addon_name.strip()) == 0: raise click.UsageError('Parameter --addon-name cannot be whitespace or empty string') if not force: if configurations: @@ -2595,7 +2594,7 @@ def update_addon(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, name, kubernetes_version, options, freeform_tags, defined_tags, image_policy_config, type, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') if not force: if options or freeform_tags or defined_tags or image_policy_config: @@ -2682,7 +2681,7 @@ def update_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_cluster_endpoint_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, nsg_ids, is_public_ip_enabled, security_attributes, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -2775,7 +2774,7 @@ def update_cluster_endpoint_config(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_node_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, node_pool_id, name, kubernetes_version, initial_node_labels, quantity_per_subnet, subnet_ids, node_config_details, node_metadata, node_source_details, ssh_public_key, node_shape, node_shape_config, freeform_tags, defined_tags, node_eviction_node_pool_settings, node_pool_cycling_details, secondary_vnics, network_launch_type, primary_vnic, if_match, override_eviction_grace_duration, is_force_deletion_after_override_grace_duration): - if isinstance(node_pool_id, six.string_types) and len(node_pool_id.strip()) == 0: + if isinstance(node_pool_id, str) and len(node_pool_id.strip()) == 0: raise click.UsageError('Parameter --node-pool-id cannot be whitespace or empty string') if not force: if initial_node_labels or subnet_ids or node_config_details or node_metadata or node_source_details or node_shape_config or freeform_tags or defined_tags or node_eviction_node_pool_settings or node_pool_cycling_details or secondary_vnics or primary_vnic: @@ -2922,7 +2921,7 @@ def update_node_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_node_pool_node_source_via_image_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, node_pool_id, node_source_details_image_id, name, kubernetes_version, initial_node_labels, quantity_per_subnet, subnet_ids, node_config_details, node_metadata, ssh_public_key, node_shape, node_shape_config, freeform_tags, defined_tags, node_eviction_node_pool_settings, node_pool_cycling_details, secondary_vnics, network_launch_type, primary_vnic, if_match, override_eviction_grace_duration, is_force_deletion_after_override_grace_duration, node_source_details_boot_volume_size_in_gbs): - if isinstance(node_pool_id, six.string_types) and len(node_pool_id.strip()) == 0: + if isinstance(node_pool_id, str) and len(node_pool_id.strip()) == 0: raise click.UsageError('Parameter --node-pool-id cannot be whitespace or empty string') if not force: if initial_node_labels or subnet_ids or node_config_details or node_metadata or node_shape_config or freeform_tags or defined_tags or node_eviction_node_pool_settings or node_pool_cycling_details or secondary_vnics or primary_vnic: @@ -3065,7 +3064,7 @@ def update_node_pool_node_source_via_image_details(ctx, from_json, force, wait_f @cli_util.wrap_exceptions def update_virtual_node_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, virtual_node_pool_id, display_name, initial_virtual_node_labels, taints, size, placement_configurations, nsg_ids, pod_configuration, freeform_tags, defined_tags, virtual_node_tags, virtual_node_pool_cycling_details, if_match): - if isinstance(virtual_node_pool_id, six.string_types) and len(virtual_node_pool_id.strip()) == 0: + if isinstance(virtual_node_pool_id, str) and len(virtual_node_pool_id.strip()) == 0: raise click.UsageError('Parameter --virtual-node-pool-id cannot be whitespace or empty string') if not force: if initial_virtual_node_labels or taints or placement_configurations or nsg_ids or pod_configuration or freeform_tags or defined_tags or virtual_node_tags or virtual_node_pool_cycling_details: @@ -3166,10 +3165,10 @@ def update_virtual_node_pool(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_workload_mapping(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, workload_mapping_id, mapped_compartment_id, freeform_tags, defined_tags, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') - if isinstance(workload_mapping_id, six.string_types) and len(workload_mapping_id.strip()) == 0: + if isinstance(workload_mapping_id, str) and len(workload_mapping_id.strip()) == 0: raise click.UsageError('Parameter --workload-mapping-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/container_instances/src/oci_cli_container_instance/generated/containerinstance_cli.py b/services/container_instances/src/oci_cli_container_instance/generated/containerinstance_cli.py index f46698a45..80cee7f21 100644 --- a/services/container_instances/src/oci_cli_container_instance/generated/containerinstance_cli.py +++ b/services/container_instances/src/oci_cli_container_instance/generated/containerinstance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -105,7 +104,7 @@ def work_request_log_entry_collection_group(): @cli_util.wrap_exceptions def change_container_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, container_instance_id, compartment_id, if_match): - if isinstance(container_instance_id, six.string_types) and len(container_instance_id.strip()) == 0: + if isinstance(container_instance_id, str) and len(container_instance_id.strip()) == 0: raise click.UsageError('Parameter --container-instance-id cannot be whitespace or empty string') kwargs = {} @@ -391,7 +390,7 @@ def create_container_instance_create_linux_container_instance_security_context_d @cli_util.wrap_exceptions def delete_container_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, container_instance_id, if_match): - if isinstance(container_instance_id, six.string_types) and len(container_instance_id.strip()) == 0: + if isinstance(container_instance_id, str) and len(container_instance_id.strip()) == 0: raise click.UsageError('Parameter --container-instance-id cannot be whitespace or empty string') kwargs = {} @@ -442,7 +441,7 @@ def delete_container_instance(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_container(ctx, from_json, container_id): - if isinstance(container_id, six.string_types) and len(container_id.strip()) == 0: + if isinstance(container_id, str) and len(container_id.strip()) == 0: raise click.UsageError('Parameter --container-id cannot be whitespace or empty string') kwargs = {} @@ -464,7 +463,7 @@ def get_container(ctx, from_json, container_id): @cli_util.wrap_exceptions def get_container_instance(ctx, from_json, container_instance_id): - if isinstance(container_instance_id, six.string_types) and len(container_instance_id.strip()) == 0: + if isinstance(container_instance_id, str) and len(container_instance_id.strip()) == 0: raise click.UsageError('Parameter --container-instance-id cannot be whitespace or empty string') kwargs = {} @@ -486,7 +485,7 @@ def get_container_instance(ctx, from_json, container_instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -707,7 +706,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -764,7 +763,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -886,7 +885,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def restart_container_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, container_instance_id, if_match): - if isinstance(container_instance_id, six.string_types) and len(container_instance_id.strip()) == 0: + if isinstance(container_instance_id, str) and len(container_instance_id.strip()) == 0: raise click.UsageError('Parameter --container-instance-id cannot be whitespace or empty string') kwargs = {} @@ -939,7 +938,7 @@ def restart_container_instance(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def retrieve_logs(ctx, from_json, file, container_id, is_previous): - if isinstance(container_id, six.string_types) and len(container_id.strip()) == 0: + if isinstance(container_id, str) and len(container_id.strip()) == 0: raise click.UsageError('Parameter --container-id cannot be whitespace or empty string') kwargs = {} @@ -989,7 +988,7 @@ def retrieve_logs(ctx, from_json, file, container_id, is_previous): @cli_util.wrap_exceptions def start_container_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, container_instance_id, if_match): - if isinstance(container_instance_id, six.string_types) and len(container_instance_id.strip()) == 0: + if isinstance(container_instance_id, str) and len(container_instance_id.strip()) == 0: raise click.UsageError('Parameter --container-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1044,7 +1043,7 @@ def start_container_instance(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def stop_container_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, container_instance_id, if_match): - if isinstance(container_instance_id, six.string_types) and len(container_instance_id.strip()) == 0: + if isinstance(container_instance_id, str) and len(container_instance_id.strip()) == 0: raise click.UsageError('Parameter --container-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1103,7 +1102,7 @@ def stop_container_instance(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_container(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, container_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(container_id, six.string_types) and len(container_id.strip()) == 0: + if isinstance(container_id, str) and len(container_id.strip()) == 0: raise click.UsageError('Parameter --container-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1179,7 +1178,7 @@ def update_container(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_container_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, container_instance_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(container_instance_id, six.string_types) and len(container_instance_id.strip()) == 0: + if isinstance(container_instance_id, str) and len(container_instance_id.strip()) == 0: raise click.UsageError('Parameter --container-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/container_registry/src/oci_cli_container_registry/generated/containerregistry_cli.py b/services/container_registry/src/oci_cli_container_registry/generated/containerregistry_cli.py index 7d6df49ee..885add79a 100644 --- a/services/container_registry/src/oci_cli_container_registry/generated/containerregistry_cli.py +++ b/services/container_registry/src/oci_cli_container_registry/generated/containerregistry_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 diff --git a/services/core/src/oci_cli_blockstorage/blockstorage_cli_extended.py b/services/core/src/oci_cli_blockstorage/blockstorage_cli_extended.py index f1ada8769..1b97b08c2 100644 --- a/services/core/src/oci_cli_blockstorage/blockstorage_cli_extended.py +++ b/services/core/src/oci_cli_blockstorage/blockstorage_cli_extended.py @@ -6,7 +6,6 @@ import click import json import oci -import six import sys from services.core.src.oci_cli_blockstorage.generated import blockstorage_cli @@ -196,7 +195,7 @@ def create_boot_volume_extended(ctx, **kwargs): @cli_util.wrap_exceptions def copy_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_backup_id, destination_region, display_name, kms_key_id): - if isinstance(volume_backup_id, six.string_types) and len(volume_backup_id.strip()) == 0: + if isinstance(volume_backup_id, str) and len(volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-backup-id cannot be whitespace or empty string') kwargs = {} @@ -253,7 +252,7 @@ def copy_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def copy_boot_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, boot_volume_backup_id, destination_region, display_name, kms_key_id): - if isinstance(boot_volume_backup_id, six.string_types) and len(boot_volume_backup_id.strip()) == 0: + if isinstance(boot_volume_backup_id, str) and len(boot_volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-backup-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/core/src/oci_cli_blockstorage/generated/blockstorage_cli.py b/services/core/src/oci_cli_blockstorage/generated/blockstorage_cli.py index 9a12ce6e8..2c4a18091 100644 --- a/services/core/src/oci_cli_blockstorage/generated/blockstorage_cli.py +++ b/services/core/src/oci_cli_blockstorage/generated/blockstorage_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -164,7 +163,7 @@ def volume_kms_key_group(): @cli_util.wrap_exceptions def change_boot_volume_backup_compartment(ctx, from_json, boot_volume_backup_id, compartment_id): - if isinstance(boot_volume_backup_id, six.string_types) and len(boot_volume_backup_id.strip()) == 0: + if isinstance(boot_volume_backup_id, str) and len(boot_volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-backup-id cannot be whitespace or empty string') kwargs = {} @@ -192,7 +191,7 @@ def change_boot_volume_backup_compartment(ctx, from_json, boot_volume_backup_id, @cli_util.wrap_exceptions def change_boot_volume_compartment(ctx, from_json, boot_volume_id, compartment_id): - if isinstance(boot_volume_id, six.string_types) and len(boot_volume_id.strip()) == 0: + if isinstance(boot_volume_id, str) and len(boot_volume_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-id cannot be whitespace or empty string') kwargs = {} @@ -220,7 +219,7 @@ def change_boot_volume_compartment(ctx, from_json, boot_volume_id, compartment_i @cli_util.wrap_exceptions def change_volume_backup_compartment(ctx, from_json, volume_backup_id, compartment_id): - if isinstance(volume_backup_id, six.string_types) and len(volume_backup_id.strip()) == 0: + if isinstance(volume_backup_id, str) and len(volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-backup-id cannot be whitespace or empty string') kwargs = {} @@ -248,7 +247,7 @@ def change_volume_backup_compartment(ctx, from_json, volume_backup_id, compartme @cli_util.wrap_exceptions def change_volume_compartment(ctx, from_json, volume_id, compartment_id): - if isinstance(volume_id, six.string_types) and len(volume_id.strip()) == 0: + if isinstance(volume_id, str) and len(volume_id.strip()) == 0: raise click.UsageError('Parameter --volume-id cannot be whitespace or empty string') kwargs = {} @@ -276,7 +275,7 @@ def change_volume_compartment(ctx, from_json, volume_id, compartment_id): @cli_util.wrap_exceptions def change_volume_group_backup_compartment(ctx, from_json, volume_group_backup_id, compartment_id): - if isinstance(volume_group_backup_id, six.string_types) and len(volume_group_backup_id.strip()) == 0: + if isinstance(volume_group_backup_id, str) and len(volume_group_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-backup-id cannot be whitespace or empty string') kwargs = {} @@ -304,7 +303,7 @@ def change_volume_group_backup_compartment(ctx, from_json, volume_group_backup_i @cli_util.wrap_exceptions def change_volume_group_compartment(ctx, from_json, volume_group_id, compartment_id): - if isinstance(volume_group_id, six.string_types) and len(volume_group_id.strip()) == 0: + if isinstance(volume_group_id, str) and len(volume_group_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-id cannot be whitespace or empty string') kwargs = {} @@ -341,7 +340,7 @@ def change_volume_group_compartment(ctx, from_json, volume_group_id, compartment @cli_util.wrap_exceptions def copy_boot_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, boot_volume_backup_id, destination_region, display_name, kms_key_id): - if isinstance(boot_volume_backup_id, six.string_types) and len(boot_volume_backup_id.strip()) == 0: + if isinstance(boot_volume_backup_id, str) and len(boot_volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-backup-id cannot be whitespace or empty string') kwargs = {} @@ -407,7 +406,7 @@ def copy_boot_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def copy_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_backup_id, destination_region, display_name, kms_key_id): - if isinstance(volume_backup_id, six.string_types) and len(volume_backup_id.strip()) == 0: + if isinstance(volume_backup_id, str) and len(volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-backup-id cannot be whitespace or empty string') kwargs = {} @@ -473,7 +472,7 @@ def copy_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def copy_volume_group_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_group_backup_id, destination_region, display_name, kms_key_id): - if isinstance(volume_group_backup_id, six.string_types) and len(volume_group_backup_id.strip()) == 0: + if isinstance(volume_group_backup_id, str) and len(volume_group_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-backup-id cannot be whitespace or empty string') kwargs = {} @@ -2681,7 +2680,7 @@ def create_volume_group_backup(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_boot_volume(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, boot_volume_id, if_match): - if isinstance(boot_volume_id, six.string_types) and len(boot_volume_id.strip()) == 0: + if isinstance(boot_volume_id, str) and len(boot_volume_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-id cannot be whitespace or empty string') kwargs = {} @@ -2744,7 +2743,7 @@ def delete_boot_volume(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_boot_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, boot_volume_backup_id, if_match): - if isinstance(boot_volume_backup_id, six.string_types) and len(boot_volume_backup_id.strip()) == 0: + if isinstance(boot_volume_backup_id, str) and len(boot_volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-backup-id cannot be whitespace or empty string') kwargs = {} @@ -2804,7 +2803,7 @@ def delete_boot_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_boot_volume_kms_key(ctx, from_json, boot_volume_id, if_match): - if isinstance(boot_volume_id, six.string_types) and len(boot_volume_id.strip()) == 0: + if isinstance(boot_volume_id, str) and len(boot_volume_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-id cannot be whitespace or empty string') kwargs = {} @@ -2832,7 +2831,7 @@ def delete_boot_volume_kms_key(ctx, from_json, boot_volume_id, if_match): @cli_util.wrap_exceptions def delete_volume(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_id, if_match): - if isinstance(volume_id, six.string_types) and len(volume_id.strip()) == 0: + if isinstance(volume_id, str) and len(volume_id.strip()) == 0: raise click.UsageError('Parameter --volume-id cannot be whitespace or empty string') kwargs = {} @@ -2895,7 +2894,7 @@ def delete_volume(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_backup_id, if_match): - if isinstance(volume_backup_id, six.string_types) and len(volume_backup_id.strip()) == 0: + if isinstance(volume_backup_id, str) and len(volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-backup-id cannot be whitespace or empty string') kwargs = {} @@ -2957,7 +2956,7 @@ def delete_volume_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_volume_backup_policy(ctx, from_json, policy_id, if_match): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') kwargs = {} @@ -2983,7 +2982,7 @@ def delete_volume_backup_policy(ctx, from_json, policy_id, if_match): @cli_util.wrap_exceptions def delete_volume_backup_policy_assignment(ctx, from_json, policy_assignment_id, if_match): - if isinstance(policy_assignment_id, six.string_types) and len(policy_assignment_id.strip()) == 0: + if isinstance(policy_assignment_id, str) and len(policy_assignment_id.strip()) == 0: raise click.UsageError('Parameter --policy-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -3011,7 +3010,7 @@ def delete_volume_backup_policy_assignment(ctx, from_json, policy_assignment_id, @cli_util.wrap_exceptions def delete_volume_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_group_id, if_match): - if isinstance(volume_group_id, six.string_types) and len(volume_group_id.strip()) == 0: + if isinstance(volume_group_id, str) and len(volume_group_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-id cannot be whitespace or empty string') kwargs = {} @@ -3074,7 +3073,7 @@ def delete_volume_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_volume_group_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_group_backup_id, if_match): - if isinstance(volume_group_backup_id, six.string_types) and len(volume_group_backup_id.strip()) == 0: + if isinstance(volume_group_backup_id, str) and len(volume_group_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-backup-id cannot be whitespace or empty string') kwargs = {} @@ -3134,7 +3133,7 @@ def delete_volume_group_backup(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_volume_kms_key(ctx, from_json, volume_id, if_match): - if isinstance(volume_id, six.string_types) and len(volume_id.strip()) == 0: + if isinstance(volume_id, str) and len(volume_id.strip()) == 0: raise click.UsageError('Parameter --volume-id cannot be whitespace or empty string') kwargs = {} @@ -3157,7 +3156,7 @@ def delete_volume_kms_key(ctx, from_json, volume_id, if_match): @cli_util.wrap_exceptions def get_block_volume_replica(ctx, from_json, block_volume_replica_id): - if isinstance(block_volume_replica_id, six.string_types) and len(block_volume_replica_id.strip()) == 0: + if isinstance(block_volume_replica_id, str) and len(block_volume_replica_id.strip()) == 0: raise click.UsageError('Parameter --block-volume-replica-id cannot be whitespace or empty string') kwargs = {} @@ -3178,7 +3177,7 @@ def get_block_volume_replica(ctx, from_json, block_volume_replica_id): @cli_util.wrap_exceptions def get_boot_volume(ctx, from_json, boot_volume_id): - if isinstance(boot_volume_id, six.string_types) and len(boot_volume_id.strip()) == 0: + if isinstance(boot_volume_id, str) and len(boot_volume_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-id cannot be whitespace or empty string') kwargs = {} @@ -3199,7 +3198,7 @@ def get_boot_volume(ctx, from_json, boot_volume_id): @cli_util.wrap_exceptions def get_boot_volume_backup(ctx, from_json, boot_volume_backup_id): - if isinstance(boot_volume_backup_id, six.string_types) and len(boot_volume_backup_id.strip()) == 0: + if isinstance(boot_volume_backup_id, str) and len(boot_volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-backup-id cannot be whitespace or empty string') kwargs = {} @@ -3221,7 +3220,7 @@ def get_boot_volume_backup(ctx, from_json, boot_volume_backup_id): @cli_util.wrap_exceptions def get_boot_volume_kms_key(ctx, from_json, boot_volume_id, if_match): - if isinstance(boot_volume_id, six.string_types) and len(boot_volume_id.strip()) == 0: + if isinstance(boot_volume_id, str) and len(boot_volume_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-id cannot be whitespace or empty string') kwargs = {} @@ -3244,7 +3243,7 @@ def get_boot_volume_kms_key(ctx, from_json, boot_volume_id, if_match): @cli_util.wrap_exceptions def get_boot_volume_replica(ctx, from_json, boot_volume_replica_id): - if isinstance(boot_volume_replica_id, six.string_types) and len(boot_volume_replica_id.strip()) == 0: + if isinstance(boot_volume_replica_id, str) and len(boot_volume_replica_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-replica-id cannot be whitespace or empty string') kwargs = {} @@ -3265,7 +3264,7 @@ def get_boot_volume_replica(ctx, from_json, boot_volume_replica_id): @cli_util.wrap_exceptions def get_volume(ctx, from_json, volume_id): - if isinstance(volume_id, six.string_types) and len(volume_id.strip()) == 0: + if isinstance(volume_id, str) and len(volume_id.strip()) == 0: raise click.UsageError('Parameter --volume-id cannot be whitespace or empty string') kwargs = {} @@ -3286,7 +3285,7 @@ def get_volume(ctx, from_json, volume_id): @cli_util.wrap_exceptions def get_volume_backup(ctx, from_json, volume_backup_id): - if isinstance(volume_backup_id, six.string_types) and len(volume_backup_id.strip()) == 0: + if isinstance(volume_backup_id, str) and len(volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-backup-id cannot be whitespace or empty string') kwargs = {} @@ -3307,7 +3306,7 @@ def get_volume_backup(ctx, from_json, volume_backup_id): @cli_util.wrap_exceptions def get_volume_backup_policy(ctx, from_json, policy_id): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') kwargs = {} @@ -3354,7 +3353,7 @@ def get_volume_backup_policy_asset_assignment(ctx, from_json, asset_id, limit, p @cli_util.wrap_exceptions def get_volume_backup_policy_assignment(ctx, from_json, policy_assignment_id): - if isinstance(policy_assignment_id, six.string_types) and len(policy_assignment_id.strip()) == 0: + if isinstance(policy_assignment_id, str) and len(policy_assignment_id.strip()) == 0: raise click.UsageError('Parameter --policy-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -3375,7 +3374,7 @@ def get_volume_backup_policy_assignment(ctx, from_json, policy_assignment_id): @cli_util.wrap_exceptions def get_volume_group(ctx, from_json, volume_group_id): - if isinstance(volume_group_id, six.string_types) and len(volume_group_id.strip()) == 0: + if isinstance(volume_group_id, str) and len(volume_group_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-id cannot be whitespace or empty string') kwargs = {} @@ -3396,7 +3395,7 @@ def get_volume_group(ctx, from_json, volume_group_id): @cli_util.wrap_exceptions def get_volume_group_backup(ctx, from_json, volume_group_backup_id): - if isinstance(volume_group_backup_id, six.string_types) and len(volume_group_backup_id.strip()) == 0: + if isinstance(volume_group_backup_id, str) and len(volume_group_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-backup-id cannot be whitespace or empty string') kwargs = {} @@ -3417,7 +3416,7 @@ def get_volume_group_backup(ctx, from_json, volume_group_backup_id): @cli_util.wrap_exceptions def get_volume_group_replica(ctx, from_json, volume_group_replica_id): - if isinstance(volume_group_replica_id, six.string_types) and len(volume_group_replica_id.strip()) == 0: + if isinstance(volume_group_replica_id, str) and len(volume_group_replica_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-replica-id cannot be whitespace or empty string') kwargs = {} @@ -3439,7 +3438,7 @@ def get_volume_group_replica(ctx, from_json, volume_group_replica_id): @cli_util.wrap_exceptions def get_volume_kms_key(ctx, from_json, volume_id, if_match): - if isinstance(volume_id, six.string_types) and len(volume_id.strip()) == 0: + if isinstance(volume_id, str) and len(volume_id.strip()) == 0: raise click.UsageError('Parameter --volume-id cannot be whitespace or empty string') kwargs = {} @@ -4160,7 +4159,7 @@ def list_volumes(ctx, from_json, all_pages, page_size, availability_domain, comp @cli_util.wrap_exceptions def update_boot_volume(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, boot_volume_id, defined_tags, display_name, freeform_tags, size_in_gbs, vpus_per_gb, is_auto_tune_enabled, boot_volume_replicas, autotune_policies, if_match): - if isinstance(boot_volume_id, six.string_types) and len(boot_volume_id.strip()) == 0: + if isinstance(boot_volume_id, str) and len(boot_volume_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or boot_volume_replicas or autotune_policies: @@ -4255,7 +4254,7 @@ def update_boot_volume(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_boot_volume_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, boot_volume_backup_id, defined_tags, display_name, freeform_tags, kms_key_id, retention_period, is_prevent_deletion_enabled, is_retention_lock_enabled, is_indefinite_retention_enabled, if_match): - if isinstance(boot_volume_backup_id, six.string_types) and len(boot_volume_backup_id.strip()) == 0: + if isinstance(boot_volume_backup_id, str) and len(boot_volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-backup-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or retention_period: @@ -4335,7 +4334,7 @@ def update_boot_volume_backup(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_boot_volume_kms_key(ctx, from_json, boot_volume_id, kms_key_id, if_match): - if isinstance(boot_volume_id, six.string_types) and len(boot_volume_id.strip()) == 0: + if isinstance(boot_volume_id, str) and len(boot_volume_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-id cannot be whitespace or empty string') kwargs = {} @@ -4399,7 +4398,7 @@ def update_boot_volume_kms_key(ctx, from_json, boot_volume_id, kms_key_id, if_ma @cli_util.wrap_exceptions def update_volume(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_id, defined_tags, display_name, freeform_tags, vpus_per_gb, size_in_gbs, is_auto_tune_enabled, block_volume_replicas, autotune_policies, is_reservations_enabled, if_match): - if isinstance(volume_id, six.string_types) and len(volume_id.strip()) == 0: + if isinstance(volume_id, str) and len(volume_id.strip()) == 0: raise click.UsageError('Parameter --volume-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or block_volume_replicas or autotune_policies: @@ -4497,7 +4496,7 @@ def update_volume(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_volume_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_backup_id, defined_tags, display_name, freeform_tags, kms_key_id, retention_period, is_prevent_deletion_enabled, is_retention_lock_enabled, is_indefinite_retention_enabled, if_match): - if isinstance(volume_backup_id, six.string_types) and len(volume_backup_id.strip()) == 0: + if isinstance(volume_backup_id, str) and len(volume_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-backup-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or retention_period: @@ -4590,7 +4589,7 @@ def update_volume_backup(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_volume_backup_policy(ctx, from_json, force, policy_id, display_name, destination_region, schedules, defined_tags, freeform_tags, if_match): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') if not force: if schedules or defined_tags or freeform_tags: @@ -4656,7 +4655,7 @@ def update_volume_backup_policy(ctx, from_json, force, policy_id, display_name, @cli_util.wrap_exceptions def update_volume_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_group_id, defined_tags, display_name, freeform_tags, volume_ids, volume_group_replicas, if_match, preserve_volume_replica): - if isinstance(volume_group_id, six.string_types) and len(volume_group_id.strip()) == 0: + if isinstance(volume_group_id, str) and len(volume_group_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or volume_ids or volume_group_replicas: @@ -4743,7 +4742,7 @@ def update_volume_group(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_volume_group_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_group_backup_id, defined_tags, display_name, freeform_tags, retention_period, is_prevent_deletion_enabled, is_retention_lock_enabled, is_indefinite_retention_enabled, if_match): - if isinstance(volume_group_backup_id, six.string_types) and len(volume_group_backup_id.strip()) == 0: + if isinstance(volume_group_backup_id, str) and len(volume_group_backup_id.strip()) == 0: raise click.UsageError('Parameter --volume-group-backup-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or retention_period: @@ -4820,7 +4819,7 @@ def update_volume_group_backup(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_volume_kms_key(ctx, from_json, volume_id, kms_key_id, if_match): - if isinstance(volume_id, six.string_types) and len(volume_id.strip()) == 0: + if isinstance(volume_id, str) and len(volume_id.strip()) == 0: raise click.UsageError('Parameter --volume-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/core/src/oci_cli_compute/compute_cli_extended.py b/services/core/src/oci_cli_compute/compute_cli_extended.py index 60844c7c0..38d01d050 100644 --- a/services/core/src/oci_cli_compute/compute_cli_extended.py +++ b/services/core/src/oci_cli_compute/compute_cli_extended.py @@ -7,7 +7,6 @@ import click import json import re -import six import sys from services.core.src.oci_cli_compute.generated import compute_cli @@ -415,7 +414,7 @@ def export_image_to_object(ctx, from_json, image_id, if_match, namespace, bucket def instance_action_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, action, if_match, delete_local_storage, time_scheduled, allow_dense_reboot_migration): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') if delete_local_storage is not None and not action.lower() == 'rebootmigrate': raise click.UsageError('Parameter --delete-local-storage is for REBOOTMIGRATE actions only') @@ -1022,7 +1021,7 @@ def create_instance_console_connection(ctx, from_json, instance_id, ssh_public_k @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'core', 'class': 'InstanceConsoleConnection'}) @cli_util.wrap_exceptions def get_plink_connection_string(ctx, from_json, instance_console_connection_id, private_key_file, local_vnc_port, ssh_proxy_port): - if isinstance(instance_console_connection_id, six.string_types) and len(instance_console_connection_id.strip()) == 0: + if isinstance(instance_console_connection_id, str) and len(instance_console_connection_id.strip()) == 0: raise click.UsageError('Parameter --instance-console-connection-id cannot be whitespace or empty string') kwargs = {} client = cli_util.build_client('core', 'compute', ctx) @@ -1075,7 +1074,7 @@ def get_plink_connection_string(ctx, from_json, instance_console_connection_id, @cli_util.wrap_exceptions def change_instance_compartment(ctx, instance_id, compartment_id, if_match, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/core/src/oci_cli_compute/generated/compute_cli.py b/services/core/src/oci_cli_compute/generated/compute_cli.py index 812c17de5..65e31b0c8 100644 --- a/services/core/src/oci_cli_compute/generated/compute_cli.py +++ b/services/core/src/oci_cli_compute/generated/compute_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -369,7 +368,7 @@ def console_history_group(): @cli_util.wrap_exceptions def accept_shielded_integrity_policy(ctx, from_json, instance_id, if_match): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -397,10 +396,10 @@ def accept_shielded_integrity_policy(ctx, from_json, instance_id, if_match): @cli_util.wrap_exceptions def add_image_shape_compatibility_entry(ctx, from_json, force, image_id, shape_name, memory_constraints, ocpu_constraints): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') - if isinstance(shape_name, six.string_types) and len(shape_name.strip()) == 0: + if isinstance(shape_name, str) and len(shape_name.strip()) == 0: raise click.UsageError('Parameter --shape-name cannot be whitespace or empty string') if not force: if memory_constraints or ocpu_constraints: @@ -440,7 +439,7 @@ def add_image_shape_compatibility_entry(ctx, from_json, force, image_id, shape_n @cli_util.wrap_exceptions def apply_host_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_host_id, if_match): - if isinstance(compute_host_id, six.string_types) and len(compute_host_id.strip()) == 0: + if isinstance(compute_host_id, str) and len(compute_host_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-id cannot be whitespace or empty string') kwargs = {} @@ -550,7 +549,7 @@ def attach_boot_volume(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def attach_compute_host_group_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_host_id, compute_host_group_id, if_match): - if isinstance(compute_host_id, six.string_types) and len(compute_host_id.strip()) == 0: + if isinstance(compute_host_id, str) and len(compute_host_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-id cannot be whitespace or empty string') kwargs = {} @@ -1089,7 +1088,7 @@ def capture_console_history(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def change_compute_capacity_reservation_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, capacity_reservation_id, compartment_id, if_match): - if isinstance(capacity_reservation_id, six.string_types) and len(capacity_reservation_id.strip()) == 0: + if isinstance(capacity_reservation_id, str) and len(capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --capacity-reservation-id cannot be whitespace or empty string') kwargs = {} @@ -1158,7 +1157,7 @@ def change_compute_capacity_reservation_compartment(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def change_compute_capacity_topology_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_capacity_topology_id, compartment_id, if_match): - if isinstance(compute_capacity_topology_id, six.string_types) and len(compute_capacity_topology_id.strip()) == 0: + if isinstance(compute_capacity_topology_id, str) and len(compute_capacity_topology_id.strip()) == 0: raise click.UsageError('Parameter --compute-capacity-topology-id cannot be whitespace or empty string') kwargs = {} @@ -1226,7 +1225,7 @@ def change_compute_capacity_topology_compartment(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_compute_cluster_compartment(ctx, from_json, compute_cluster_id, compartment_id, if_match): - if isinstance(compute_cluster_id, six.string_types) and len(compute_cluster_id.strip()) == 0: + if isinstance(compute_cluster_id, str) and len(compute_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1257,7 +1256,7 @@ def change_compute_cluster_compartment(ctx, from_json, compute_cluster_id, compa @cli_util.wrap_exceptions def change_compute_gpu_memory_cluster_compartment(ctx, from_json, compute_gpu_memory_cluster_id, compartment_id, if_match): - if isinstance(compute_gpu_memory_cluster_id, six.string_types) and len(compute_gpu_memory_cluster_id.strip()) == 0: + if isinstance(compute_gpu_memory_cluster_id, str) and len(compute_gpu_memory_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-gpu-memory-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1288,7 +1287,7 @@ def change_compute_gpu_memory_cluster_compartment(ctx, from_json, compute_gpu_me @cli_util.wrap_exceptions def change_compute_gpu_memory_fabric_compartment(ctx, from_json, compute_gpu_memory_fabric_id, compartment_id, if_match): - if isinstance(compute_gpu_memory_fabric_id, six.string_types) and len(compute_gpu_memory_fabric_id.strip()) == 0: + if isinstance(compute_gpu_memory_fabric_id, str) and len(compute_gpu_memory_fabric_id.strip()) == 0: raise click.UsageError('Parameter --compute-gpu-memory-fabric-id cannot be whitespace or empty string') kwargs = {} @@ -1322,7 +1321,7 @@ def change_compute_gpu_memory_fabric_compartment(ctx, from_json, compute_gpu_mem @cli_util.wrap_exceptions def change_compute_host_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_host_id, compartment_id, if_match): - if isinstance(compute_host_id, six.string_types) and len(compute_host_id.strip()) == 0: + if isinstance(compute_host_id, str) and len(compute_host_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-id cannot be whitespace or empty string') kwargs = {} @@ -1391,7 +1390,7 @@ def change_compute_host_compartment(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def change_compute_host_group_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_host_group_id, compartment_id, if_match): - if isinstance(compute_host_group_id, six.string_types) and len(compute_host_group_id.strip()) == 0: + if isinstance(compute_host_group_id, str) and len(compute_host_group_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-group-id cannot be whitespace or empty string') kwargs = {} @@ -1457,7 +1456,7 @@ def change_compute_host_group_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_compute_image_capability_schema_compartment(ctx, from_json, compute_image_capability_schema_id, compartment_id, if_match): - if isinstance(compute_image_capability_schema_id, six.string_types) and len(compute_image_capability_schema_id.strip()) == 0: + if isinstance(compute_image_capability_schema_id, str) and len(compute_image_capability_schema_id.strip()) == 0: raise click.UsageError('Parameter --compute-image-capability-schema-id cannot be whitespace or empty string') kwargs = {} @@ -1491,7 +1490,7 @@ def change_compute_image_capability_schema_compartment(ctx, from_json, compute_i @cli_util.wrap_exceptions def change_dedicated_vm_host_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dedicated_vm_host_id, compartment_id, if_match): - if isinstance(dedicated_vm_host_id, six.string_types) and len(dedicated_vm_host_id.strip()) == 0: + if isinstance(dedicated_vm_host_id, str) and len(dedicated_vm_host_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-vm-host-id cannot be whitespace or empty string') kwargs = {} @@ -1557,7 +1556,7 @@ def change_dedicated_vm_host_compartment(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def change_image_compartment(ctx, from_json, image_id, compartment_id, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -1593,7 +1592,7 @@ def change_image_compartment(ctx, from_json, image_id, compartment_id, if_match) @cli_util.wrap_exceptions def change_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, compartment_id, if_match): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -1661,7 +1660,7 @@ def change_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def check_host_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_host_id, if_match): - if isinstance(compute_host_id, six.string_types) and len(compute_host_id.strip()) == 0: + if isinstance(compute_host_id, str) and len(compute_host_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-id cannot be whitespace or empty string') kwargs = {} @@ -3391,7 +3390,7 @@ def delete_app_catalog_subscription(ctx, from_json, listing_id, compartment_id, @cli_util.wrap_exceptions def delete_compute_capacity_reservation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, capacity_reservation_id, if_match): - if isinstance(capacity_reservation_id, six.string_types) and len(capacity_reservation_id.strip()) == 0: + if isinstance(capacity_reservation_id, str) and len(capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --capacity-reservation-id cannot be whitespace or empty string') kwargs = {} @@ -3448,7 +3447,7 @@ def delete_compute_capacity_reservation(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_compute_capacity_topology(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_capacity_topology_id, if_match): - if isinstance(compute_capacity_topology_id, six.string_types) and len(compute_capacity_topology_id.strip()) == 0: + if isinstance(compute_capacity_topology_id, str) and len(compute_capacity_topology_id.strip()) == 0: raise click.UsageError('Parameter --compute-capacity-topology-id cannot be whitespace or empty string') kwargs = {} @@ -3507,7 +3506,7 @@ def delete_compute_capacity_topology(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_compute_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_cluster_id, if_match): - if isinstance(compute_cluster_id, six.string_types) and len(compute_cluster_id.strip()) == 0: + if isinstance(compute_cluster_id, str) and len(compute_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -3571,7 +3570,7 @@ def delete_compute_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_compute_gpu_memory_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_gpu_memory_cluster_id, if_match): - if isinstance(compute_gpu_memory_cluster_id, six.string_types) and len(compute_gpu_memory_cluster_id.strip()) == 0: + if isinstance(compute_gpu_memory_cluster_id, str) and len(compute_gpu_memory_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-gpu-memory-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -3628,7 +3627,7 @@ def delete_compute_gpu_memory_cluster(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_compute_host_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_host_group_id, if_match): - if isinstance(compute_host_group_id, six.string_types) and len(compute_host_group_id.strip()) == 0: + if isinstance(compute_host_group_id, str) and len(compute_host_group_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-group-id cannot be whitespace or empty string') kwargs = {} @@ -3692,7 +3691,7 @@ def delete_compute_host_group(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_compute_image_capability_schema(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_image_capability_schema_id, if_match): - if isinstance(compute_image_capability_schema_id, six.string_types) and len(compute_image_capability_schema_id.strip()) == 0: + if isinstance(compute_image_capability_schema_id, str) and len(compute_image_capability_schema_id.strip()) == 0: raise click.UsageError('Parameter --compute-image-capability-schema-id cannot be whitespace or empty string') kwargs = {} @@ -3755,7 +3754,7 @@ def delete_compute_image_capability_schema(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_console_history(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_console_history_id, if_match): - if isinstance(instance_console_history_id, six.string_types) and len(instance_console_history_id.strip()) == 0: + if isinstance(instance_console_history_id, str) and len(instance_console_history_id.strip()) == 0: raise click.UsageError('Parameter --instance-console-history-id cannot be whitespace or empty string') kwargs = {} @@ -3819,7 +3818,7 @@ def delete_console_history(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_dedicated_vm_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dedicated_vm_host_id): - if isinstance(dedicated_vm_host_id, six.string_types) and len(dedicated_vm_host_id.strip()) == 0: + if isinstance(dedicated_vm_host_id, str) and len(dedicated_vm_host_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-vm-host-id cannot be whitespace or empty string') kwargs = {} @@ -3874,7 +3873,7 @@ def delete_dedicated_vm_host(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_image(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, image_id, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -3937,7 +3936,7 @@ def delete_image(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_instance_console_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_console_connection_id, if_match): - if isinstance(instance_console_connection_id, six.string_types) and len(instance_console_connection_id.strip()) == 0: + if isinstance(instance_console_connection_id, str) and len(instance_console_connection_id.strip()) == 0: raise click.UsageError('Parameter --instance-console-connection-id cannot be whitespace or empty string') kwargs = {} @@ -4002,7 +4001,7 @@ def delete_instance_console_connection(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def detach_boot_volume(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, boot_volume_attachment_id, if_match): - if isinstance(boot_volume_attachment_id, six.string_types) and len(boot_volume_attachment_id.strip()) == 0: + if isinstance(boot_volume_attachment_id, str) and len(boot_volume_attachment_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -4065,7 +4064,7 @@ def detach_boot_volume(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def detach_compute_host_group_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_host_id, compute_host_group_id, if_match): - if isinstance(compute_host_id, six.string_types) and len(compute_host_id.strip()) == 0: + if isinstance(compute_host_id, str) and len(compute_host_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-id cannot be whitespace or empty string') kwargs = {} @@ -4136,7 +4135,7 @@ def detach_compute_host_group_host(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def detach_vnic(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vnic_attachment_id, if_match): - if isinstance(vnic_attachment_id, six.string_types) and len(vnic_attachment_id.strip()) == 0: + if isinstance(vnic_attachment_id, str) and len(vnic_attachment_id.strip()) == 0: raise click.UsageError('Parameter --vnic-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -4201,7 +4200,7 @@ def detach_vnic(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def detach_volume(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_attachment_id, if_match): - if isinstance(volume_attachment_id, six.string_types) and len(volume_attachment_id.strip()) == 0: + if isinstance(volume_attachment_id, str) and len(volume_attachment_id.strip()) == 0: raise click.UsageError('Parameter --volume-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -4268,7 +4267,7 @@ def detach_volume(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def export_image(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, image_id, destination_type, export_format, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -4338,7 +4337,7 @@ def export_image(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def export_image_export_image_via_object_storage_uri_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, image_id, destination_uri, export_format, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -4412,7 +4411,7 @@ def export_image_export_image_via_object_storage_uri_details(ctx, from_json, wai @cli_util.wrap_exceptions def export_image_export_image_via_object_storage_tuple_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, image_id, bucket_name, namespace_name, object_name, export_format, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -4470,7 +4469,7 @@ def export_image_export_image_via_object_storage_tuple_details(ctx, from_json, w @cli_util.wrap_exceptions def get_app_catalog_listing(ctx, from_json, listing_id): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') kwargs = {} @@ -4492,10 +4491,10 @@ def get_app_catalog_listing(ctx, from_json, listing_id): @cli_util.wrap_exceptions def get_app_catalog_listing_agreements(ctx, from_json, listing_id, resource_version): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') - if isinstance(resource_version, six.string_types) and len(resource_version.strip()) == 0: + if isinstance(resource_version, str) and len(resource_version.strip()) == 0: raise click.UsageError('Parameter --resource-version cannot be whitespace or empty string') kwargs = {} @@ -4518,10 +4517,10 @@ def get_app_catalog_listing_agreements(ctx, from_json, listing_id, resource_vers @cli_util.wrap_exceptions def get_app_catalog_listing_resource_version(ctx, from_json, listing_id, resource_version): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') - if isinstance(resource_version, six.string_types) and len(resource_version.strip()) == 0: + if isinstance(resource_version, str) and len(resource_version.strip()) == 0: raise click.UsageError('Parameter --resource-version cannot be whitespace or empty string') kwargs = {} @@ -4543,7 +4542,7 @@ def get_app_catalog_listing_resource_version(ctx, from_json, listing_id, resourc @cli_util.wrap_exceptions def get_boot_volume_attachment(ctx, from_json, boot_volume_attachment_id): - if isinstance(boot_volume_attachment_id, six.string_types) and len(boot_volume_attachment_id.strip()) == 0: + if isinstance(boot_volume_attachment_id, str) and len(boot_volume_attachment_id.strip()) == 0: raise click.UsageError('Parameter --boot-volume-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -4564,7 +4563,7 @@ def get_boot_volume_attachment(ctx, from_json, boot_volume_attachment_id): @cli_util.wrap_exceptions def get_compute_capacity_reservation(ctx, from_json, capacity_reservation_id): - if isinstance(capacity_reservation_id, six.string_types) and len(capacity_reservation_id.strip()) == 0: + if isinstance(capacity_reservation_id, str) and len(capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --capacity-reservation-id cannot be whitespace or empty string') kwargs = {} @@ -4586,7 +4585,7 @@ def get_compute_capacity_reservation(ctx, from_json, capacity_reservation_id): @cli_util.wrap_exceptions def get_compute_capacity_topology(ctx, from_json, compute_capacity_topology_id): - if isinstance(compute_capacity_topology_id, six.string_types) and len(compute_capacity_topology_id.strip()) == 0: + if isinstance(compute_capacity_topology_id, str) and len(compute_capacity_topology_id.strip()) == 0: raise click.UsageError('Parameter --compute-capacity-topology-id cannot be whitespace or empty string') kwargs = {} @@ -4608,7 +4607,7 @@ def get_compute_capacity_topology(ctx, from_json, compute_capacity_topology_id): @cli_util.wrap_exceptions def get_compute_cluster(ctx, from_json, compute_cluster_id): - if isinstance(compute_cluster_id, six.string_types) and len(compute_cluster_id.strip()) == 0: + if isinstance(compute_cluster_id, str) and len(compute_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -4630,7 +4629,7 @@ def get_compute_cluster(ctx, from_json, compute_cluster_id): @cli_util.wrap_exceptions def get_compute_global_image_capability_schema(ctx, from_json, compute_global_image_capability_schema_id): - if isinstance(compute_global_image_capability_schema_id, six.string_types) and len(compute_global_image_capability_schema_id.strip()) == 0: + if isinstance(compute_global_image_capability_schema_id, str) and len(compute_global_image_capability_schema_id.strip()) == 0: raise click.UsageError('Parameter --compute-global-image-capability-schema-id cannot be whitespace or empty string') kwargs = {} @@ -4652,10 +4651,10 @@ def get_compute_global_image_capability_schema(ctx, from_json, compute_global_im @cli_util.wrap_exceptions def get_compute_global_image_capability_schema_version(ctx, from_json, compute_global_image_capability_schema_id, compute_global_image_capability_schema_version_name): - if isinstance(compute_global_image_capability_schema_id, six.string_types) and len(compute_global_image_capability_schema_id.strip()) == 0: + if isinstance(compute_global_image_capability_schema_id, str) and len(compute_global_image_capability_schema_id.strip()) == 0: raise click.UsageError('Parameter --compute-global-image-capability-schema-id cannot be whitespace or empty string') - if isinstance(compute_global_image_capability_schema_version_name, six.string_types) and len(compute_global_image_capability_schema_version_name.strip()) == 0: + if isinstance(compute_global_image_capability_schema_version_name, str) and len(compute_global_image_capability_schema_version_name.strip()) == 0: raise click.UsageError('Parameter --compute-global-image-capability-schema-version-name cannot be whitespace or empty string') kwargs = {} @@ -4677,7 +4676,7 @@ def get_compute_global_image_capability_schema_version(ctx, from_json, compute_g @cli_util.wrap_exceptions def get_compute_gpu_memory_cluster(ctx, from_json, compute_gpu_memory_cluster_id): - if isinstance(compute_gpu_memory_cluster_id, six.string_types) and len(compute_gpu_memory_cluster_id.strip()) == 0: + if isinstance(compute_gpu_memory_cluster_id, str) and len(compute_gpu_memory_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-gpu-memory-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -4699,7 +4698,7 @@ def get_compute_gpu_memory_cluster(ctx, from_json, compute_gpu_memory_cluster_id @cli_util.wrap_exceptions def get_compute_gpu_memory_fabric(ctx, from_json, compute_gpu_memory_fabric_id): - if isinstance(compute_gpu_memory_fabric_id, six.string_types) and len(compute_gpu_memory_fabric_id.strip()) == 0: + if isinstance(compute_gpu_memory_fabric_id, str) and len(compute_gpu_memory_fabric_id.strip()) == 0: raise click.UsageError('Parameter --compute-gpu-memory-fabric-id cannot be whitespace or empty string') kwargs = {} @@ -4721,7 +4720,7 @@ def get_compute_gpu_memory_fabric(ctx, from_json, compute_gpu_memory_fabric_id): @cli_util.wrap_exceptions def get_compute_host(ctx, from_json, compute_host_id): - if isinstance(compute_host_id, six.string_types) and len(compute_host_id.strip()) == 0: + if isinstance(compute_host_id, str) and len(compute_host_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-id cannot be whitespace or empty string') kwargs = {} @@ -4743,7 +4742,7 @@ def get_compute_host(ctx, from_json, compute_host_id): @cli_util.wrap_exceptions def get_compute_host_group(ctx, from_json, compute_host_group_id): - if isinstance(compute_host_group_id, six.string_types) and len(compute_host_group_id.strip()) == 0: + if isinstance(compute_host_group_id, str) and len(compute_host_group_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-group-id cannot be whitespace or empty string') kwargs = {} @@ -4766,7 +4765,7 @@ def get_compute_host_group(ctx, from_json, compute_host_group_id): @cli_util.wrap_exceptions def get_compute_image_capability_schema(ctx, from_json, compute_image_capability_schema_id, is_merge_enabled): - if isinstance(compute_image_capability_schema_id, six.string_types) and len(compute_image_capability_schema_id.strip()) == 0: + if isinstance(compute_image_capability_schema_id, str) and len(compute_image_capability_schema_id.strip()) == 0: raise click.UsageError('Parameter --compute-image-capability-schema-id cannot be whitespace or empty string') kwargs = {} @@ -4789,7 +4788,7 @@ def get_compute_image_capability_schema(ctx, from_json, compute_image_capability @cli_util.wrap_exceptions def get_console_history(ctx, from_json, instance_console_history_id): - if isinstance(instance_console_history_id, six.string_types) and len(instance_console_history_id.strip()) == 0: + if isinstance(instance_console_history_id, str) and len(instance_console_history_id.strip()) == 0: raise click.UsageError('Parameter --instance-console-history-id cannot be whitespace or empty string') kwargs = {} @@ -4813,7 +4812,7 @@ def get_console_history(ctx, from_json, instance_console_history_id): @cli_util.wrap_exceptions def get_console_history_content(ctx, from_json, file, instance_console_history_id, offset, length): - if isinstance(instance_console_history_id, six.string_types) and len(instance_console_history_id.strip()) == 0: + if isinstance(instance_console_history_id, str) and len(instance_console_history_id.strip()) == 0: raise click.UsageError('Parameter --instance-console-history-id cannot be whitespace or empty string') kwargs = {} @@ -4838,7 +4837,7 @@ def get_console_history_content(ctx, from_json, file, instance_console_history_i @cli_util.wrap_exceptions def get_dedicated_vm_host(ctx, from_json, dedicated_vm_host_id): - if isinstance(dedicated_vm_host_id, six.string_types) and len(dedicated_vm_host_id.strip()) == 0: + if isinstance(dedicated_vm_host_id, str) and len(dedicated_vm_host_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-vm-host-id cannot be whitespace or empty string') kwargs = {} @@ -4860,7 +4859,7 @@ def get_dedicated_vm_host(ctx, from_json, dedicated_vm_host_id): @cli_util.wrap_exceptions def get_firmware_bundle(ctx, from_json, firmware_bundle_id): - if isinstance(firmware_bundle_id, six.string_types) and len(firmware_bundle_id.strip()) == 0: + if isinstance(firmware_bundle_id, str) and len(firmware_bundle_id.strip()) == 0: raise click.UsageError('Parameter --firmware-bundle-id cannot be whitespace or empty string') kwargs = {} @@ -4882,7 +4881,7 @@ def get_firmware_bundle(ctx, from_json, firmware_bundle_id): @cli_util.wrap_exceptions def get_image(ctx, from_json, image_id): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -4904,10 +4903,10 @@ def get_image(ctx, from_json, image_id): @cli_util.wrap_exceptions def get_image_shape_compatibility_entry(ctx, from_json, image_id, shape_name): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') - if isinstance(shape_name, six.string_types) and len(shape_name.strip()) == 0: + if isinstance(shape_name, str) and len(shape_name.strip()) == 0: raise click.UsageError('Parameter --shape-name cannot be whitespace or empty string') kwargs = {} @@ -4932,7 +4931,7 @@ def get_image_shape_compatibility_entry(ctx, from_json, image_id, shape_name): @cli_util.wrap_exceptions def get_instance(ctx, from_json, instance_id): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -4953,7 +4952,7 @@ def get_instance(ctx, from_json, instance_id): @cli_util.wrap_exceptions def get_instance_console_connection(ctx, from_json, instance_console_connection_id): - if isinstance(instance_console_connection_id, six.string_types) and len(instance_console_connection_id.strip()) == 0: + if isinstance(instance_console_connection_id, str) and len(instance_console_connection_id.strip()) == 0: raise click.UsageError('Parameter --instance-console-connection-id cannot be whitespace or empty string') kwargs = {} @@ -4974,7 +4973,7 @@ def get_instance_console_connection(ctx, from_json, instance_console_connection_ @cli_util.wrap_exceptions def get_instance_maintenance_event(ctx, from_json, instance_maintenance_event_id): - if isinstance(instance_maintenance_event_id, six.string_types) and len(instance_maintenance_event_id.strip()) == 0: + if isinstance(instance_maintenance_event_id, str) and len(instance_maintenance_event_id.strip()) == 0: raise click.UsageError('Parameter --instance-maintenance-event-id cannot be whitespace or empty string') kwargs = {} @@ -4996,7 +4995,7 @@ def get_instance_maintenance_event(ctx, from_json, instance_maintenance_event_id @cli_util.wrap_exceptions def get_instance_maintenance_reboot(ctx, from_json, instance_id): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -5018,7 +5017,7 @@ def get_instance_maintenance_reboot(ctx, from_json, instance_id): @cli_util.wrap_exceptions def get_measured_boot_report(ctx, from_json, instance_id): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -5040,7 +5039,7 @@ def get_measured_boot_report(ctx, from_json, instance_id): @cli_util.wrap_exceptions def get_vnic_attachment(ctx, from_json, vnic_attachment_id): - if isinstance(vnic_attachment_id, six.string_types) and len(vnic_attachment_id.strip()) == 0: + if isinstance(vnic_attachment_id, str) and len(vnic_attachment_id.strip()) == 0: raise click.UsageError('Parameter --vnic-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -5061,7 +5060,7 @@ def get_vnic_attachment(ctx, from_json, vnic_attachment_id): @cli_util.wrap_exceptions def get_volume_attachment(ctx, from_json, volume_attachment_id): - if isinstance(volume_attachment_id, six.string_types) and len(volume_attachment_id.strip()) == 0: + if isinstance(volume_attachment_id, str) and len(volume_attachment_id.strip()) == 0: raise click.UsageError('Parameter --volume-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -5082,7 +5081,7 @@ def get_volume_attachment(ctx, from_json, volume_attachment_id): @cli_util.wrap_exceptions def get_windows_instance_initial_credentials(ctx, from_json, instance_id): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -5129,7 +5128,7 @@ def get_windows_instance_initial_credentials(ctx, from_json, instance_id): @cli_util.wrap_exceptions def instance_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, action, action_type, if_match): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -5213,7 +5212,7 @@ def instance_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def instance_action_reset_action_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, action, if_match, allow_dense_reboot_migration): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -5298,7 +5297,7 @@ def instance_action_reset_action_details(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def instance_action_reboot_migrate_action_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, action, if_match, delete_local_storage, time_scheduled): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -5389,7 +5388,7 @@ def instance_action_reboot_migrate_action_details(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def instance_action_soft_reset_action_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, action, if_match, allow_dense_reboot_migration): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -9661,7 +9660,7 @@ def list_app_catalog_listing_resource_versions(ctx, from_json, all_pages, page_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') kwargs = {} @@ -9971,7 +9970,7 @@ def list_compute_capacity_reservation_instances(ctx, from_json, all_pages, page_ if sort_by and not availability_domain and not all_pages: raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter') - if isinstance(capacity_reservation_id, six.string_types) and len(capacity_reservation_id.strip()) == 0: + if isinstance(capacity_reservation_id, str) and len(capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --capacity-reservation-id cannot be whitespace or empty string') kwargs = {} @@ -10186,7 +10185,7 @@ def list_compute_capacity_topology_compute_bare_metal_hosts(ctx, from_json, all_ if sort_by and not availability_domain and not all_pages: raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter') - if isinstance(compute_capacity_topology_id, six.string_types) and len(compute_capacity_topology_id.strip()) == 0: + if isinstance(compute_capacity_topology_id, str) and len(compute_capacity_topology_id.strip()) == 0: raise click.UsageError('Parameter --compute-capacity-topology-id cannot be whitespace or empty string') kwargs = {} @@ -10263,7 +10262,7 @@ def list_compute_capacity_topology_compute_hpc_islands(ctx, from_json, all_pages if sort_by and not availability_domain and not all_pages: raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter') - if isinstance(compute_capacity_topology_id, six.string_types) and len(compute_capacity_topology_id.strip()) == 0: + if isinstance(compute_capacity_topology_id, str) and len(compute_capacity_topology_id.strip()) == 0: raise click.UsageError('Parameter --compute-capacity-topology-id cannot be whitespace or empty string') kwargs = {} @@ -10335,7 +10334,7 @@ def list_compute_capacity_topology_compute_network_blocks(ctx, from_json, all_pa if sort_by and not availability_domain and not all_pages: raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter') - if isinstance(compute_capacity_topology_id, six.string_types) and len(compute_capacity_topology_id.strip()) == 0: + if isinstance(compute_capacity_topology_id, str) and len(compute_capacity_topology_id.strip()) == 0: raise click.UsageError('Parameter --compute-capacity-topology-id cannot be whitespace or empty string') kwargs = {} @@ -10471,7 +10470,7 @@ def list_compute_global_image_capability_schema_versions(ctx, from_json, all_pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(compute_global_image_capability_schema_id, six.string_types) and len(compute_global_image_capability_schema_id.strip()) == 0: + if isinstance(compute_global_image_capability_schema_id, str) and len(compute_global_image_capability_schema_id.strip()) == 0: raise click.UsageError('Parameter --compute-global-image-capability-schema-id cannot be whitespace or empty string') kwargs = {} @@ -10592,7 +10591,7 @@ def list_compute_gpu_memory_cluster_instances(ctx, from_json, all_pages, page_si if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(compute_gpu_memory_cluster_id, six.string_types) and len(compute_gpu_memory_cluster_id.strip()) == 0: + if isinstance(compute_gpu_memory_cluster_id, str) and len(compute_gpu_memory_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-gpu-memory-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -11143,7 +11142,7 @@ def list_dedicated_vm_host_instances(ctx, from_json, all_pages, page_size, compa if sort_by and not availability_domain and not all_pages: raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter') - if isinstance(dedicated_vm_host_id, six.string_types) and len(dedicated_vm_host_id.strip()) == 0: + if isinstance(dedicated_vm_host_id, str) and len(dedicated_vm_host_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-vm-host-id cannot be whitespace or empty string') kwargs = {} @@ -11412,7 +11411,7 @@ def list_image_shape_compatibility_entries(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') kwargs = {} @@ -11605,7 +11604,7 @@ def list_instance_devices(ctx, from_json, all_pages, page_size, instance_id, is_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -11995,10 +11994,10 @@ def list_volume_attachments(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def remove_image_shape_compatibility_entry(ctx, from_json, image_id, shape_name): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') - if isinstance(shape_name, six.string_types) and len(shape_name.strip()) == 0: + if isinstance(shape_name, str) and len(shape_name.strip()) == 0: raise click.UsageError('Parameter --shape-name cannot be whitespace or empty string') kwargs = {} @@ -12034,7 +12033,7 @@ def remove_image_shape_compatibility_entry(ctx, from_json, image_id, shape_name) @cli_util.wrap_exceptions def terminate_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, if_match, preserve_boot_volume, preserve_data_volumes_created_at_launch, recycle_level): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -12109,7 +12108,7 @@ def terminate_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_compute_capacity_reservation(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, capacity_reservation_id, defined_tags, display_name, freeform_tags, is_default_reservation, instance_reservation_configs, if_match): - if isinstance(capacity_reservation_id, six.string_types) and len(capacity_reservation_id.strip()) == 0: + if isinstance(capacity_reservation_id, str) and len(capacity_reservation_id.strip()) == 0: raise click.UsageError('Parameter --capacity-reservation-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or instance_reservation_configs: @@ -12204,7 +12203,7 @@ def update_compute_capacity_reservation(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_compute_capacity_topology(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_capacity_topology_id, capacity_source, defined_tags, display_name, freeform_tags, if_match): - if isinstance(compute_capacity_topology_id, six.string_types) and len(compute_capacity_topology_id.strip()) == 0: + if isinstance(compute_capacity_topology_id, str) and len(compute_capacity_topology_id.strip()) == 0: raise click.UsageError('Parameter --compute-capacity-topology-id cannot be whitespace or empty string') if not force: if capacity_source or defined_tags or freeform_tags: @@ -12295,7 +12294,7 @@ def update_compute_capacity_topology(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_compute_capacity_topology_update_dedicated_capacity_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_capacity_topology_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(compute_capacity_topology_id, six.string_types) and len(compute_capacity_topology_id.strip()) == 0: + if isinstance(compute_capacity_topology_id, str) and len(compute_capacity_topology_id.strip()) == 0: raise click.UsageError('Parameter --compute-capacity-topology-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -12391,7 +12390,7 @@ def update_compute_capacity_topology_update_dedicated_capacity_source_details(ct @cli_util.wrap_exceptions def update_compute_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_cluster_id, display_name, defined_tags, freeform_tags, placement_constraint_details, if_match): - if isinstance(compute_cluster_id, six.string_types) and len(compute_cluster_id.strip()) == 0: + if isinstance(compute_cluster_id, str) and len(compute_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-cluster-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or placement_constraint_details: @@ -12475,7 +12474,7 @@ def update_compute_cluster(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_compute_cluster_host_group_placement_constraint_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_cluster_id, placement_constraint_details_compute_host_group_id, display_name, defined_tags, freeform_tags, if_match): - if isinstance(compute_cluster_id, six.string_types) and len(compute_cluster_id.strip()) == 0: + if isinstance(compute_cluster_id, str) and len(compute_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-cluster-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -12573,7 +12572,7 @@ def update_compute_cluster_host_group_placement_constraint_details(ctx, from_jso @cli_util.wrap_exceptions def update_compute_cluster_compute_cluster_placement_constraint_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_cluster_id, display_name, defined_tags, freeform_tags, if_match, placement_constraint_details_hpc_island_id, placement_constraint_details_target_network_block_ids, placement_constraint_details_target_memory_fabric_ids, placement_constraint_details_logical_placement_constraint): - if isinstance(compute_cluster_id, six.string_types) and len(compute_cluster_id.strip()) == 0: + if isinstance(compute_cluster_id, str) and len(compute_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-cluster-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -12669,7 +12668,7 @@ def update_compute_cluster_compute_cluster_placement_constraint_details(ctx, fro @cli_util.wrap_exceptions def update_compute_cluster_compute_bare_metal_host_placement_constraint_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_cluster_id, placement_constraint_details_compute_bare_metal_host_id, display_name, defined_tags, freeform_tags, if_match): - if isinstance(compute_cluster_id, six.string_types) and len(compute_cluster_id.strip()) == 0: + if isinstance(compute_cluster_id, str) and len(compute_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-cluster-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -12753,7 +12752,7 @@ def update_compute_cluster_compute_bare_metal_host_placement_constraint_details( @cli_util.wrap_exceptions def update_compute_gpu_memory_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_gpu_memory_cluster_id, instance_configuration_id, size, defined_tags, freeform_tags, display_name, gpu_memory_cluster_scale_config, private_ip_ids, if_match): - if isinstance(compute_gpu_memory_cluster_id, six.string_types) and len(compute_gpu_memory_cluster_id.strip()) == 0: + if isinstance(compute_gpu_memory_cluster_id, str) and len(compute_gpu_memory_cluster_id.strip()) == 0: raise click.UsageError('Parameter --compute-gpu-memory-cluster-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or gpu_memory_cluster_scale_config or private_ip_ids: @@ -12842,7 +12841,7 @@ def update_compute_gpu_memory_cluster(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_compute_gpu_memory_fabric(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_gpu_memory_fabric_id, defined_tags, freeform_tags, display_name, memory_fabric_preferences, if_match): - if isinstance(compute_gpu_memory_fabric_id, six.string_types) and len(compute_gpu_memory_fabric_id.strip()) == 0: + if isinstance(compute_gpu_memory_fabric_id, str) and len(compute_gpu_memory_fabric_id.strip()) == 0: raise click.UsageError('Parameter --compute-gpu-memory-fabric-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or memory_fabric_preferences: @@ -12921,7 +12920,7 @@ def update_compute_gpu_memory_fabric(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_compute_host(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_host_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(compute_host_id, six.string_types) and len(compute_host_id.strip()) == 0: + if isinstance(compute_host_id, str) and len(compute_host_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -13013,7 +13012,7 @@ def update_compute_host(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_compute_host_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_host_group_id, display_name, configurations, is_targeted_placement_required, defined_tags, freeform_tags, if_match): - if isinstance(compute_host_group_id, six.string_types) and len(compute_host_group_id.strip()) == 0: + if isinstance(compute_host_group_id, str) and len(compute_host_group_id.strip()) == 0: raise click.UsageError('Parameter --compute-host-group-id cannot be whitespace or empty string') if not force: if configurations or defined_tags or freeform_tags: @@ -13098,7 +13097,7 @@ def update_compute_host_group(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_compute_image_capability_schema(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_image_capability_schema_id, display_name, freeform_tags, schema_data, defined_tags, if_match): - if isinstance(compute_image_capability_schema_id, six.string_types) and len(compute_image_capability_schema_id.strip()) == 0: + if isinstance(compute_image_capability_schema_id, str) and len(compute_image_capability_schema_id.strip()) == 0: raise click.UsageError('Parameter --compute-image-capability-schema-id cannot be whitespace or empty string') if not force: if freeform_tags or schema_data or defined_tags: @@ -13176,7 +13175,7 @@ def update_compute_image_capability_schema(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_console_history(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_console_history_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(instance_console_history_id, six.string_types) and len(instance_console_history_id.strip()) == 0: + if isinstance(instance_console_history_id, str) and len(instance_console_history_id.strip()) == 0: raise click.UsageError('Parameter --instance-console-history-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -13251,7 +13250,7 @@ def update_console_history(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_dedicated_vm_host(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dedicated_vm_host_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(dedicated_vm_host_id, six.string_types) and len(dedicated_vm_host_id.strip()) == 0: + if isinstance(dedicated_vm_host_id, str) and len(dedicated_vm_host_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-vm-host-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -13333,7 +13332,7 @@ def update_dedicated_vm_host(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_image(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, image_id, defined_tags, display_name, freeform_tags, operating_system, operating_system_version, if_match): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -13474,7 +13473,7 @@ def update_image(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, is_ai_enterprise_enabled, capacity_reservation_id, defined_tags, security_attributes, display_name, freeform_tags, agent_config, metadata, extended_metadata, shape, shape_config, source_details, update_operation_constraint, instance_options, fault_domain, launch_options, availability_config, time_maintenance_reboot_due, dedicated_vm_host_id, platform_config, licensing_configs, if_match): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') if not force: if defined_tags or security_attributes or freeform_tags or agent_config or metadata or extended_metadata or shape_config or source_details or instance_options or launch_options or availability_config or platform_config or licensing_configs: @@ -13664,7 +13663,7 @@ def update_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_instance_update_instance_source_via_boot_volume_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, source_details_boot_volume_id, is_ai_enterprise_enabled, capacity_reservation_id, defined_tags, security_attributes, display_name, freeform_tags, agent_config, metadata, extended_metadata, shape, shape_config, update_operation_constraint, instance_options, fault_domain, launch_options, availability_config, time_maintenance_reboot_due, dedicated_vm_host_id, platform_config, licensing_configs, if_match, source_details_is_preserve_boot_volume_enabled): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') if not force: if defined_tags or security_attributes or freeform_tags or agent_config or metadata or extended_metadata or shape_config or instance_options or launch_options or availability_config or platform_config or licensing_configs: @@ -13860,7 +13859,7 @@ def update_instance_update_instance_source_via_boot_volume_details(ctx, from_jso @cli_util.wrap_exceptions def update_instance_update_instance_source_via_image_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, source_details_image_id, is_ai_enterprise_enabled, capacity_reservation_id, defined_tags, security_attributes, display_name, freeform_tags, agent_config, metadata, extended_metadata, shape, shape_config, update_operation_constraint, instance_options, fault_domain, launch_options, availability_config, time_maintenance_reboot_due, dedicated_vm_host_id, platform_config, licensing_configs, if_match, source_details_is_preserve_boot_volume_enabled, source_details_boot_volume_size_in_gbs, source_details_kms_key_id): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') if not force: if defined_tags or security_attributes or freeform_tags or agent_config or metadata or extended_metadata or shape_config or instance_options or launch_options or availability_config or platform_config or licensing_configs: @@ -14061,7 +14060,7 @@ def update_instance_update_instance_source_via_image_details(ctx, from_json, for @cli_util.wrap_exceptions def update_instance_amd_vm_update_instance_platform_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, is_ai_enterprise_enabled, capacity_reservation_id, defined_tags, security_attributes, display_name, freeform_tags, agent_config, metadata, extended_metadata, shape, shape_config, source_details, update_operation_constraint, instance_options, fault_domain, launch_options, availability_config, time_maintenance_reboot_due, dedicated_vm_host_id, licensing_configs, if_match, platform_config_is_symmetric_multi_threading_enabled): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') if not force: if defined_tags or security_attributes or freeform_tags or agent_config or metadata or extended_metadata or shape_config or source_details or instance_options or launch_options or availability_config or licensing_configs: @@ -14255,7 +14254,7 @@ def update_instance_amd_vm_update_instance_platform_config(ctx, from_json, force @cli_util.wrap_exceptions def update_instance_intel_vm_update_instance_platform_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, is_ai_enterprise_enabled, capacity_reservation_id, defined_tags, security_attributes, display_name, freeform_tags, agent_config, metadata, extended_metadata, shape, shape_config, source_details, update_operation_constraint, instance_options, fault_domain, launch_options, availability_config, time_maintenance_reboot_due, dedicated_vm_host_id, licensing_configs, if_match, platform_config_is_symmetric_multi_threading_enabled): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') if not force: if defined_tags or security_attributes or freeform_tags or agent_config or metadata or extended_metadata or shape_config or source_details or instance_options or launch_options or availability_config or licensing_configs: @@ -14386,7 +14385,7 @@ def update_instance_intel_vm_update_instance_platform_config(ctx, from_json, for @cli_util.wrap_exceptions def update_instance_console_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_console_connection_id, defined_tags, freeform_tags, if_match): - if isinstance(instance_console_connection_id, six.string_types) and len(instance_console_connection_id.strip()) == 0: + if isinstance(instance_console_connection_id, str) and len(instance_console_connection_id.strip()) == 0: raise click.UsageError('Parameter --instance-console-connection-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -14468,7 +14467,7 @@ def update_instance_console_connection(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_instance_maintenance_event(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_maintenance_event_id, time_window_start, alternative_resolution_action, can_delete_local_storage, display_name, defined_tags, freeform_tags, if_match): - if isinstance(instance_maintenance_event_id, six.string_types) and len(instance_maintenance_event_id.strip()) == 0: + if isinstance(instance_maintenance_event_id, str) and len(instance_maintenance_event_id.strip()) == 0: raise click.UsageError('Parameter --instance-maintenance-event-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -14558,7 +14557,7 @@ def update_instance_maintenance_event(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_volume_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, volume_attachment_id, iscsi_login_state, if_match): - if isinstance(volume_attachment_id, six.string_types) and len(volume_attachment_id.strip()) == 0: + if isinstance(volume_attachment_id, str) and len(volume_attachment_id.strip()) == 0: raise click.UsageError('Parameter --volume-attachment-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/core/src/oci_cli_compute_management/generated/computemanagement_cli.py b/services/core/src/oci_cli_compute_management/generated/computemanagement_cli.py index 846772ec3..dfad70620 100644 --- a/services/core/src/oci_cli_compute_management/generated/computemanagement_cli.py +++ b/services/core/src/oci_cli_compute_management/generated/computemanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -98,7 +97,7 @@ def instance_pool_instance_group(): @cli_util.wrap_exceptions def attach_instance_pool_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, instance_id): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -155,7 +154,7 @@ def attach_instance_pool_instance(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def attach_load_balancer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, load_balancer_id, backend_set_name, port, vnic_selection, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -213,7 +212,7 @@ def attach_load_balancer(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def change_cluster_network_compartment(ctx, from_json, cluster_network_id, compartment_id, if_match): - if isinstance(cluster_network_id, six.string_types) and len(cluster_network_id.strip()) == 0: + if isinstance(cluster_network_id, str) and len(cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -248,7 +247,7 @@ def change_cluster_network_compartment(ctx, from_json, cluster_network_id, compa @cli_util.wrap_exceptions def change_instance_configuration_compartment(ctx, from_json, instance_configuration_id, compartment_id, if_match): - if isinstance(instance_configuration_id, six.string_types) and len(instance_configuration_id.strip()) == 0: + if isinstance(instance_configuration_id, str) and len(instance_configuration_id.strip()) == 0: raise click.UsageError('Parameter --instance-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -281,7 +280,7 @@ def change_instance_configuration_compartment(ctx, from_json, instance_configura @cli_util.wrap_exceptions def change_instance_pool_compartment(ctx, from_json, instance_pool_id, compartment_id, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -662,7 +661,7 @@ def create_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_instance_configuration(ctx, from_json, instance_configuration_id, if_match): - if isinstance(instance_configuration_id, six.string_types) and len(instance_configuration_id.strip()) == 0: + if isinstance(instance_configuration_id, str) and len(instance_configuration_id.strip()) == 0: raise click.UsageError('Parameter --instance-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -691,7 +690,7 @@ def delete_instance_configuration(ctx, from_json, instance_configuration_id, if_ @cli_util.wrap_exceptions def detach_instance_pool_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, instance_id, is_decrement_size, is_auto_terminate): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -764,7 +763,7 @@ def detach_instance_pool_instance(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def detach_load_balancer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, load_balancer_id, backend_set_name, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -816,7 +815,7 @@ def detach_load_balancer(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def get_cluster_network(ctx, from_json, cluster_network_id): - if isinstance(cluster_network_id, six.string_types) and len(cluster_network_id.strip()) == 0: + if isinstance(cluster_network_id, str) and len(cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -837,7 +836,7 @@ def get_cluster_network(ctx, from_json, cluster_network_id): @cli_util.wrap_exceptions def get_instance_configuration(ctx, from_json, instance_configuration_id): - if isinstance(instance_configuration_id, six.string_types) and len(instance_configuration_id.strip()) == 0: + if isinstance(instance_configuration_id, str) and len(instance_configuration_id.strip()) == 0: raise click.UsageError('Parameter --instance-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -858,7 +857,7 @@ def get_instance_configuration(ctx, from_json, instance_configuration_id): @cli_util.wrap_exceptions def get_instance_pool(ctx, from_json, instance_pool_id): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -880,10 +879,10 @@ def get_instance_pool(ctx, from_json, instance_pool_id): @cli_util.wrap_exceptions def get_instance_pool_instance(ctx, from_json, instance_pool_id, instance_id): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -906,10 +905,10 @@ def get_instance_pool_instance(ctx, from_json, instance_pool_id, instance_id): @cli_util.wrap_exceptions def get_instance_pool_load_balancer_attachment(ctx, from_json, instance_pool_id, instance_pool_load_balancer_attachment_id): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') - if isinstance(instance_pool_load_balancer_attachment_id, six.string_types) and len(instance_pool_load_balancer_attachment_id.strip()) == 0: + if isinstance(instance_pool_load_balancer_attachment_id, str) and len(instance_pool_load_balancer_attachment_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-load-balancer-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -937,7 +936,7 @@ def get_instance_pool_load_balancer_attachment(ctx, from_json, instance_pool_id, @cli_util.wrap_exceptions def launch_instance_configuration(ctx, from_json, instance_configuration_id, instance_type, opc_compute_cluster_id): - if isinstance(instance_configuration_id, six.string_types) and len(instance_configuration_id.strip()) == 0: + if isinstance(instance_configuration_id, str) and len(instance_configuration_id.strip()) == 0: raise click.UsageError('Parameter --instance-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -973,7 +972,7 @@ def launch_instance_configuration(ctx, from_json, instance_configuration_id, ins @cli_util.wrap_exceptions def launch_instance_configuration_compute_instance_options(ctx, from_json, instance_configuration_id, options, opc_compute_cluster_id): - if isinstance(instance_configuration_id, six.string_types) and len(instance_configuration_id.strip()) == 0: + if isinstance(instance_configuration_id, str) and len(instance_configuration_id.strip()) == 0: raise click.UsageError('Parameter --instance-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1017,7 +1016,7 @@ def launch_instance_configuration_compute_instance_options(ctx, from_json, insta @cli_util.wrap_exceptions def launch_instance_configuration_compute_instance_details(ctx, from_json, instance_configuration_id, block_volumes, launch_details, secondary_vnics, opc_compute_cluster_id): - if isinstance(instance_configuration_id, six.string_types) and len(instance_configuration_id.strip()) == 0: + if isinstance(instance_configuration_id, str) and len(instance_configuration_id.strip()) == 0: raise click.UsageError('Parameter --instance-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1070,7 +1069,7 @@ def list_cluster_network_instances(ctx, from_json, all_pages, page_size, compart if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(cluster_network_id, six.string_types) and len(cluster_network_id.strip()) == 0: + if isinstance(cluster_network_id, str) and len(cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -1257,7 +1256,7 @@ def list_instance_pool_instances(ctx, from_json, all_pages, page_size, compartme if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1376,7 +1375,7 @@ def list_instance_pools(ctx, from_json, all_pages, page_size, compartment_id, di @cli_util.wrap_exceptions def reset_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1428,7 +1427,7 @@ def reset_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def softreset_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1480,7 +1479,7 @@ def softreset_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def softstop_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1530,7 +1529,7 @@ def softstop_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def start_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1580,7 +1579,7 @@ def start_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def stop_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1633,7 +1632,7 @@ def stop_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def terminate_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_network_id, if_match): - if isinstance(cluster_network_id, six.string_types) and len(cluster_network_id.strip()) == 0: + if isinstance(cluster_network_id, str) and len(cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -1693,7 +1692,7 @@ def terminate_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def terminate_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1752,7 +1751,7 @@ def terminate_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def termination_proceed_instance_pool_instance(ctx, from_json, instance_pool_id, instance_id): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1793,7 +1792,7 @@ def termination_proceed_instance_pool_instance(ctx, from_json, instance_pool_id, @cli_util.wrap_exceptions def update_cluster_network(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_network_id, defined_tags, display_name, freeform_tags, instance_pools, if_match): - if isinstance(cluster_network_id, six.string_types) and len(cluster_network_id.strip()) == 0: + if isinstance(cluster_network_id, str) and len(cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --cluster-network-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or instance_pools: @@ -1868,7 +1867,7 @@ def update_cluster_network(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_instance_configuration(ctx, from_json, force, instance_configuration_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(instance_configuration_id, six.string_types) and len(instance_configuration_id.strip()) == 0: + if isinstance(instance_configuration_id, str) and len(instance_configuration_id.strip()) == 0: raise click.UsageError('Parameter --instance-configuration-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -1934,7 +1933,7 @@ def update_instance_configuration(ctx, from_json, force, instance_configuration_ @cli_util.wrap_exceptions def update_instance_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, defined_tags, display_name, freeform_tags, instance_configuration_id, placement_configurations, size, instance_display_name_formatter, instance_hostname_formatter, lifecycle_management, if_match): - if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0: + if isinstance(instance_pool_id, str) and len(instance_pool_id.strip()) == 0: raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or placement_configurations or lifecycle_management: diff --git a/services/core/src/oci_cli_virtual_network/generated/virtualnetwork_cli.py b/services/core/src/oci_cli_virtual_network/generated/virtualnetwork_cli.py index b68801a8c..ca0b76d69 100644 --- a/services/core/src/oci_cli_virtual_network/generated/virtualnetwork_cli.py +++ b/services/core/src/oci_cli_virtual_network/generated/virtualnetwork_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -652,7 +651,7 @@ def internal_public_ip_group(): @cli_util.wrap_exceptions def add_drg_route_distribution_statements(ctx, from_json, drg_route_distribution_id, statements): - if isinstance(drg_route_distribution_id, six.string_types) and len(drg_route_distribution_id.strip()) == 0: + if isinstance(drg_route_distribution_id, str) and len(drg_route_distribution_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-distribution-id cannot be whitespace or empty string') kwargs = {} @@ -681,7 +680,7 @@ def add_drg_route_distribution_statements(ctx, from_json, drg_route_distribution @cli_util.wrap_exceptions def add_drg_route_rules(ctx, from_json, drg_route_table_id, route_rules): - if isinstance(drg_route_table_id, six.string_types) and len(drg_route_table_id.strip()) == 0: + if isinstance(drg_route_table_id, str) and len(drg_route_table_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-table-id cannot be whitespace or empty string') kwargs = {} @@ -718,7 +717,7 @@ def add_drg_route_rules(ctx, from_json, drg_route_table_id, route_rules): @cli_util.wrap_exceptions def add_ipv4_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, ipv4_cidr_block, if_match): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -789,7 +788,7 @@ def add_ipv4_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def add_ipv6_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, ipv6_cidr_block, if_match): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -862,7 +861,7 @@ def add_ipv6_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def add_ipv6_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vcn_id, if_match, ipv6_private_cidr_block, is_oracle_gua_allocation_enabled, byoipv6_cidr_detail): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -937,7 +936,7 @@ def add_ipv6_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def add_network_security_group_security_rules(ctx, from_json, network_security_group_id, security_rules): - if isinstance(network_security_group_id, six.string_types) and len(network_security_group_id.strip()) == 0: + if isinstance(network_security_group_id, str) and len(network_security_group_id.strip()) == 0: raise click.UsageError('Parameter --network-security-group-id cannot be whitespace or empty string') kwargs = {} @@ -972,7 +971,7 @@ def add_network_security_group_security_rules(ctx, from_json, network_security_g @cli_util.wrap_exceptions def add_public_ip_pool_capacity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, public_ip_pool_id, byoip_range_id, cidr_block): - if isinstance(public_ip_pool_id, six.string_types) and len(public_ip_pool_id.strip()) == 0: + if isinstance(public_ip_pool_id, str) and len(public_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1032,7 +1031,7 @@ def add_public_ip_pool_capacity(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def add_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vcn_id, cidr_block, if_match): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -1096,7 +1095,7 @@ def add_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def advertise_byoip_range(ctx, from_json, byoip_range_id): - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') kwargs = {} @@ -1125,7 +1124,7 @@ def advertise_byoip_range(ctx, from_json, byoip_range_id): @cli_util.wrap_exceptions def attach_service_id(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_gateway_id, service_id, if_match): - if isinstance(service_gateway_id, six.string_types) and len(service_gateway_id.strip()) == 0: + if isinstance(service_gateway_id, str) and len(service_gateway_id.strip()) == 0: raise click.UsageError('Parameter --service-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -1177,7 +1176,7 @@ def attach_service_id(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def bulk_add_virtual_circuit_public_prefixes(ctx, from_json, virtual_circuit_id, public_prefixes): - if isinstance(virtual_circuit_id, six.string_types) and len(virtual_circuit_id.strip()) == 0: + if isinstance(virtual_circuit_id, str) and len(virtual_circuit_id.strip()) == 0: raise click.UsageError('Parameter --virtual-circuit-id cannot be whitespace or empty string') kwargs = {} @@ -1488,7 +1487,7 @@ def bulk_delete_private_ips(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def bulk_delete_virtual_circuit_public_prefixes(ctx, from_json, virtual_circuit_id, public_prefixes): - if isinstance(virtual_circuit_id, six.string_types) and len(virtual_circuit_id.strip()) == 0: + if isinstance(virtual_circuit_id, str) and len(virtual_circuit_id.strip()) == 0: raise click.UsageError('Parameter --virtual-circuit-id cannot be whitespace or empty string') kwargs = {} @@ -1776,7 +1775,7 @@ def bulk_update_private_ips(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def change_byoasn_compartment(ctx, from_json, byoasn_id, compartment_id, if_match): - if isinstance(byoasn_id, six.string_types) and len(byoasn_id.strip()) == 0: + if isinstance(byoasn_id, str) and len(byoasn_id.strip()) == 0: raise click.UsageError('Parameter --byoasn-id cannot be whitespace or empty string') kwargs = {} @@ -1806,7 +1805,7 @@ def change_byoasn_compartment(ctx, from_json, byoasn_id, compartment_id, if_matc @cli_util.wrap_exceptions def change_byoip_range_compartment(ctx, from_json, byoip_range_id, compartment_id): - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') kwargs = {} @@ -1838,7 +1837,7 @@ def change_byoip_range_compartment(ctx, from_json, byoip_range_id, compartment_i @cli_util.wrap_exceptions def change_capture_filter_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, capture_filter_id, compartment_id, if_match): - if isinstance(capture_filter_id, six.string_types) and len(capture_filter_id.strip()) == 0: + if isinstance(capture_filter_id, str) and len(capture_filter_id.strip()) == 0: raise click.UsageError('Parameter --capture-filter-id cannot be whitespace or empty string') kwargs = {} @@ -1903,7 +1902,7 @@ def change_capture_filter_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_cpe_compartment(ctx, from_json, cpe_id, compartment_id): - if isinstance(cpe_id, six.string_types) and len(cpe_id.strip()) == 0: + if isinstance(cpe_id, str) and len(cpe_id.strip()) == 0: raise click.UsageError('Parameter --cpe-id cannot be whitespace or empty string') kwargs = {} @@ -1931,7 +1930,7 @@ def change_cpe_compartment(ctx, from_json, cpe_id, compartment_id): @cli_util.wrap_exceptions def change_cross_connect_compartment(ctx, from_json, cross_connect_id, compartment_id): - if isinstance(cross_connect_id, six.string_types) and len(cross_connect_id.strip()) == 0: + if isinstance(cross_connect_id, str) and len(cross_connect_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-id cannot be whitespace or empty string') kwargs = {} @@ -1959,7 +1958,7 @@ def change_cross_connect_compartment(ctx, from_json, cross_connect_id, compartme @cli_util.wrap_exceptions def change_cross_connect_group_compartment(ctx, from_json, cross_connect_group_id, compartment_id): - if isinstance(cross_connect_group_id, six.string_types) and len(cross_connect_group_id.strip()) == 0: + if isinstance(cross_connect_group_id, str) and len(cross_connect_group_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-group-id cannot be whitespace or empty string') kwargs = {} @@ -1987,7 +1986,7 @@ def change_cross_connect_group_compartment(ctx, from_json, cross_connect_group_i @cli_util.wrap_exceptions def change_dhcp_options_compartment(ctx, from_json, dhcp_id, compartment_id): - if isinstance(dhcp_id, six.string_types) and len(dhcp_id.strip()) == 0: + if isinstance(dhcp_id, str) and len(dhcp_id.strip()) == 0: raise click.UsageError('Parameter --dhcp-id cannot be whitespace or empty string') kwargs = {} @@ -2018,7 +2017,7 @@ def change_dhcp_options_compartment(ctx, from_json, dhcp_id, compartment_id): @cli_util.wrap_exceptions def change_drg_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_id, compartment_id): - if isinstance(drg_id, six.string_types) and len(drg_id.strip()) == 0: + if isinstance(drg_id, str) and len(drg_id.strip()) == 0: raise click.UsageError('Parameter --drg-id cannot be whitespace or empty string') kwargs = {} @@ -2081,7 +2080,7 @@ def change_drg_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def change_internet_gateway_compartment(ctx, from_json, ig_id, compartment_id): - if isinstance(ig_id, six.string_types) and len(ig_id.strip()) == 0: + if isinstance(ig_id, str) and len(ig_id.strip()) == 0: raise click.UsageError('Parameter --ig-id cannot be whitespace or empty string') kwargs = {} @@ -2109,7 +2108,7 @@ def change_internet_gateway_compartment(ctx, from_json, ig_id, compartment_id): @cli_util.wrap_exceptions def change_ip_sec_connection_compartment(ctx, from_json, ipsc_id, compartment_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') kwargs = {} @@ -2137,7 +2136,7 @@ def change_ip_sec_connection_compartment(ctx, from_json, ipsc_id, compartment_id @cli_util.wrap_exceptions def change_local_peering_gateway_compartment(ctx, from_json, local_peering_gateway_id, compartment_id): - if isinstance(local_peering_gateway_id, six.string_types) and len(local_peering_gateway_id.strip()) == 0: + if isinstance(local_peering_gateway_id, str) and len(local_peering_gateway_id.strip()) == 0: raise click.UsageError('Parameter --local-peering-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -2165,7 +2164,7 @@ def change_local_peering_gateway_compartment(ctx, from_json, local_peering_gatew @cli_util.wrap_exceptions def change_nat_gateway_compartment(ctx, from_json, nat_gateway_id, compartment_id): - if isinstance(nat_gateway_id, six.string_types) and len(nat_gateway_id.strip()) == 0: + if isinstance(nat_gateway_id, str) and len(nat_gateway_id.strip()) == 0: raise click.UsageError('Parameter --nat-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -2193,7 +2192,7 @@ def change_nat_gateway_compartment(ctx, from_json, nat_gateway_id, compartment_i @cli_util.wrap_exceptions def change_network_security_group_compartment(ctx, from_json, network_security_group_id, compartment_id): - if isinstance(network_security_group_id, six.string_types) and len(network_security_group_id.strip()) == 0: + if isinstance(network_security_group_id, str) and len(network_security_group_id.strip()) == 0: raise click.UsageError('Parameter --network-security-group-id cannot be whitespace or empty string') kwargs = {} @@ -2223,7 +2222,7 @@ def change_network_security_group_compartment(ctx, from_json, network_security_g @cli_util.wrap_exceptions def change_public_ip_compartment(ctx, from_json, public_ip_id, compartment_id): - if isinstance(public_ip_id, six.string_types) and len(public_ip_id.strip()) == 0: + if isinstance(public_ip_id, str) and len(public_ip_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-id cannot be whitespace or empty string') kwargs = {} @@ -2251,7 +2250,7 @@ def change_public_ip_compartment(ctx, from_json, public_ip_id, compartment_id): @cli_util.wrap_exceptions def change_public_ip_pool_compartment(ctx, from_json, public_ip_pool_id, compartment_id): - if isinstance(public_ip_pool_id, six.string_types) and len(public_ip_pool_id.strip()) == 0: + if isinstance(public_ip_pool_id, str) and len(public_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -2279,7 +2278,7 @@ def change_public_ip_pool_compartment(ctx, from_json, public_ip_pool_id, compart @cli_util.wrap_exceptions def change_remote_peering_connection_compartment(ctx, from_json, remote_peering_connection_id, compartment_id): - if isinstance(remote_peering_connection_id, six.string_types) and len(remote_peering_connection_id.strip()) == 0: + if isinstance(remote_peering_connection_id, str) and len(remote_peering_connection_id.strip()) == 0: raise click.UsageError('Parameter --remote-peering-connection-id cannot be whitespace or empty string') kwargs = {} @@ -2307,7 +2306,7 @@ def change_remote_peering_connection_compartment(ctx, from_json, remote_peering_ @cli_util.wrap_exceptions def change_route_table_compartment(ctx, from_json, rt_id, compartment_id): - if isinstance(rt_id, six.string_types) and len(rt_id.strip()) == 0: + if isinstance(rt_id, str) and len(rt_id.strip()) == 0: raise click.UsageError('Parameter --rt-id cannot be whitespace or empty string') kwargs = {} @@ -2335,7 +2334,7 @@ def change_route_table_compartment(ctx, from_json, rt_id, compartment_id): @cli_util.wrap_exceptions def change_security_list_compartment(ctx, from_json, security_list_id, compartment_id): - if isinstance(security_list_id, six.string_types) and len(security_list_id.strip()) == 0: + if isinstance(security_list_id, str) and len(security_list_id.strip()) == 0: raise click.UsageError('Parameter --security-list-id cannot be whitespace or empty string') kwargs = {} @@ -2363,7 +2362,7 @@ def change_security_list_compartment(ctx, from_json, security_list_id, compartme @cli_util.wrap_exceptions def change_service_gateway_compartment(ctx, from_json, service_gateway_id, compartment_id): - if isinstance(service_gateway_id, six.string_types) and len(service_gateway_id.strip()) == 0: + if isinstance(service_gateway_id, str) and len(service_gateway_id.strip()) == 0: raise click.UsageError('Parameter --service-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -2394,7 +2393,7 @@ def change_service_gateway_compartment(ctx, from_json, service_gateway_id, compa @cli_util.wrap_exceptions def change_subnet_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, compartment_id): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -2460,7 +2459,7 @@ def change_subnet_compartment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_vcn_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vcn_id, compartment_id): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -2523,7 +2522,7 @@ def change_vcn_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def change_virtual_circuit_compartment(ctx, from_json, virtual_circuit_id, compartment_id): - if isinstance(virtual_circuit_id, six.string_types) and len(virtual_circuit_id.strip()) == 0: + if isinstance(virtual_circuit_id, str) and len(virtual_circuit_id.strip()) == 0: raise click.UsageError('Parameter --virtual-circuit-id cannot be whitespace or empty string') kwargs = {} @@ -2555,7 +2554,7 @@ def change_virtual_circuit_compartment(ctx, from_json, virtual_circuit_id, compa @cli_util.wrap_exceptions def change_vlan_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vlan_id, compartment_id, if_match): - if isinstance(vlan_id, six.string_types) and len(vlan_id.strip()) == 0: + if isinstance(vlan_id, str) and len(vlan_id.strip()) == 0: raise click.UsageError('Parameter --vlan-id cannot be whitespace or empty string') kwargs = {} @@ -2624,7 +2623,7 @@ def change_vlan_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def change_vtap_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vtap_id, compartment_id, if_match): - if isinstance(vtap_id, six.string_types) and len(vtap_id.strip()) == 0: + if isinstance(vtap_id, str) and len(vtap_id.strip()) == 0: raise click.UsageError('Parameter --vtap-id cannot be whitespace or empty string') kwargs = {} @@ -2691,7 +2690,7 @@ def change_vtap_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def connect_local_peering_gateways(ctx, from_json, local_peering_gateway_id, peer_id): - if isinstance(local_peering_gateway_id, six.string_types) and len(local_peering_gateway_id.strip()) == 0: + if isinstance(local_peering_gateway_id, str) and len(local_peering_gateway_id.strip()) == 0: raise click.UsageError('Parameter --local-peering-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -2723,7 +2722,7 @@ def connect_local_peering_gateways(ctx, from_json, local_peering_gateway_id, pee @cli_util.wrap_exceptions def connect_remote_peering_connections(ctx, from_json, remote_peering_connection_id, peer_id, peer_region_name): - if isinstance(remote_peering_connection_id, six.string_types) and len(remote_peering_connection_id.strip()) == 0: + if isinstance(remote_peering_connection_id, str) and len(remote_peering_connection_id.strip()) == 0: raise click.UsageError('Parameter --remote-peering-connection-id cannot be whitespace or empty string') kwargs = {} @@ -5431,7 +5430,7 @@ def create_vtap(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_byoasn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, byoasn_id, if_match): - if isinstance(byoasn_id, six.string_types) and len(byoasn_id.strip()) == 0: + if isinstance(byoasn_id, str) and len(byoasn_id.strip()) == 0: raise click.UsageError('Parameter --byoasn-id cannot be whitespace or empty string') kwargs = {} @@ -5495,7 +5494,7 @@ def delete_byoasn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_byoip_range(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, byoip_range_id, if_match): - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') kwargs = {} @@ -5552,7 +5551,7 @@ def delete_byoip_range(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_capture_filter(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, capture_filter_id, if_match): - if isinstance(capture_filter_id, six.string_types) and len(capture_filter_id.strip()) == 0: + if isinstance(capture_filter_id, str) and len(capture_filter_id.strip()) == 0: raise click.UsageError('Parameter --capture-filter-id cannot be whitespace or empty string') kwargs = {} @@ -5613,7 +5612,7 @@ def delete_capture_filter(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_cpe(ctx, from_json, cpe_id, if_match): - if isinstance(cpe_id, six.string_types) and len(cpe_id.strip()) == 0: + if isinstance(cpe_id, str) and len(cpe_id.strip()) == 0: raise click.UsageError('Parameter --cpe-id cannot be whitespace or empty string') kwargs = {} @@ -5641,7 +5640,7 @@ def delete_cpe(ctx, from_json, cpe_id, if_match): @cli_util.wrap_exceptions def delete_cross_connect(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cross_connect_id, if_match): - if isinstance(cross_connect_id, six.string_types) and len(cross_connect_id.strip()) == 0: + if isinstance(cross_connect_id, str) and len(cross_connect_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-id cannot be whitespace or empty string') kwargs = {} @@ -5704,7 +5703,7 @@ def delete_cross_connect(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_cross_connect_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cross_connect_group_id, if_match): - if isinstance(cross_connect_group_id, six.string_types) and len(cross_connect_group_id.strip()) == 0: + if isinstance(cross_connect_group_id, str) and len(cross_connect_group_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-group-id cannot be whitespace or empty string') kwargs = {} @@ -5769,7 +5768,7 @@ def delete_cross_connect_group(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_dhcp_options(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dhcp_id, if_match): - if isinstance(dhcp_id, six.string_types) and len(dhcp_id.strip()) == 0: + if isinstance(dhcp_id, str) and len(dhcp_id.strip()) == 0: raise click.UsageError('Parameter --dhcp-id cannot be whitespace or empty string') kwargs = {} @@ -5832,7 +5831,7 @@ def delete_dhcp_options(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_drg(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_id, if_match): - if isinstance(drg_id, six.string_types) and len(drg_id.strip()) == 0: + if isinstance(drg_id, str) and len(drg_id.strip()) == 0: raise click.UsageError('Parameter --drg-id cannot be whitespace or empty string') kwargs = {} @@ -5895,7 +5894,7 @@ def delete_drg(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_drg_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_attachment_id, if_match): - if isinstance(drg_attachment_id, six.string_types) and len(drg_attachment_id.strip()) == 0: + if isinstance(drg_attachment_id, str) and len(drg_attachment_id.strip()) == 0: raise click.UsageError('Parameter --drg-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -5960,7 +5959,7 @@ def delete_drg_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_drg_route_distribution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_route_distribution_id, if_match): - if isinstance(drg_route_distribution_id, six.string_types) and len(drg_route_distribution_id.strip()) == 0: + if isinstance(drg_route_distribution_id, str) and len(drg_route_distribution_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-distribution-id cannot be whitespace or empty string') kwargs = {} @@ -6023,7 +6022,7 @@ def delete_drg_route_distribution(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_drg_route_table(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_route_table_id, if_match): - if isinstance(drg_route_table_id, six.string_types) and len(drg_route_table_id.strip()) == 0: + if isinstance(drg_route_table_id, str) and len(drg_route_table_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-table-id cannot be whitespace or empty string') kwargs = {} @@ -6088,7 +6087,7 @@ def delete_drg_route_table(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_internet_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ig_id, if_match): - if isinstance(ig_id, six.string_types) and len(ig_id.strip()) == 0: + if isinstance(ig_id, str) and len(ig_id.strip()) == 0: raise click.UsageError('Parameter --ig-id cannot be whitespace or empty string') kwargs = {} @@ -6153,7 +6152,7 @@ def delete_internet_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_ip_sec_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ipsc_id, if_match): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') kwargs = {} @@ -6216,7 +6215,7 @@ def delete_ip_sec_connection(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_ipv6(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ipv6_id, if_match): - if isinstance(ipv6_id, six.string_types) and len(ipv6_id.strip()) == 0: + if isinstance(ipv6_id, str) and len(ipv6_id.strip()) == 0: raise click.UsageError('Parameter --ipv6-id cannot be whitespace or empty string') kwargs = {} @@ -6282,7 +6281,7 @@ def delete_ipv6(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_local_peering_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, local_peering_gateway_id, if_match): - if isinstance(local_peering_gateway_id, six.string_types) and len(local_peering_gateway_id.strip()) == 0: + if isinstance(local_peering_gateway_id, str) and len(local_peering_gateway_id.strip()) == 0: raise click.UsageError('Parameter --local-peering-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -6347,7 +6346,7 @@ def delete_local_peering_gateway(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_nat_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, nat_gateway_id, if_match): - if isinstance(nat_gateway_id, six.string_types) and len(nat_gateway_id.strip()) == 0: + if isinstance(nat_gateway_id, str) and len(nat_gateway_id.strip()) == 0: raise click.UsageError('Parameter --nat-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -6412,7 +6411,7 @@ def delete_nat_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_network_security_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_security_group_id, if_match): - if isinstance(network_security_group_id, six.string_types) and len(network_security_group_id.strip()) == 0: + if isinstance(network_security_group_id, str) and len(network_security_group_id.strip()) == 0: raise click.UsageError('Parameter --network-security-group-id cannot be whitespace or empty string') kwargs = {} @@ -6476,7 +6475,7 @@ def delete_network_security_group(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_private_ip(ctx, from_json, private_ip_id, if_match): - if isinstance(private_ip_id, six.string_types) and len(private_ip_id.strip()) == 0: + if isinstance(private_ip_id, str) and len(private_ip_id.strip()) == 0: raise click.UsageError('Parameter --private-ip-id cannot be whitespace or empty string') kwargs = {} @@ -6510,7 +6509,7 @@ def delete_private_ip(ctx, from_json, private_ip_id, if_match): @cli_util.wrap_exceptions def delete_public_ip(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, public_ip_id, if_match): - if isinstance(public_ip_id, six.string_types) and len(public_ip_id.strip()) == 0: + if isinstance(public_ip_id, str) and len(public_ip_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-id cannot be whitespace or empty string') kwargs = {} @@ -6573,7 +6572,7 @@ def delete_public_ip(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_public_ip_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, public_ip_pool_id, if_match): - if isinstance(public_ip_pool_id, six.string_types) and len(public_ip_pool_id.strip()) == 0: + if isinstance(public_ip_pool_id, str) and len(public_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -6639,7 +6638,7 @@ def delete_public_ip_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_remote_peering_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, remote_peering_connection_id, if_match): - if isinstance(remote_peering_connection_id, six.string_types) and len(remote_peering_connection_id.strip()) == 0: + if isinstance(remote_peering_connection_id, str) and len(remote_peering_connection_id.strip()) == 0: raise click.UsageError('Parameter --remote-peering-connection-id cannot be whitespace or empty string') kwargs = {} @@ -6704,7 +6703,7 @@ def delete_remote_peering_connection(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_route_table(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, rt_id, if_match): - if isinstance(rt_id, six.string_types) and len(rt_id.strip()) == 0: + if isinstance(rt_id, str) and len(rt_id.strip()) == 0: raise click.UsageError('Parameter --rt-id cannot be whitespace or empty string') kwargs = {} @@ -6769,7 +6768,7 @@ def delete_route_table(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_security_list(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_list_id, if_match): - if isinstance(security_list_id, six.string_types) and len(security_list_id.strip()) == 0: + if isinstance(security_list_id, str) and len(security_list_id.strip()) == 0: raise click.UsageError('Parameter --security-list-id cannot be whitespace or empty string') kwargs = {} @@ -6832,7 +6831,7 @@ def delete_security_list(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_service_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_gateway_id, if_match): - if isinstance(service_gateway_id, six.string_types) and len(service_gateway_id.strip()) == 0: + if isinstance(service_gateway_id, str) and len(service_gateway_id.strip()) == 0: raise click.UsageError('Parameter --service-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -6895,7 +6894,7 @@ def delete_service_gateway(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_subnet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, if_match): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -6960,7 +6959,7 @@ def delete_subnet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_vcn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vcn_id, if_match): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -7025,7 +7024,7 @@ def delete_vcn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_virtual_circuit(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, virtual_circuit_id, if_match): - if isinstance(virtual_circuit_id, six.string_types) and len(virtual_circuit_id.strip()) == 0: + if isinstance(virtual_circuit_id, str) and len(virtual_circuit_id.strip()) == 0: raise click.UsageError('Parameter --virtual-circuit-id cannot be whitespace or empty string') kwargs = {} @@ -7088,7 +7087,7 @@ def delete_virtual_circuit(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_vlan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vlan_id, if_match): - if isinstance(vlan_id, six.string_types) and len(vlan_id.strip()) == 0: + if isinstance(vlan_id, str) and len(vlan_id.strip()) == 0: raise click.UsageError('Parameter --vlan-id cannot be whitespace or empty string') kwargs = {} @@ -7152,7 +7151,7 @@ def delete_vlan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_vtap(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vtap_id, if_match): - if isinstance(vtap_id, six.string_types) and len(vtap_id.strip()) == 0: + if isinstance(vtap_id, str) and len(vtap_id.strip()) == 0: raise click.UsageError('Parameter --vtap-id cannot be whitespace or empty string') kwargs = {} @@ -7211,7 +7210,7 @@ def delete_vtap(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def detach_service_id(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_gateway_id, service_id, if_match): - if isinstance(service_gateway_id, six.string_types) and len(service_gateway_id.strip()) == 0: + if isinstance(service_gateway_id, str) and len(service_gateway_id.strip()) == 0: raise click.UsageError('Parameter --service-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -7268,7 +7267,7 @@ def detach_service_id(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def get_all_drg_attachments(ctx, from_json, drg_id, limit, page, attachment_type, is_cross_tenancy): - if isinstance(drg_id, six.string_types) and len(drg_id.strip()) == 0: + if isinstance(drg_id, str) and len(drg_id.strip()) == 0: raise click.UsageError('Parameter --drg-id cannot be whitespace or empty string') kwargs = {} @@ -7315,7 +7314,7 @@ def get_allowed_ike_ip_sec_parameters(ctx, from_json, ): @cli_util.wrap_exceptions def get_byoasn(ctx, from_json, byoasn_id): - if isinstance(byoasn_id, six.string_types) and len(byoasn_id.strip()) == 0: + if isinstance(byoasn_id, str) and len(byoasn_id.strip()) == 0: raise click.UsageError('Parameter --byoasn-id cannot be whitespace or empty string') kwargs = {} @@ -7337,7 +7336,7 @@ def get_byoasn(ctx, from_json, byoasn_id): @cli_util.wrap_exceptions def get_byoip_range(ctx, from_json, byoip_range_id): - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') kwargs = {} @@ -7359,7 +7358,7 @@ def get_byoip_range(ctx, from_json, byoip_range_id): @cli_util.wrap_exceptions def get_capture_filter(ctx, from_json, capture_filter_id): - if isinstance(capture_filter_id, six.string_types) and len(capture_filter_id.strip()) == 0: + if isinstance(capture_filter_id, str) and len(capture_filter_id.strip()) == 0: raise click.UsageError('Parameter --capture-filter-id cannot be whitespace or empty string') kwargs = {} @@ -7381,7 +7380,7 @@ def get_capture_filter(ctx, from_json, capture_filter_id): @cli_util.wrap_exceptions def get_cpe(ctx, from_json, cpe_id): - if isinstance(cpe_id, six.string_types) and len(cpe_id.strip()) == 0: + if isinstance(cpe_id, str) and len(cpe_id.strip()) == 0: raise click.UsageError('Parameter --cpe-id cannot be whitespace or empty string') kwargs = {} @@ -7409,7 +7408,7 @@ def get_cpe(ctx, from_json, cpe_id): @cli_util.wrap_exceptions def get_cpe_device_config_content(ctx, from_json, file, cpe_id): - if isinstance(cpe_id, six.string_types) and len(cpe_id.strip()) == 0: + if isinstance(cpe_id, str) and len(cpe_id.strip()) == 0: raise click.UsageError('Parameter --cpe-id cannot be whitespace or empty string') kwargs = {} @@ -7455,7 +7454,7 @@ def get_cpe_device_config_content(ctx, from_json, file, cpe_id): @cli_util.wrap_exceptions def get_cpe_device_shape(ctx, from_json, cpe_device_shape_id): - if isinstance(cpe_device_shape_id, six.string_types) and len(cpe_device_shape_id.strip()) == 0: + if isinstance(cpe_device_shape_id, str) and len(cpe_device_shape_id.strip()) == 0: raise click.UsageError('Parameter --cpe-device-shape-id cannot be whitespace or empty string') kwargs = {} @@ -7477,7 +7476,7 @@ def get_cpe_device_shape(ctx, from_json, cpe_device_shape_id): @cli_util.wrap_exceptions def get_cross_connect(ctx, from_json, cross_connect_id): - if isinstance(cross_connect_id, six.string_types) and len(cross_connect_id.strip()) == 0: + if isinstance(cross_connect_id, str) and len(cross_connect_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-id cannot be whitespace or empty string') kwargs = {} @@ -7498,7 +7497,7 @@ def get_cross_connect(ctx, from_json, cross_connect_id): @cli_util.wrap_exceptions def get_cross_connect_group(ctx, from_json, cross_connect_group_id): - if isinstance(cross_connect_group_id, six.string_types) and len(cross_connect_group_id.strip()) == 0: + if isinstance(cross_connect_group_id, str) and len(cross_connect_group_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-group-id cannot be whitespace or empty string') kwargs = {} @@ -7519,7 +7518,7 @@ def get_cross_connect_group(ctx, from_json, cross_connect_group_id): @cli_util.wrap_exceptions def get_cross_connect_letter_of_authority(ctx, from_json, cross_connect_id): - if isinstance(cross_connect_id, six.string_types) and len(cross_connect_id.strip()) == 0: + if isinstance(cross_connect_id, str) and len(cross_connect_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-id cannot be whitespace or empty string') kwargs = {} @@ -7541,7 +7540,7 @@ def get_cross_connect_letter_of_authority(ctx, from_json, cross_connect_id): @cli_util.wrap_exceptions def get_cross_connect_status(ctx, from_json, cross_connect_id): - if isinstance(cross_connect_id, six.string_types) and len(cross_connect_id.strip()) == 0: + if isinstance(cross_connect_id, str) and len(cross_connect_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-id cannot be whitespace or empty string') kwargs = {} @@ -7562,7 +7561,7 @@ def get_cross_connect_status(ctx, from_json, cross_connect_id): @cli_util.wrap_exceptions def get_dhcp_options(ctx, from_json, dhcp_id): - if isinstance(dhcp_id, six.string_types) and len(dhcp_id.strip()) == 0: + if isinstance(dhcp_id, str) and len(dhcp_id.strip()) == 0: raise click.UsageError('Parameter --dhcp-id cannot be whitespace or empty string') kwargs = {} @@ -7583,7 +7582,7 @@ def get_dhcp_options(ctx, from_json, dhcp_id): @cli_util.wrap_exceptions def get_drg(ctx, from_json, drg_id): - if isinstance(drg_id, six.string_types) and len(drg_id.strip()) == 0: + if isinstance(drg_id, str) and len(drg_id.strip()) == 0: raise click.UsageError('Parameter --drg-id cannot be whitespace or empty string') kwargs = {} @@ -7604,7 +7603,7 @@ def get_drg(ctx, from_json, drg_id): @cli_util.wrap_exceptions def get_drg_attachment(ctx, from_json, drg_attachment_id): - if isinstance(drg_attachment_id, six.string_types) and len(drg_attachment_id.strip()) == 0: + if isinstance(drg_attachment_id, str) and len(drg_attachment_id.strip()) == 0: raise click.UsageError('Parameter --drg-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -7625,7 +7624,7 @@ def get_drg_attachment(ctx, from_json, drg_attachment_id): @cli_util.wrap_exceptions def get_drg_redundancy_status(ctx, from_json, drg_id): - if isinstance(drg_id, six.string_types) and len(drg_id.strip()) == 0: + if isinstance(drg_id, str) and len(drg_id.strip()) == 0: raise click.UsageError('Parameter --drg-id cannot be whitespace or empty string') kwargs = {} @@ -7647,7 +7646,7 @@ def get_drg_redundancy_status(ctx, from_json, drg_id): @cli_util.wrap_exceptions def get_drg_route_distribution(ctx, from_json, drg_route_distribution_id): - if isinstance(drg_route_distribution_id, six.string_types) and len(drg_route_distribution_id.strip()) == 0: + if isinstance(drg_route_distribution_id, str) and len(drg_route_distribution_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-distribution-id cannot be whitespace or empty string') kwargs = {} @@ -7668,7 +7667,7 @@ def get_drg_route_distribution(ctx, from_json, drg_route_distribution_id): @cli_util.wrap_exceptions def get_drg_route_table(ctx, from_json, drg_route_table_id): - if isinstance(drg_route_table_id, six.string_types) and len(drg_route_table_id.strip()) == 0: + if isinstance(drg_route_table_id, str) and len(drg_route_table_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-table-id cannot be whitespace or empty string') kwargs = {} @@ -7689,7 +7688,7 @@ def get_drg_route_table(ctx, from_json, drg_route_table_id): @cli_util.wrap_exceptions def get_fast_connect_provider_service(ctx, from_json, provider_service_id): - if isinstance(provider_service_id, six.string_types) and len(provider_service_id.strip()) == 0: + if isinstance(provider_service_id, str) and len(provider_service_id.strip()) == 0: raise click.UsageError('Parameter --provider-service-id cannot be whitespace or empty string') kwargs = {} @@ -7711,10 +7710,10 @@ def get_fast_connect_provider_service(ctx, from_json, provider_service_id): @cli_util.wrap_exceptions def get_fast_connect_provider_service_key(ctx, from_json, provider_service_id, provider_service_key_name): - if isinstance(provider_service_id, six.string_types) and len(provider_service_id.strip()) == 0: + if isinstance(provider_service_id, str) and len(provider_service_id.strip()) == 0: raise click.UsageError('Parameter --provider-service-id cannot be whitespace or empty string') - if isinstance(provider_service_key_name, six.string_types) and len(provider_service_key_name.strip()) == 0: + if isinstance(provider_service_key_name, str) and len(provider_service_key_name.strip()) == 0: raise click.UsageError('Parameter --provider-service-key-name cannot be whitespace or empty string') kwargs = {} @@ -7736,7 +7735,7 @@ def get_fast_connect_provider_service_key(ctx, from_json, provider_service_id, p @cli_util.wrap_exceptions def get_internet_gateway(ctx, from_json, ig_id): - if isinstance(ig_id, six.string_types) and len(ig_id.strip()) == 0: + if isinstance(ig_id, str) and len(ig_id.strip()) == 0: raise click.UsageError('Parameter --ig-id cannot be whitespace or empty string') kwargs = {} @@ -7757,7 +7756,7 @@ def get_internet_gateway(ctx, from_json, ig_id): @cli_util.wrap_exceptions def get_ip_sec_connection(ctx, from_json, ipsc_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') kwargs = {} @@ -7780,7 +7779,7 @@ def get_ip_sec_connection(ctx, from_json, ipsc_id): @cli_util.wrap_exceptions def get_ip_sec_connection_device_config(ctx, from_json, ipsc_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') kwargs = {} @@ -7801,7 +7800,7 @@ def get_ip_sec_connection_device_config(ctx, from_json, ipsc_id): @cli_util.wrap_exceptions def get_ip_sec_connection_device_status(ctx, from_json, ipsc_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') kwargs = {} @@ -7823,10 +7822,10 @@ def get_ip_sec_connection_device_status(ctx, from_json, ipsc_id): @cli_util.wrap_exceptions def get_ip_sec_connection_tunnel(ctx, from_json, ipsc_id, tunnel_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') kwargs = {} @@ -7849,10 +7848,10 @@ def get_ip_sec_connection_tunnel(ctx, from_json, ipsc_id, tunnel_id): @cli_util.wrap_exceptions def get_ip_sec_connection_tunnel_error(ctx, from_json, ipsc_id, tunnel_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') kwargs = {} @@ -7875,10 +7874,10 @@ def get_ip_sec_connection_tunnel_error(ctx, from_json, ipsc_id, tunnel_id): @cli_util.wrap_exceptions def get_ip_sec_connection_tunnel_shared_secret(ctx, from_json, ipsc_id, tunnel_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') kwargs = {} @@ -7907,7 +7906,7 @@ def get_ip_sec_connection_tunnel_shared_secret(ctx, from_json, ipsc_id, tunnel_i @cli_util.wrap_exceptions def get_ipsec_cpe_device_config_content(ctx, from_json, file, ipsc_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') kwargs = {} @@ -7951,7 +7950,7 @@ def get_ipsec_cpe_device_config_content(ctx, from_json, file, ipsc_id): @cli_util.wrap_exceptions def get_ipv6(ctx, from_json, ipv6_id): - if isinstance(ipv6_id, six.string_types) and len(ipv6_id.strip()) == 0: + if isinstance(ipv6_id, str) and len(ipv6_id.strip()) == 0: raise click.UsageError('Parameter --ipv6-id cannot be whitespace or empty string') kwargs = {} @@ -7973,7 +7972,7 @@ def get_ipv6(ctx, from_json, ipv6_id): @cli_util.wrap_exceptions def get_local_peering_gateway(ctx, from_json, local_peering_gateway_id): - if isinstance(local_peering_gateway_id, six.string_types) and len(local_peering_gateway_id.strip()) == 0: + if isinstance(local_peering_gateway_id, str) and len(local_peering_gateway_id.strip()) == 0: raise click.UsageError('Parameter --local-peering-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -7994,7 +7993,7 @@ def get_local_peering_gateway(ctx, from_json, local_peering_gateway_id): @cli_util.wrap_exceptions def get_nat_gateway(ctx, from_json, nat_gateway_id): - if isinstance(nat_gateway_id, six.string_types) and len(nat_gateway_id.strip()) == 0: + if isinstance(nat_gateway_id, str) and len(nat_gateway_id.strip()) == 0: raise click.UsageError('Parameter --nat-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -8019,7 +8018,7 @@ def get_nat_gateway(ctx, from_json, nat_gateway_id): @cli_util.wrap_exceptions def get_network_security_group(ctx, from_json, network_security_group_id): - if isinstance(network_security_group_id, six.string_types) and len(network_security_group_id.strip()) == 0: + if isinstance(network_security_group_id, str) and len(network_security_group_id.strip()) == 0: raise click.UsageError('Parameter --network-security-group-id cannot be whitespace or empty string') kwargs = {} @@ -8073,7 +8072,7 @@ def get_networking_topology(ctx, from_json, compartment_id, access_level, query_ @cli_util.wrap_exceptions def get_private_ip(ctx, from_json, private_ip_id): - if isinstance(private_ip_id, six.string_types) and len(private_ip_id.strip()) == 0: + if isinstance(private_ip_id, str) and len(private_ip_id.strip()) == 0: raise click.UsageError('Parameter --private-ip-id cannot be whitespace or empty string') kwargs = {} @@ -8100,7 +8099,7 @@ def get_private_ip(ctx, from_json, private_ip_id): @cli_util.wrap_exceptions def get_public_ip(ctx, from_json, public_ip_id): - if isinstance(public_ip_id, six.string_types) and len(public_ip_id.strip()) == 0: + if isinstance(public_ip_id, str) and len(public_ip_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-id cannot be whitespace or empty string') kwargs = {} @@ -8169,7 +8168,7 @@ def get_public_ip_by_private_ip_id(ctx, from_json, private_ip_id): @cli_util.wrap_exceptions def get_public_ip_pool(ctx, from_json, public_ip_pool_id): - if isinstance(public_ip_pool_id, six.string_types) and len(public_ip_pool_id.strip()) == 0: + if isinstance(public_ip_pool_id, str) and len(public_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -8191,7 +8190,7 @@ def get_public_ip_pool(ctx, from_json, public_ip_pool_id): @cli_util.wrap_exceptions def get_remote_peering_connection(ctx, from_json, remote_peering_connection_id): - if isinstance(remote_peering_connection_id, six.string_types) and len(remote_peering_connection_id.strip()) == 0: + if isinstance(remote_peering_connection_id, str) and len(remote_peering_connection_id.strip()) == 0: raise click.UsageError('Parameter --remote-peering-connection-id cannot be whitespace or empty string') kwargs = {} @@ -8212,7 +8211,7 @@ def get_remote_peering_connection(ctx, from_json, remote_peering_connection_id): @cli_util.wrap_exceptions def get_resource_ip_inventory(ctx, from_json, data_request_id): - if isinstance(data_request_id, six.string_types) and len(data_request_id.strip()) == 0: + if isinstance(data_request_id, str) and len(data_request_id.strip()) == 0: raise click.UsageError('Parameter --data-request-id cannot be whitespace or empty string') kwargs = {} @@ -8234,7 +8233,7 @@ def get_resource_ip_inventory(ctx, from_json, data_request_id): @cli_util.wrap_exceptions def get_route_table(ctx, from_json, rt_id): - if isinstance(rt_id, six.string_types) and len(rt_id.strip()) == 0: + if isinstance(rt_id, str) and len(rt_id.strip()) == 0: raise click.UsageError('Parameter --rt-id cannot be whitespace or empty string') kwargs = {} @@ -8255,7 +8254,7 @@ def get_route_table(ctx, from_json, rt_id): @cli_util.wrap_exceptions def get_security_list(ctx, from_json, security_list_id): - if isinstance(security_list_id, six.string_types) and len(security_list_id.strip()) == 0: + if isinstance(security_list_id, str) and len(security_list_id.strip()) == 0: raise click.UsageError('Parameter --security-list-id cannot be whitespace or empty string') kwargs = {} @@ -8276,7 +8275,7 @@ def get_security_list(ctx, from_json, security_list_id): @cli_util.wrap_exceptions def get_service(ctx, from_json, service_id): - if isinstance(service_id, six.string_types) and len(service_id.strip()) == 0: + if isinstance(service_id, str) and len(service_id.strip()) == 0: raise click.UsageError('Parameter --service-id cannot be whitespace or empty string') kwargs = {} @@ -8297,7 +8296,7 @@ def get_service(ctx, from_json, service_id): @cli_util.wrap_exceptions def get_service_gateway(ctx, from_json, service_gateway_id): - if isinstance(service_gateway_id, six.string_types) and len(service_gateway_id.strip()) == 0: + if isinstance(service_gateway_id, str) and len(service_gateway_id.strip()) == 0: raise click.UsageError('Parameter --service-gateway-id cannot be whitespace or empty string') kwargs = {} @@ -8318,7 +8317,7 @@ def get_service_gateway(ctx, from_json, service_gateway_id): @cli_util.wrap_exceptions def get_subnet(ctx, from_json, subnet_id): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -8339,7 +8338,7 @@ def get_subnet(ctx, from_json, subnet_id): @cli_util.wrap_exceptions def get_subnet_cidr_utilization(ctx, from_json, subnet_id): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -8361,7 +8360,7 @@ def get_subnet_cidr_utilization(ctx, from_json, subnet_id): @cli_util.wrap_exceptions def get_subnet_ip_inventory(ctx, from_json, subnet_id): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -8419,10 +8418,10 @@ def get_subnet_topology(ctx, from_json, compartment_id, subnet_id, access_level, @cli_util.wrap_exceptions def get_tunnel_cpe_device_config(ctx, from_json, ipsc_id, tunnel_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') kwargs = {} @@ -8453,10 +8452,10 @@ def get_tunnel_cpe_device_config(ctx, from_json, ipsc_id, tunnel_id): @cli_util.wrap_exceptions def get_tunnel_cpe_device_config_content(ctx, from_json, file, ipsc_id, tunnel_id): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') kwargs = {} @@ -8501,7 +8500,7 @@ def get_tunnel_cpe_device_config_content(ctx, from_json, file, ipsc_id, tunnel_i @cli_util.wrap_exceptions def get_upgrade_status(ctx, from_json, drg_id): - if isinstance(drg_id, six.string_types) and len(drg_id.strip()) == 0: + if isinstance(drg_id, str) and len(drg_id.strip()) == 0: raise click.UsageError('Parameter --drg-id cannot be whitespace or empty string') kwargs = {} @@ -8523,7 +8522,7 @@ def get_upgrade_status(ctx, from_json, drg_id): @cli_util.wrap_exceptions def get_vcn(ctx, from_json, vcn_id): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -8544,7 +8543,7 @@ def get_vcn(ctx, from_json, vcn_id): @cli_util.wrap_exceptions def get_vcn_dns_resolver_association(ctx, from_json, vcn_id): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -8568,7 +8567,7 @@ def get_vcn_dns_resolver_association(ctx, from_json, vcn_id): @cli_util.wrap_exceptions def get_vcn_overlap(ctx, from_json, vcn_id, region_list, compartment_list): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -8631,7 +8630,7 @@ def get_vcn_topology(ctx, from_json, compartment_id, vcn_id, access_level, query @cli_util.wrap_exceptions def get_virtual_circuit(ctx, from_json, virtual_circuit_id): - if isinstance(virtual_circuit_id, six.string_types) and len(virtual_circuit_id.strip()) == 0: + if isinstance(virtual_circuit_id, str) and len(virtual_circuit_id.strip()) == 0: raise click.UsageError('Parameter --virtual-circuit-id cannot be whitespace or empty string') kwargs = {} @@ -8652,7 +8651,7 @@ def get_virtual_circuit(ctx, from_json, virtual_circuit_id): @cli_util.wrap_exceptions def get_vlan(ctx, from_json, vlan_id): - if isinstance(vlan_id, six.string_types) and len(vlan_id.strip()) == 0: + if isinstance(vlan_id, str) and len(vlan_id.strip()) == 0: raise click.UsageError('Parameter --vlan-id cannot be whitespace or empty string') kwargs = {} @@ -8674,7 +8673,7 @@ def get_vlan(ctx, from_json, vlan_id): @cli_util.wrap_exceptions def get_vnic(ctx, from_json, vnic_id): - if isinstance(vnic_id, six.string_types) and len(vnic_id.strip()) == 0: + if isinstance(vnic_id, str) and len(vnic_id.strip()) == 0: raise click.UsageError('Parameter --vnic-id cannot be whitespace or empty string') kwargs = {} @@ -8695,7 +8694,7 @@ def get_vnic(ctx, from_json, vnic_id): @cli_util.wrap_exceptions def get_vtap(ctx, from_json, vtap_id): - if isinstance(vtap_id, six.string_types) and len(vtap_id.strip()) == 0: + if isinstance(vtap_id, str) and len(vtap_id.strip()) == 0: raise click.UsageError('Parameter --vtap-id cannot be whitespace or empty string') kwargs = {} @@ -8721,7 +8720,7 @@ def get_vtap(ctx, from_json, vtap_id): @cli_util.wrap_exceptions def ipv6_vnic_detach(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ipv6_id, if_match): - if isinstance(ipv6_id, six.string_types) and len(ipv6_id.strip()) == 0: + if isinstance(ipv6_id, str) and len(ipv6_id.strip()) == 0: raise click.UsageError('Parameter --ipv6-id cannot be whitespace or empty string') kwargs = {} @@ -8856,7 +8855,7 @@ def list_byoip_allocated_ranges(ctx, from_json, all_pages, page_size, byoip_rang if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') kwargs = {} @@ -9245,7 +9244,7 @@ def list_cross_connect_locations(ctx, from_json, all_pages, page_size, compartme @cli_util.wrap_exceptions def list_cross_connect_mappings(ctx, from_json, all_pages, virtual_circuit_id): - if isinstance(virtual_circuit_id, six.string_types) and len(virtual_circuit_id.strip()) == 0: + if isinstance(virtual_circuit_id, str) and len(virtual_circuit_id.strip()) == 0: raise click.UsageError('Parameter --virtual-circuit-id cannot be whitespace or empty string') kwargs = {} @@ -9539,7 +9538,7 @@ def list_drg_route_distribution_statements(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(drg_route_distribution_id, six.string_types) and len(drg_route_distribution_id.strip()) == 0: + if isinstance(drg_route_distribution_id, str) and len(drg_route_distribution_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-distribution-id cannot be whitespace or empty string') kwargs = {} @@ -9661,7 +9660,7 @@ def list_drg_route_rules(ctx, from_json, all_pages, page_size, drg_route_table_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(drg_route_table_id, six.string_types) and len(drg_route_table_id.strip()) == 0: + if isinstance(drg_route_table_id, str) and len(drg_route_table_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-table-id cannot be whitespace or empty string') kwargs = {} @@ -9887,7 +9886,7 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(ctx, from_json, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(provider_service_id, six.string_types) and len(provider_service_id.strip()) == 0: + if isinstance(provider_service_id, str) and len(provider_service_id.strip()) == 0: raise click.UsageError('Parameter --provider-service-id cannot be whitespace or empty string') kwargs = {} @@ -10077,10 +10076,10 @@ def list_ip_sec_connection_tunnel_routes(ctx, from_json, all_pages, page_size, i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') kwargs = {} @@ -10138,10 +10137,10 @@ def list_ip_sec_connection_tunnel_security_associations(ctx, from_json, all_page if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') kwargs = {} @@ -10196,7 +10195,7 @@ def list_ip_sec_connection_tunnels(ctx, from_json, all_pages, page_size, ipsc_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') kwargs = {} @@ -10487,7 +10486,7 @@ def list_network_security_group_security_rules(ctx, from_json, all_pages, page_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_security_group_id, six.string_types) and len(network_security_group_id.strip()) == 0: + if isinstance(network_security_group_id, str) and len(network_security_group_id.strip()) == 0: raise click.UsageError('Parameter --network-security-group-id cannot be whitespace or empty string') kwargs = {} @@ -10547,7 +10546,7 @@ def list_network_security_group_vnics(ctx, from_json, all_pages, page_size, netw if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_security_group_id, six.string_types) and len(network_security_group_id.strip()) == 0: + if isinstance(network_security_group_id, str) and len(network_security_group_id.strip()) == 0: raise click.UsageError('Parameter --network-security-group-id cannot be whitespace or empty string') kwargs = {} @@ -10740,7 +10739,7 @@ def list_provider_remote_regions(ctx, from_json, all_pages, page_size, provider_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(provider_service_id, six.string_types) and len(provider_service_id.strip()) == 0: + if isinstance(provider_service_id, str) and len(provider_service_id.strip()) == 0: raise click.UsageError('Parameter --provider-service-id cannot be whitespace or empty string') kwargs = {} @@ -11354,7 +11353,7 @@ def list_virtual_circuit_associated_tunnels(ctx, from_json, all_pages, page_size if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(virtual_circuit_id, six.string_types) and len(virtual_circuit_id.strip()) == 0: + if isinstance(virtual_circuit_id, str) and len(virtual_circuit_id.strip()) == 0: raise click.UsageError('Parameter --virtual-circuit-id cannot be whitespace or empty string') kwargs = {} @@ -11450,7 +11449,7 @@ def list_virtual_circuit_bandwidth_shapes(ctx, from_json, all_pages, page_size, @cli_util.wrap_exceptions def list_virtual_circuit_public_prefixes(ctx, from_json, all_pages, virtual_circuit_id, verification_state): - if isinstance(virtual_circuit_id, six.string_types) and len(virtual_circuit_id.strip()) == 0: + if isinstance(virtual_circuit_id, str) and len(virtual_circuit_id.strip()) == 0: raise click.UsageError('Parameter --virtual-circuit-id cannot be whitespace or empty string') kwargs = {} @@ -11692,7 +11691,7 @@ def list_vtaps(ctx, from_json, all_pages, page_size, compartment_id, vcn_id, sou @cli_util.wrap_exceptions def modify_ipv4_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, ipv4_cidr_block, updated_ipv4_cidr_block, if_match): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -11767,7 +11766,7 @@ def modify_ipv4_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def modify_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vcn_id, original_cidr_block, new_cidr_block, if_match): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -11837,7 +11836,7 @@ def modify_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def patch_subnet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, patch_subnet_instructions, if_match): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -11906,7 +11905,7 @@ def patch_subnet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def patch_vcn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vcn_id, patch_vcn_instructions, if_match): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -11971,7 +11970,7 @@ def patch_vcn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_se @cli_util.wrap_exceptions def private_ip_vnic_detach(ctx, from_json, private_ip_id, if_match): - if isinstance(private_ip_id, six.string_types) and len(private_ip_id.strip()) == 0: + if isinstance(private_ip_id, str) and len(private_ip_id.strip()) == 0: raise click.UsageError('Parameter --private-ip-id cannot be whitespace or empty string') kwargs = {} @@ -11996,7 +11995,7 @@ def private_ip_vnic_detach(ctx, from_json, private_ip_id, if_match): @cli_util.wrap_exceptions def remove_drg_route_distribution_statements(ctx, from_json, drg_route_distribution_id, statement_ids): - if isinstance(drg_route_distribution_id, six.string_types) and len(drg_route_distribution_id.strip()) == 0: + if isinstance(drg_route_distribution_id, str) and len(drg_route_distribution_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-distribution-id cannot be whitespace or empty string') kwargs = {} @@ -12025,7 +12024,7 @@ def remove_drg_route_distribution_statements(ctx, from_json, drg_route_distribut @cli_util.wrap_exceptions def remove_drg_route_rules(ctx, from_json, drg_route_table_id, route_rule_ids): - if isinstance(drg_route_table_id, six.string_types) and len(drg_route_table_id.strip()) == 0: + if isinstance(drg_route_table_id, str) and len(drg_route_table_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-table-id cannot be whitespace or empty string') kwargs = {} @@ -12057,7 +12056,7 @@ def remove_drg_route_rules(ctx, from_json, drg_route_table_id, route_rule_ids): @cli_util.wrap_exceptions def remove_export_drg_route_distribution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_attachment_id, if_match): - if isinstance(drg_attachment_id, six.string_types) and len(drg_attachment_id.strip()) == 0: + if isinstance(drg_attachment_id, str) and len(drg_attachment_id.strip()) == 0: raise click.UsageError('Parameter --drg-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -12108,7 +12107,7 @@ def remove_export_drg_route_distribution(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def remove_import_drg_route_distribution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_route_table_id, if_match): - if isinstance(drg_route_table_id, six.string_types) and len(drg_route_table_id.strip()) == 0: + if isinstance(drg_route_table_id, str) and len(drg_route_table_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-table-id cannot be whitespace or empty string') kwargs = {} @@ -12164,7 +12163,7 @@ def remove_import_drg_route_distribution(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def remove_ipv4_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, ipv4_cidr_block, if_match): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -12235,7 +12234,7 @@ def remove_ipv4_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def remove_ipv6_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, ipv6_cidr_block, if_match): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') kwargs = {} @@ -12306,7 +12305,7 @@ def remove_ipv6_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def remove_ipv6_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vcn_id, if_match, ipv6_cidr_block): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -12373,7 +12372,7 @@ def remove_ipv6_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def remove_network_security_group_security_rules(ctx, from_json, network_security_group_id, security_rule_ids): - if isinstance(network_security_group_id, six.string_types) and len(network_security_group_id.strip()) == 0: + if isinstance(network_security_group_id, str) and len(network_security_group_id.strip()) == 0: raise click.UsageError('Parameter --network-security-group-id cannot be whitespace or empty string') kwargs = {} @@ -12405,7 +12404,7 @@ def remove_network_security_group_security_rules(ctx, from_json, network_securit @cli_util.wrap_exceptions def remove_public_ip_pool_capacity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, public_ip_pool_id, cidr_block): - if isinstance(public_ip_pool_id, six.string_types) and len(public_ip_pool_id.strip()) == 0: + if isinstance(public_ip_pool_id, str) and len(public_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -12462,7 +12461,7 @@ def remove_public_ip_pool_capacity(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def remove_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vcn_id, cidr_block, if_match): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') kwargs = {} @@ -12532,7 +12531,7 @@ def remove_vcn_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def set_origin_asn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, byoip_range_id, byoasn_id, as_path_prepend_length, if_match): - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') kwargs = {} @@ -12600,7 +12599,7 @@ def set_origin_asn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def set_origin_asn_to_oracle(ctx, from_json, byoip_range_id, if_match): - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') kwargs = {} @@ -12636,7 +12635,7 @@ def set_origin_asn_to_oracle(ctx, from_json, byoip_range_id, if_match): @cli_util.wrap_exceptions def update_byoasn(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, byoasn_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(byoasn_id, six.string_types) and len(byoasn_id.strip()) == 0: + if isinstance(byoasn_id, str) and len(byoasn_id.strip()) == 0: raise click.UsageError('Parameter --byoasn-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -12712,7 +12711,7 @@ def update_byoasn(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_byoip_range(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, byoip_range_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -12794,7 +12793,7 @@ def update_byoip_range(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_capture_filter(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, capture_filter_id, defined_tags, display_name, vtap_capture_filter_rules, flow_log_capture_filter_rules, freeform_tags, if_match): - if isinstance(capture_filter_id, six.string_types) and len(capture_filter_id.strip()) == 0: + if isinstance(capture_filter_id, str) and len(capture_filter_id.strip()) == 0: raise click.UsageError('Parameter --capture-filter-id cannot be whitespace or empty string') if not force: if defined_tags or vtap_capture_filter_rules or flow_log_capture_filter_rules or freeform_tags: @@ -12878,7 +12877,7 @@ def update_capture_filter(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_cpe(ctx, from_json, force, cpe_id, defined_tags, display_name, freeform_tags, cpe_device_shape_id, if_match): - if isinstance(cpe_id, six.string_types) and len(cpe_id.strip()) == 0: + if isinstance(cpe_id, str) and len(cpe_id.strip()) == 0: raise click.UsageError('Parameter --cpe-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -12940,7 +12939,7 @@ def update_cpe(ctx, from_json, force, cpe_id, defined_tags, display_name, freefo @cli_util.wrap_exceptions def update_cross_connect(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cross_connect_id, defined_tags, display_name, freeform_tags, is_active, customer_reference_name, macsec_properties, is_interface_hold_timer_enabled, interface_down_timer_value_in_milliseconds, if_match): - if isinstance(cross_connect_id, six.string_types) and len(cross_connect_id.strip()) == 0: + if isinstance(cross_connect_id, str) and len(cross_connect_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or macsec_properties: @@ -13035,7 +13034,7 @@ def update_cross_connect(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_cross_connect_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cross_connect_group_id, defined_tags, display_name, customer_reference_name, freeform_tags, macsec_properties, minimum_links, is_interface_hold_timer_enabled, interface_down_timer_value_in_milliseconds, if_match): - if isinstance(cross_connect_group_id, six.string_types) and len(cross_connect_group_id.strip()) == 0: + if isinstance(cross_connect_group_id, str) and len(cross_connect_group_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-group-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or macsec_properties: @@ -13117,7 +13116,7 @@ def update_cross_connect_group(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_cross_connect_letter_of_authority(ctx, from_json, cross_connect_id, should_extend, should_remove_authorized_agent, authorized_agent, if_match): - if isinstance(cross_connect_id, six.string_types) and len(cross_connect_id.strip()) == 0: + if isinstance(cross_connect_id, str) and len(cross_connect_id.strip()) == 0: raise click.UsageError('Parameter --cross-connect-id cannot be whitespace or empty string') kwargs = {} @@ -13172,7 +13171,7 @@ def update_cross_connect_letter_of_authority(ctx, from_json, cross_connect_id, s @cli_util.wrap_exceptions def update_dhcp_options(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dhcp_id, defined_tags, display_name, freeform_tags, options, domain_name_type, if_match): - if isinstance(dhcp_id, six.string_types) and len(dhcp_id.strip()) == 0: + if isinstance(dhcp_id, str) and len(dhcp_id.strip()) == 0: raise click.UsageError('Parameter --dhcp-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or options: @@ -13254,7 +13253,7 @@ def update_dhcp_options(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_drg(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_id, defined_tags, default_drg_route_tables, display_name, freeform_tags, if_match): - if isinstance(drg_id, six.string_types) and len(drg_id.strip()) == 0: + if isinstance(drg_id, str) and len(drg_id.strip()) == 0: raise click.UsageError('Parameter --drg-id cannot be whitespace or empty string') if not force: if defined_tags or default_drg_route_tables or freeform_tags: @@ -13344,7 +13343,7 @@ def update_drg(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_drg_attachment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_attachment_id, display_name, drg_route_table_id, network_details, defined_tags, freeform_tags, export_drg_route_distribution_id, route_table_id, if_match): - if isinstance(drg_attachment_id, six.string_types) and len(drg_attachment_id.strip()) == 0: + if isinstance(drg_attachment_id, str) and len(drg_attachment_id.strip()) == 0: raise click.UsageError('Parameter --drg-attachment-id cannot be whitespace or empty string') if not force: if network_details or defined_tags or freeform_tags: @@ -13448,7 +13447,7 @@ def update_drg_attachment(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_drg_attachment_vcn_drg_attachment_network_update_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_attachment_id, display_name, drg_route_table_id, defined_tags, freeform_tags, export_drg_route_distribution_id, route_table_id, if_match, network_details_route_table_id, network_details_vcn_route_type): - if isinstance(drg_attachment_id, six.string_types) and len(drg_attachment_id.strip()) == 0: + if isinstance(drg_attachment_id, str) and len(drg_attachment_id.strip()) == 0: raise click.UsageError('Parameter --drg-attachment-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -13541,7 +13540,7 @@ def update_drg_attachment_vcn_drg_attachment_network_update_details(ctx, from_js @cli_util.wrap_exceptions def update_drg_route_distribution(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_route_distribution_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(drg_route_distribution_id, six.string_types) and len(drg_route_distribution_id.strip()) == 0: + if isinstance(drg_route_distribution_id, str) and len(drg_route_distribution_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-distribution-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -13605,7 +13604,7 @@ def update_drg_route_distribution(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_drg_route_distribution_statements(ctx, from_json, drg_route_distribution_id, statements): - if isinstance(drg_route_distribution_id, six.string_types) and len(drg_route_distribution_id.strip()) == 0: + if isinstance(drg_route_distribution_id, str) and len(drg_route_distribution_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-distribution-id cannot be whitespace or empty string') kwargs = {} @@ -13634,7 +13633,7 @@ def update_drg_route_distribution_statements(ctx, from_json, drg_route_distribut @cli_util.wrap_exceptions def update_drg_route_rules(ctx, from_json, drg_route_table_id, route_rules): - if isinstance(drg_route_table_id, six.string_types) and len(drg_route_table_id.strip()) == 0: + if isinstance(drg_route_table_id, str) and len(drg_route_table_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-table-id cannot be whitespace or empty string') kwargs = {} @@ -13676,7 +13675,7 @@ def update_drg_route_rules(ctx, from_json, drg_route_table_id, route_rules): @cli_util.wrap_exceptions def update_drg_route_table(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_route_table_id, defined_tags, display_name, freeform_tags, import_drg_route_distribution_id, is_ecmp_enabled, if_match): - if isinstance(drg_route_table_id, six.string_types) and len(drg_route_table_id.strip()) == 0: + if isinstance(drg_route_table_id, str) and len(drg_route_table_id.strip()) == 0: raise click.UsageError('Parameter --drg-route-table-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -13761,7 +13760,7 @@ def update_drg_route_table(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_internet_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ig_id, defined_tags, display_name, freeform_tags, is_enabled, route_table_id, if_match): - if isinstance(ig_id, six.string_types) and len(ig_id.strip()) == 0: + if isinstance(ig_id, str) and len(ig_id.strip()) == 0: raise click.UsageError('Parameter --ig-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -13857,7 +13856,7 @@ def update_internet_gateway(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_ip_sec_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ipsc_id, defined_tags, display_name, freeform_tags, cpe_local_identifier, cpe_local_identifier_type, static_routes, if_match): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or static_routes: @@ -13955,10 +13954,10 @@ def update_ip_sec_connection(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_ip_sec_connection_tunnel(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ipsc_id, tunnel_id, display_name, routing, ike_version, bgp_session_config, oracle_initiation, nat_translation_enabled, phase_one_config, phase_two_config, dpd_config, encryption_domain_config, if_match): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') if not force: if bgp_session_config or phase_one_config or phase_two_config or dpd_config or encryption_domain_config: @@ -14049,10 +14048,10 @@ def update_ip_sec_connection_tunnel(ctx, from_json, force, wait_for_state, max_w @cli_util.wrap_exceptions def update_ip_sec_connection_tunnel_shared_secret(ctx, from_json, ipsc_id, tunnel_id, shared_secret, if_match): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') kwargs = {} @@ -14101,7 +14100,7 @@ def update_ip_sec_connection_tunnel_shared_secret(ctx, from_json, ipsc_id, tunne @cli_util.wrap_exceptions def update_ipv6(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ipv6_id, defined_tags, display_name, freeform_tags, vnic_id, hostname, route_table_id, lifetime, if_match): - if isinstance(ipv6_id, six.string_types) and len(ipv6_id.strip()) == 0: + if isinstance(ipv6_id, str) and len(ipv6_id.strip()) == 0: raise click.UsageError('Parameter --ipv6-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -14195,7 +14194,7 @@ def update_ipv6(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_local_peering_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, local_peering_gateway_id, defined_tags, display_name, freeform_tags, security_attributes, route_table_id, if_match): - if isinstance(local_peering_gateway_id, six.string_types) and len(local_peering_gateway_id.strip()) == 0: + if isinstance(local_peering_gateway_id, str) and len(local_peering_gateway_id.strip()) == 0: raise click.UsageError('Parameter --local-peering-gateway-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or security_attributes: @@ -14282,7 +14281,7 @@ def update_local_peering_gateway(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_nat_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, nat_gateway_id, defined_tags, display_name, freeform_tags, block_traffic, route_table_id, if_match): - if isinstance(nat_gateway_id, six.string_types) and len(nat_gateway_id.strip()) == 0: + if isinstance(nat_gateway_id, str) and len(nat_gateway_id.strip()) == 0: raise click.UsageError('Parameter --nat-gateway-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -14371,7 +14370,7 @@ def update_nat_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_network_security_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_security_group_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(network_security_group_id, six.string_types) and len(network_security_group_id.strip()) == 0: + if isinstance(network_security_group_id, str) and len(network_security_group_id.strip()) == 0: raise click.UsageError('Parameter --network-security-group-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -14437,7 +14436,7 @@ def update_network_security_group(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_network_security_group_security_rules(ctx, from_json, network_security_group_id, security_rules): - if isinstance(network_security_group_id, six.string_types) and len(network_security_group_id.strip()) == 0: + if isinstance(network_security_group_id, str) and len(network_security_group_id.strip()) == 0: raise click.UsageError('Parameter --network-security-group-id cannot be whitespace or empty string') kwargs = {} @@ -14486,7 +14485,7 @@ def update_network_security_group_security_rules(ctx, from_json, network_securit @cli_util.wrap_exceptions def update_private_ip(ctx, from_json, force, private_ip_id, defined_tags, display_name, freeform_tags, hostname_label, vnic_id, lifetime, route_table_id, if_match): - if isinstance(private_ip_id, six.string_types) and len(private_ip_id.strip()) == 0: + if isinstance(private_ip_id, str) and len(private_ip_id.strip()) == 0: raise click.UsageError('Parameter --private-ip-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -14565,7 +14564,7 @@ def update_private_ip(ctx, from_json, force, private_ip_id, defined_tags, displa @cli_util.wrap_exceptions def update_public_ip(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, public_ip_id, defined_tags, display_name, freeform_tags, private_ip_id, if_match): - if isinstance(public_ip_id, six.string_types) and len(public_ip_id.strip()) == 0: + if isinstance(public_ip_id, str) and len(public_ip_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -14643,7 +14642,7 @@ def update_public_ip(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_public_ip_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, public_ip_pool_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(public_ip_pool_id, six.string_types) and len(public_ip_pool_id.strip()) == 0: + if isinstance(public_ip_pool_id, str) and len(public_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --public-ip-pool-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -14719,7 +14718,7 @@ def update_public_ip_pool(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_remote_peering_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, remote_peering_connection_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(remote_peering_connection_id, six.string_types) and len(remote_peering_connection_id.strip()) == 0: + if isinstance(remote_peering_connection_id, str) and len(remote_peering_connection_id.strip()) == 0: raise click.UsageError('Parameter --remote-peering-connection-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -14799,7 +14798,7 @@ def update_remote_peering_connection(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_route_table(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, rt_id, defined_tags, display_name, freeform_tags, route_rules, if_match): - if isinstance(rt_id, six.string_types) and len(rt_id.strip()) == 0: + if isinstance(rt_id, str) and len(rt_id.strip()) == 0: raise click.UsageError('Parameter --rt-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or route_rules: @@ -14885,7 +14884,7 @@ def update_route_table(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_security_list(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, security_list_id, defined_tags, display_name, egress_security_rules, freeform_tags, ingress_security_rules, if_match): - if isinstance(security_list_id, six.string_types) and len(security_list_id.strip()) == 0: + if isinstance(security_list_id, str) and len(security_list_id.strip()) == 0: raise click.UsageError('Parameter --security-list-id cannot be whitespace or empty string') if not force: if defined_tags or egress_security_rules or freeform_tags or ingress_security_rules: @@ -14977,7 +14976,7 @@ def update_security_list(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_service_gateway(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_gateway_id, block_traffic, defined_tags, display_name, freeform_tags, route_table_id, services, if_match): - if isinstance(service_gateway_id, six.string_types) and len(service_gateway_id.strip()) == 0: + if isinstance(service_gateway_id, str) and len(service_gateway_id.strip()) == 0: raise click.UsageError('Parameter --service-gateway-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or services: @@ -15077,7 +15076,7 @@ def update_service_gateway(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_subnet(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, defined_tags, dhcp_options_id, display_name, freeform_tags, route_table_id, security_list_ids, cidr_block, ipv6_cidr_block, ipv6_cidr_blocks, if_match): - if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0: + if isinstance(subnet_id, str) and len(subnet_id.strip()) == 0: raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or security_list_ids or ipv6_cidr_blocks: @@ -15164,10 +15163,10 @@ def update_subnet(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_tunnel_cpe_device_config(ctx, from_json, force, ipsc_id, tunnel_id, tunnel_cpe_device_config, if_match): - if isinstance(ipsc_id, six.string_types) and len(ipsc_id.strip()) == 0: + if isinstance(ipsc_id, str) and len(ipsc_id.strip()) == 0: raise click.UsageError('Parameter --ipsc-id cannot be whitespace or empty string') - if isinstance(tunnel_id, six.string_types) and len(tunnel_id.strip()) == 0: + if isinstance(tunnel_id, str) and len(tunnel_id.strip()) == 0: raise click.UsageError('Parameter --tunnel-id cannot be whitespace or empty string') if not force: if tunnel_cpe_device_config: @@ -15219,7 +15218,7 @@ def update_tunnel_cpe_device_config(ctx, from_json, force, ipsc_id, tunnel_id, t @cli_util.wrap_exceptions def update_vcn(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vcn_id, defined_tags, display_name, freeform_tags, security_attributes, is_zpr_only, if_match): - if isinstance(vcn_id, six.string_types) and len(vcn_id.strip()) == 0: + if isinstance(vcn_id, str) and len(vcn_id.strip()) == 0: raise click.UsageError('Parameter --vcn-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or security_attributes: @@ -15334,7 +15333,7 @@ def update_vcn(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_virtual_circuit(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, virtual_circuit_id, bandwidth_shape_name, cross_connect_mappings, routing_policy, bgp_admin_state, is_bfd_enabled, is_transport_mode, customer_bgp_asn, customer_asn, defined_tags, display_name, freeform_tags, traffic_mode, gateway_id, provider_state, provider_service_key_name, reference_comment, ip_mtu, if_match): - if isinstance(virtual_circuit_id, six.string_types) and len(virtual_circuit_id.strip()) == 0: + if isinstance(virtual_circuit_id, str) and len(virtual_circuit_id.strip()) == 0: raise click.UsageError('Parameter --virtual-circuit-id cannot be whitespace or empty string') if not force: if cross_connect_mappings or routing_policy or defined_tags or freeform_tags: @@ -15458,7 +15457,7 @@ def update_virtual_circuit(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_vlan(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vlan_id, defined_tags, display_name, freeform_tags, nsg_ids, route_table_id, cidr_block, if_match): - if isinstance(vlan_id, six.string_types) and len(vlan_id.strip()) == 0: + if isinstance(vlan_id, str) and len(vlan_id.strip()) == 0: raise click.UsageError('Parameter --vlan-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or nsg_ids: @@ -15560,7 +15559,7 @@ def update_vlan(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_vnic(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vnic_id, defined_tags, display_name, freeform_tags, security_attributes, hostname_label, nsg_ids, skip_source_dest_check, route_table_id, if_match): - if isinstance(vnic_id, six.string_types) and len(vnic_id.strip()) == 0: + if isinstance(vnic_id, str) and len(vnic_id.strip()) == 0: raise click.UsageError('Parameter --vnic-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or security_attributes or nsg_ids: @@ -15665,7 +15664,7 @@ def update_vnic(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_vtap(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vtap_id, defined_tags, display_name, freeform_tags, source_id, target_id, target_ip, capture_filter_id, encapsulation_protocol, vxlan_network_identifier, is_vtap_enabled, traffic_mode, max_packet_size, source_private_endpoint_ip, source_private_endpoint_subnet_id, target_type, source_type, if_match): - if isinstance(vtap_id, six.string_types) and len(vtap_id.strip()) == 0: + if isinstance(vtap_id, str) and len(vtap_id.strip()) == 0: raise click.UsageError('Parameter --vtap-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -15771,7 +15770,7 @@ def update_vtap(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def upgrade_drg(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, drg_id): - if isinstance(drg_id, six.string_types) and len(drg_id.strip()) == 0: + if isinstance(drg_id, str) and len(drg_id.strip()) == 0: raise click.UsageError('Parameter --drg-id cannot be whitespace or empty string') kwargs = {} @@ -15832,7 +15831,7 @@ def upgrade_drg(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def validate_byoasn(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, byoasn_id, if_match): - if isinstance(byoasn_id, six.string_types) and len(byoasn_id.strip()) == 0: + if isinstance(byoasn_id, str) and len(byoasn_id.strip()) == 0: raise click.UsageError('Parameter --byoasn-id cannot be whitespace or empty string') kwargs = {} @@ -15894,7 +15893,7 @@ def validate_byoasn(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def validate_byoip_range(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, byoip_range_id): - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') kwargs = {} @@ -15951,7 +15950,7 @@ def validate_byoip_range(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def withdraw_byoip_range(ctx, from_json, byoip_range_id): - if isinstance(byoip_range_id, six.string_types) and len(byoip_range_id.strip()) == 0: + if isinstance(byoip_range_id, str) and len(byoip_range_id.strip()) == 0: raise click.UsageError('Parameter --byoip-range-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/core/src/oci_cli_virtual_network/virtualnetwork_cli_extended.py b/services/core/src/oci_cli_virtual_network/virtualnetwork_cli_extended.py index d8d6ae5c4..373daa103 100644 --- a/services/core/src/oci_cli_virtual_network/virtualnetwork_cli_extended.py +++ b/services/core/src/oci_cli_virtual_network/virtualnetwork_cli_extended.py @@ -5,7 +5,6 @@ from __future__ import print_function import click import sys -import six # noqa: F401 from services.core.src.oci_cli_virtual_network.generated import virtualnetwork_cli @@ -133,7 +132,7 @@ def assign_private_ip(ctx, from_json, vnic_id, vlan_id, ip_address, display_name def _pre_strip(string): if string is None: return "" - elif isinstance(string, six.string_types): + elif isinstance(string, str): return string.strip() else: raise click.UsageError('Unexpected format for string {} '.format(string)) @@ -528,7 +527,7 @@ def virtual_circuit_bandwidth_shape_group(): def swap_nsg_id_value(kwargs): nsg_id = kwargs.pop('nsg_id') kwargs['network_security_group_id'] = nsg_id - if isinstance(nsg_id, six.string_types) and len(nsg_id.strip()) == 0: + if isinstance(nsg_id, str) and len(nsg_id.strip()) == 0: raise click.UsageError('Parameter --nsg-id cannot be whitespace or empty string') return kwargs diff --git a/services/costad/src/oci_cli_cost_ad/generated/costad_cli.py b/services/costad/src/oci_cli_cost_ad/generated/costad_cli.py index 2fb1faa66..d61dd2ebf 100644 --- a/services/costad/src/oci_cli_cost_ad/generated/costad_cli.py +++ b/services/costad/src/oci_cli_cost_ad/generated/costad_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -222,7 +221,7 @@ def create_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_cost_alert_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_id, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -286,7 +285,7 @@ def delete_cost_alert_subscription(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_monitor_id, if_match): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') kwargs = {} @@ -349,7 +348,7 @@ def delete_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def disable_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_monitor_id, if_match): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') kwargs = {} @@ -400,7 +399,7 @@ def disable_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def enable_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_monitor_id, if_match): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') kwargs = {} @@ -447,7 +446,7 @@ def enable_cost_anomaly_monitor(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def get_cost_alert_subscription(ctx, from_json, subscription_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -469,7 +468,7 @@ def get_cost_alert_subscription(ctx, from_json, subscription_id): @cli_util.wrap_exceptions def get_cost_anomaly_event(ctx, from_json, cost_anomaly_event_id): - if isinstance(cost_anomaly_event_id, six.string_types) and len(cost_anomaly_event_id.strip()) == 0: + if isinstance(cost_anomaly_event_id, str) and len(cost_anomaly_event_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-event-id cannot be whitespace or empty string') kwargs = {} @@ -491,7 +490,7 @@ def get_cost_anomaly_event(ctx, from_json, cost_anomaly_event_id): @cli_util.wrap_exceptions def get_cost_anomaly_monitor(ctx, from_json, cost_anomaly_monitor_id): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') kwargs = {} @@ -785,7 +784,7 @@ def summarize_cost_anomaly_event_analytics(ctx, from_json, compartment_id, limit @cli_util.wrap_exceptions def update_cost_alert_subscription(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_id, description, channels, defined_tags, freeform_tags, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -864,7 +863,7 @@ def update_cost_alert_subscription(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_cost_anomaly_event(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_event_id, feedback_response, defined_tags, freeform_tags, if_match): - if isinstance(cost_anomaly_event_id, six.string_types) and len(cost_anomaly_event_id.strip()) == 0: + if isinstance(cost_anomaly_event_id, str) and len(cost_anomaly_event_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-event-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -941,7 +940,7 @@ def update_cost_anomaly_event(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_cost_anomaly_monitor(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cost_anomaly_monitor_id, description, cost_alert_subscription_map, defined_tags, freeform_tags, if_match): - if isinstance(cost_anomaly_monitor_id, six.string_types) and len(cost_anomaly_monitor_id.strip()) == 0: + if isinstance(cost_anomaly_monitor_id, str) and len(cost_anomaly_monitor_id.strip()) == 0: raise click.UsageError('Parameter --cost-anomaly-monitor-id cannot be whitespace or empty string') if not force: if cost_alert_subscription_map or defined_tags or freeform_tags: diff --git a/services/dashboard_service/src/oci_cli_dashboard/generated/dashboard_cli.py b/services/dashboard_service/src/oci_cli_dashboard/generated/dashboard_cli.py index d03d4cccc..a6cc96155 100644 --- a/services/dashboard_service/src/oci_cli_dashboard/generated/dashboard_cli.py +++ b/services/dashboard_service/src/oci_cli_dashboard/generated/dashboard_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def dashboard_collection_group(): @cli_util.wrap_exceptions def change_dashboard_group(ctx, from_json, dashboard_id, dashboard_group_id, if_match): - if isinstance(dashboard_id, six.string_types) and len(dashboard_id.strip()) == 0: + if isinstance(dashboard_id, str) and len(dashboard_id.strip()) == 0: raise click.UsageError('Parameter --dashboard-id cannot be whitespace or empty string') kwargs = {} @@ -242,7 +241,7 @@ def create_dashboard_create_v1_dashboard_details(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def delete_dashboard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dashboard_id, if_match, opc_cross_region): - if isinstance(dashboard_id, six.string_types) and len(dashboard_id.strip()) == 0: + if isinstance(dashboard_id, str) and len(dashboard_id.strip()) == 0: raise click.UsageError('Parameter --dashboard-id cannot be whitespace or empty string') kwargs = {} @@ -304,7 +303,7 @@ def delete_dashboard(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_dashboard(ctx, from_json, dashboard_id, opc_cross_region): - if isinstance(dashboard_id, six.string_types) and len(dashboard_id.strip()) == 0: + if isinstance(dashboard_id, str) and len(dashboard_id.strip()) == 0: raise click.UsageError('Parameter --dashboard-id cannot be whitespace or empty string') kwargs = {} @@ -405,7 +404,7 @@ def list_dashboards(ctx, from_json, all_pages, page_size, dashboard_group_id, li @cli_util.wrap_exceptions def update_dashboard(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dashboard_id, schema_version, display_name, description, freeform_tags, defined_tags, if_match, opc_cross_region): - if isinstance(dashboard_id, six.string_types) and len(dashboard_id.strip()) == 0: + if isinstance(dashboard_id, str) and len(dashboard_id.strip()) == 0: raise click.UsageError('Parameter --dashboard-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -487,7 +486,7 @@ def update_dashboard(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_dashboard_update_v1_dashboard_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dashboard_id, display_name, description, freeform_tags, defined_tags, config, widgets, if_match, opc_cross_region): - if isinstance(dashboard_id, six.string_types) and len(dashboard_id.strip()) == 0: + if isinstance(dashboard_id, str) and len(dashboard_id.strip()) == 0: raise click.UsageError('Parameter --dashboard-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or config or widgets: diff --git a/services/dashboard_service/src/oci_cli_dashboard_group/generated/dashboardgroup_cli.py b/services/dashboard_service/src/oci_cli_dashboard_group/generated/dashboardgroup_cli.py index da2269600..9f5ae054b 100644 --- a/services/dashboard_service/src/oci_cli_dashboard_group/generated/dashboardgroup_cli.py +++ b/services/dashboard_service/src/oci_cli_dashboard_group/generated/dashboardgroup_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def dashboard_group_group(): @cli_util.wrap_exceptions def change_dashboard_group_compartment(ctx, from_json, dashboard_group_id, compartment_id, if_match): - if isinstance(dashboard_group_id, six.string_types) and len(dashboard_group_id.strip()) == 0: + if isinstance(dashboard_group_id, str) and len(dashboard_group_id.strip()) == 0: raise click.UsageError('Parameter --dashboard-group-id cannot be whitespace or empty string') kwargs = {} @@ -162,7 +161,7 @@ def create_dashboard_group(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_dashboard_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dashboard_group_id, if_match, opc_cross_region): - if isinstance(dashboard_group_id, six.string_types) and len(dashboard_group_id.strip()) == 0: + if isinstance(dashboard_group_id, str) and len(dashboard_group_id.strip()) == 0: raise click.UsageError('Parameter --dashboard-group-id cannot be whitespace or empty string') kwargs = {} @@ -224,7 +223,7 @@ def delete_dashboard_group(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def get_dashboard_group(ctx, from_json, dashboard_group_id, opc_cross_region): - if isinstance(dashboard_group_id, six.string_types) and len(dashboard_group_id.strip()) == 0: + if isinstance(dashboard_group_id, str) and len(dashboard_group_id.strip()) == 0: raise click.UsageError('Parameter --dashboard-group-id cannot be whitespace or empty string') kwargs = {} @@ -324,7 +323,7 @@ def list_dashboard_groups(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def update_dashboard_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dashboard_group_id, display_name, description, freeform_tags, defined_tags, if_match, opc_cross_region): - if isinstance(dashboard_group_id, six.string_types) and len(dashboard_group_id.strip()) == 0: + if isinstance(dashboard_group_id, str) and len(dashboard_group_id.strip()) == 0: raise click.UsageError('Parameter --dashboard-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/data_catalog/src/oci_cli_data_catalog/generated/datacatalog_cli.py b/services/data_catalog/src/oci_cli_data_catalog/generated/datacatalog_cli.py index ef561a3cc..31f8aa16c 100644 --- a/services/data_catalog/src/oci_cli_data_catalog/generated/datacatalog_cli.py +++ b/services/data_catalog/src/oci_cli_data_catalog/generated/datacatalog_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -350,7 +349,7 @@ def job_execution_collection_group(): @cli_util.wrap_exceptions def add_catalog_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, type, related_resource_id, message, time_created, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -419,7 +418,7 @@ def add_catalog_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def add_catalog_private_endpoint_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_private_endpoint_id, type, related_resource_id, message, time_created, if_match): - if isinstance(catalog_private_endpoint_id, six.string_types) and len(catalog_private_endpoint_id.strip()) == 0: + if isinstance(catalog_private_endpoint_id, str) and len(catalog_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --catalog-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -486,10 +485,10 @@ def add_catalog_private_endpoint_lock(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def add_data_selector_patterns(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, items, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -550,7 +549,7 @@ def add_data_selector_patterns(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def add_metastore_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, metastore_id, type, related_resource_id, message, time_created, if_match): - if isinstance(metastore_id, six.string_types) and len(metastore_id.strip()) == 0: + if isinstance(metastore_id, str) and len(metastore_id.strip()) == 0: raise click.UsageError('Parameter --metastore-id cannot be whitespace or empty string') kwargs = {} @@ -618,10 +617,10 @@ def add_metastore_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def associate_custom_property(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, type_key, custom_property_ids, is_event_enabled, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(type_key, six.string_types) and len(type_key.strip()) == 0: + if isinstance(type_key, str) and len(type_key.strip()) == 0: raise click.UsageError('Parameter --type-key cannot be whitespace or empty string') kwargs = {} @@ -685,10 +684,10 @@ def associate_custom_property(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def asynchronous_export_data_asset(ctx, from_json, catalog_id, data_asset_key, export_type, export_scope, object_storage_target): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -724,10 +723,10 @@ def asynchronous_export_data_asset(ctx, from_json, catalog_id, data_asset_key, e @cli_util.wrap_exceptions def asynchronous_export_glossary(ctx, from_json, catalog_id, glossary_key, object_storage_target): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') kwargs = {} @@ -763,7 +762,7 @@ def asynchronous_export_glossary(ctx, from_json, catalog_id, glossary_key, objec @cli_util.wrap_exceptions def attach_catalog_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_private_endpoint_id, catalog_id, if_match, is_lock_override): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -827,7 +826,7 @@ def attach_catalog_private_endpoint(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def change_catalog_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, catalog_id, if_match, is_lock_override): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -891,7 +890,7 @@ def change_catalog_compartment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_catalog_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, catalog_private_endpoint_id, if_match, is_lock_override): - if isinstance(catalog_private_endpoint_id, six.string_types) and len(catalog_private_endpoint_id.strip()) == 0: + if isinstance(catalog_private_endpoint_id, str) and len(catalog_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --catalog-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -955,7 +954,7 @@ def change_catalog_private_endpoint_compartment(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_metastore_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, metastore_id, if_match, is_lock_override): - if isinstance(metastore_id, six.string_types) and len(metastore_id.strip()) == 0: + if isinstance(metastore_id, str) and len(metastore_id.strip()) == 0: raise click.UsageError('Parameter --metastore-id cannot be whitespace or empty string') kwargs = {} @@ -1038,13 +1037,13 @@ def change_metastore_compartment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def create_attribute(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, entity_key, display_name, external_data_type, time_external, business_name, description, is_incremental_data, is_nullable, length, position, precision, scale, min_collection_count, max_collection_count, external_datatype_entity_key, external_parent_attribute_key, custom_property_members, type_key, properties): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') kwargs = {} @@ -1151,16 +1150,16 @@ def create_attribute(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def create_attribute_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, entity_key, attribute_key, name, term_key): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') - if isinstance(attribute_key, six.string_types) and len(attribute_key.strip()) == 0: + if isinstance(attribute_key, str) and len(attribute_key.strip()) == 0: raise click.UsageError('Parameter --attribute-key cannot be whitespace or empty string') kwargs = {} @@ -1371,10 +1370,10 @@ def create_catalog_private_endpoint(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def create_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, display_name, type_key, properties, description, custom_property_members, enc_properties, is_default): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -1456,10 +1455,10 @@ def create_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def create_custom_property(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, namespace_id, display_name, description, data_type, is_sortable, is_filterable, is_multi_valued, is_hidden, is_editable, is_shown_in_list, is_hidden_in_search, is_event_enabled, allowed_values, properties): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(namespace_id, six.string_types) and len(namespace_id.strip()) == 0: + if isinstance(namespace_id, str) and len(namespace_id.strip()) == 0: raise click.UsageError('Parameter --namespace-id cannot be whitespace or empty string') kwargs = {} @@ -1556,7 +1555,7 @@ def create_custom_property(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def create_data_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, display_name, type_key, description, custom_property_members, properties): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -1622,10 +1621,10 @@ def create_data_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def create_data_asset_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, name, term_key): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -1701,10 +1700,10 @@ def create_data_asset_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def create_entity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, display_name, time_external, business_name, type_key, description, is_logical, is_partition, folder_key, pattern_key, realized_expression, harvest_status, last_job_key, custom_property_members, properties): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -1799,13 +1798,13 @@ def create_entity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def create_entity_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, entity_key, name, term_key): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') kwargs = {} @@ -1878,10 +1877,10 @@ def create_entity_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def create_folder(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, display_name, time_external, business_name, description, custom_property_members, properties, parent_folder_key, last_job_key, harvest_status, type_key): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -1964,13 +1963,13 @@ def create_folder(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def create_folder_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, folder_key, name, term_key): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') kwargs = {} @@ -2037,7 +2036,7 @@ def create_folder_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def create_glossary(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, display_name, description, workflow_status, owner, custom_property_members): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -2109,7 +2108,7 @@ def create_glossary(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def create_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, display_name, job_definition_key, description, schedule_cron_expression, time_schedule_begin, time_schedule_end, connection_key): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -2188,7 +2187,7 @@ def create_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def create_job_definition(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, display_name, job_type, description, is_incremental, data_asset_key, glossary_key, connection_key, is_sample_data_extracted, sample_data_size_in_mbs, properties): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -2281,10 +2280,10 @@ def create_job_definition(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def create_job_execution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, job_key, sub_type, job_type, parent_key, time_started, time_ended, lifecycle_state, error_code, error_message, schedule_instance_key, process_key, external_url, event_key, data_entity_key, properties): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') kwargs = {} @@ -2451,7 +2450,7 @@ def create_metastore(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def create_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, display_name, description, is_service_defined): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -2518,7 +2517,7 @@ def create_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def create_pattern(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, display_name, description, expression, file_path_prefix, check_file_path_list, is_enable_check_failure_limit, check_failure_limit, properties): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -2602,10 +2601,10 @@ def create_pattern(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def create_term(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, glossary_key, display_name, description, is_allowed_to_have_child_terms, parent_term_key, owner, workflow_status, custom_property_members): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') kwargs = {} @@ -2682,13 +2681,13 @@ def create_term(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def create_term_relationship(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, glossary_key, term_key, display_name, related_term_key, description): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') - if isinstance(term_key, six.string_types) and len(term_key.strip()) == 0: + if isinstance(term_key, str) and len(term_key.strip()) == 0: raise click.UsageError('Parameter --term-key cannot be whitespace or empty string') kwargs = {} @@ -2749,16 +2748,16 @@ def create_term_relationship(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_attribute(ctx, from_json, catalog_id, data_asset_key, entity_key, attribute_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') - if isinstance(attribute_key, six.string_types) and len(attribute_key.strip()) == 0: + if isinstance(attribute_key, str) and len(attribute_key.strip()) == 0: raise click.UsageError('Parameter --attribute-key cannot be whitespace or empty string') kwargs = {} @@ -2791,19 +2790,19 @@ def delete_attribute(ctx, from_json, catalog_id, data_asset_key, entity_key, att @cli_util.wrap_exceptions def delete_attribute_tag(ctx, from_json, catalog_id, data_asset_key, entity_key, attribute_key, tag_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') - if isinstance(attribute_key, six.string_types) and len(attribute_key.strip()) == 0: + if isinstance(attribute_key, str) and len(attribute_key.strip()) == 0: raise click.UsageError('Parameter --attribute-key cannot be whitespace or empty string') - if isinstance(tag_key, six.string_types) and len(tag_key.strip()) == 0: + if isinstance(tag_key, str) and len(tag_key.strip()) == 0: raise click.UsageError('Parameter --tag-key cannot be whitespace or empty string') kwargs = {} @@ -2837,7 +2836,7 @@ def delete_attribute_tag(ctx, from_json, catalog_id, data_asset_key, entity_key, @cli_util.wrap_exceptions def delete_catalog(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, if_match, is_lock_override): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -2896,7 +2895,7 @@ def delete_catalog(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_catalog_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_private_endpoint_id, if_match, is_lock_override): - if isinstance(catalog_private_endpoint_id, six.string_types) and len(catalog_private_endpoint_id.strip()) == 0: + if isinstance(catalog_private_endpoint_id, str) and len(catalog_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --catalog-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2953,13 +2952,13 @@ def delete_catalog_private_endpoint(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def delete_connection(ctx, from_json, catalog_id, data_asset_key, connection_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') kwargs = {} @@ -2989,13 +2988,13 @@ def delete_connection(ctx, from_json, catalog_id, data_asset_key, connection_key @cli_util.wrap_exceptions def delete_custom_property(ctx, from_json, catalog_id, namespace_id, custom_property_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(namespace_id, six.string_types) and len(namespace_id.strip()) == 0: + if isinstance(namespace_id, str) and len(namespace_id.strip()) == 0: raise click.UsageError('Parameter --namespace-id cannot be whitespace or empty string') - if isinstance(custom_property_key, six.string_types) and len(custom_property_key.strip()) == 0: + if isinstance(custom_property_key, str) and len(custom_property_key.strip()) == 0: raise click.UsageError('Parameter --custom-property-key cannot be whitespace or empty string') kwargs = {} @@ -3024,10 +3023,10 @@ def delete_custom_property(ctx, from_json, catalog_id, namespace_id, custom_prop @cli_util.wrap_exceptions def delete_data_asset(ctx, from_json, catalog_id, data_asset_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -3056,13 +3055,13 @@ def delete_data_asset(ctx, from_json, catalog_id, data_asset_key, if_match): @cli_util.wrap_exceptions def delete_data_asset_tag(ctx, from_json, catalog_id, data_asset_key, tag_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(tag_key, six.string_types) and len(tag_key.strip()) == 0: + if isinstance(tag_key, str) and len(tag_key.strip()) == 0: raise click.UsageError('Parameter --tag-key cannot be whitespace or empty string') kwargs = {} @@ -3092,13 +3091,13 @@ def delete_data_asset_tag(ctx, from_json, catalog_id, data_asset_key, tag_key, i @cli_util.wrap_exceptions def delete_entity(ctx, from_json, catalog_id, data_asset_key, entity_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') kwargs = {} @@ -3129,16 +3128,16 @@ def delete_entity(ctx, from_json, catalog_id, data_asset_key, entity_key, if_mat @cli_util.wrap_exceptions def delete_entity_tag(ctx, from_json, catalog_id, data_asset_key, entity_key, tag_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') - if isinstance(tag_key, six.string_types) and len(tag_key.strip()) == 0: + if isinstance(tag_key, str) and len(tag_key.strip()) == 0: raise click.UsageError('Parameter --tag-key cannot be whitespace or empty string') kwargs = {} @@ -3169,13 +3168,13 @@ def delete_entity_tag(ctx, from_json, catalog_id, data_asset_key, entity_key, ta @cli_util.wrap_exceptions def delete_folder(ctx, from_json, catalog_id, data_asset_key, folder_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') kwargs = {} @@ -3206,16 +3205,16 @@ def delete_folder(ctx, from_json, catalog_id, data_asset_key, folder_key, if_mat @cli_util.wrap_exceptions def delete_folder_tag(ctx, from_json, catalog_id, data_asset_key, folder_key, tag_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') - if isinstance(tag_key, six.string_types) and len(tag_key.strip()) == 0: + if isinstance(tag_key, str) and len(tag_key.strip()) == 0: raise click.UsageError('Parameter --tag-key cannot be whitespace or empty string') kwargs = {} @@ -3245,10 +3244,10 @@ def delete_folder_tag(ctx, from_json, catalog_id, data_asset_key, folder_key, ta @cli_util.wrap_exceptions def delete_glossary(ctx, from_json, catalog_id, glossary_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') kwargs = {} @@ -3276,10 +3275,10 @@ def delete_glossary(ctx, from_json, catalog_id, glossary_key, if_match): @cli_util.wrap_exceptions def delete_job(ctx, from_json, catalog_id, job_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') kwargs = {} @@ -3307,10 +3306,10 @@ def delete_job(ctx, from_json, catalog_id, job_key, if_match): @cli_util.wrap_exceptions def delete_job_definition(ctx, from_json, catalog_id, job_definition_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_definition_key, six.string_types) and len(job_definition_key.strip()) == 0: + if isinstance(job_definition_key, str) and len(job_definition_key.strip()) == 0: raise click.UsageError('Parameter --job-definition-key cannot be whitespace or empty string') kwargs = {} @@ -3341,7 +3340,7 @@ def delete_job_definition(ctx, from_json, catalog_id, job_definition_key, if_mat @cli_util.wrap_exceptions def delete_metastore(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, metastore_id, if_match, is_lock_override): - if isinstance(metastore_id, six.string_types) and len(metastore_id.strip()) == 0: + if isinstance(metastore_id, str) and len(metastore_id.strip()) == 0: raise click.UsageError('Parameter --metastore-id cannot be whitespace or empty string') kwargs = {} @@ -3397,10 +3396,10 @@ def delete_metastore(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_namespace(ctx, from_json, catalog_id, namespace_id, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(namespace_id, six.string_types) and len(namespace_id.strip()) == 0: + if isinstance(namespace_id, str) and len(namespace_id.strip()) == 0: raise click.UsageError('Parameter --namespace-id cannot be whitespace or empty string') kwargs = {} @@ -3428,10 +3427,10 @@ def delete_namespace(ctx, from_json, catalog_id, namespace_id, if_match): @cli_util.wrap_exceptions def delete_pattern(ctx, from_json, catalog_id, pattern_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(pattern_key, six.string_types) and len(pattern_key.strip()) == 0: + if isinstance(pattern_key, str) and len(pattern_key.strip()) == 0: raise click.UsageError('Parameter --pattern-key cannot be whitespace or empty string') kwargs = {} @@ -3460,13 +3459,13 @@ def delete_pattern(ctx, from_json, catalog_id, pattern_key, if_match): @cli_util.wrap_exceptions def delete_term(ctx, from_json, catalog_id, glossary_key, term_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') - if isinstance(term_key, six.string_types) and len(term_key.strip()) == 0: + if isinstance(term_key, str) and len(term_key.strip()) == 0: raise click.UsageError('Parameter --term-key cannot be whitespace or empty string') kwargs = {} @@ -3497,16 +3496,16 @@ def delete_term(ctx, from_json, catalog_id, glossary_key, term_key, if_match): @cli_util.wrap_exceptions def delete_term_relationship(ctx, from_json, catalog_id, glossary_key, term_key, term_relationship_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') - if isinstance(term_key, six.string_types) and len(term_key.strip()) == 0: + if isinstance(term_key, str) and len(term_key.strip()) == 0: raise click.UsageError('Parameter --term-key cannot be whitespace or empty string') - if isinstance(term_relationship_key, six.string_types) and len(term_relationship_key.strip()) == 0: + if isinstance(term_relationship_key, str) and len(term_relationship_key.strip()) == 0: raise click.UsageError('Parameter --term-relationship-key cannot be whitespace or empty string') kwargs = {} @@ -3539,7 +3538,7 @@ def delete_term_relationship(ctx, from_json, catalog_id, glossary_key, term_key, @cli_util.wrap_exceptions def detach_catalog_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_private_endpoint_id, catalog_id, if_match, is_lock_override): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -3604,10 +3603,10 @@ def detach_catalog_private_endpoint(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def disassociate_custom_property(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, type_key, custom_property_ids, is_event_enabled, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(type_key, six.string_types) and len(type_key.strip()) == 0: + if isinstance(type_key, str) and len(type_key.strip()) == 0: raise click.UsageError('Parameter --type-key cannot be whitespace or empty string') kwargs = {} @@ -3666,10 +3665,10 @@ def disassociate_custom_property(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def expand_tree_for_glossary(ctx, from_json, catalog_id, glossary_key): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') kwargs = {} @@ -3694,10 +3693,10 @@ def expand_tree_for_glossary(ctx, from_json, catalog_id, glossary_key): @cli_util.wrap_exceptions def export_glossary(ctx, from_json, catalog_id, glossary_key, is_relationship_exported): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') kwargs = {} @@ -3731,13 +3730,13 @@ def export_glossary(ctx, from_json, catalog_id, glossary_key, is_relationship_ex @cli_util.wrap_exceptions def fetch_entity_lineage(ctx, from_json, catalog_id, data_asset_key, entity_key, level, direction, is_intra_lineage, intra_lineage_object_key, limit, page, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') kwargs = {} @@ -3788,16 +3787,16 @@ def fetch_entity_lineage(ctx, from_json, catalog_id, data_asset_key, entity_key, @cli_util.wrap_exceptions def get_attribute(ctx, from_json, catalog_id, data_asset_key, entity_key, attribute_key, is_include_object_relationships, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') - if isinstance(attribute_key, six.string_types) and len(attribute_key.strip()) == 0: + if isinstance(attribute_key, str) and len(attribute_key.strip()) == 0: raise click.UsageError('Parameter --attribute-key cannot be whitespace or empty string') kwargs = {} @@ -3831,19 +3830,19 @@ def get_attribute(ctx, from_json, catalog_id, data_asset_key, entity_key, attrib @cli_util.wrap_exceptions def get_attribute_tag(ctx, from_json, catalog_id, data_asset_key, entity_key, attribute_key, tag_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') - if isinstance(attribute_key, six.string_types) and len(attribute_key.strip()) == 0: + if isinstance(attribute_key, str) and len(attribute_key.strip()) == 0: raise click.UsageError('Parameter --attribute-key cannot be whitespace or empty string') - if isinstance(tag_key, six.string_types) and len(tag_key.strip()) == 0: + if isinstance(tag_key, str) and len(tag_key.strip()) == 0: raise click.UsageError('Parameter --tag-key cannot be whitespace or empty string') kwargs = {} @@ -3871,7 +3870,7 @@ def get_attribute_tag(ctx, from_json, catalog_id, data_asset_key, entity_key, at @cli_util.wrap_exceptions def get_catalog(ctx, from_json, catalog_id): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -3893,7 +3892,7 @@ def get_catalog(ctx, from_json, catalog_id): @cli_util.wrap_exceptions def get_catalog_private_endpoint(ctx, from_json, catalog_private_endpoint_id): - if isinstance(catalog_private_endpoint_id, six.string_types) and len(catalog_private_endpoint_id.strip()) == 0: + if isinstance(catalog_private_endpoint_id, str) and len(catalog_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --catalog-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3918,13 +3917,13 @@ def get_catalog_private_endpoint(ctx, from_json, catalog_private_endpoint_id): @cli_util.wrap_exceptions def get_connection(ctx, from_json, catalog_id, data_asset_key, connection_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') kwargs = {} @@ -3953,13 +3952,13 @@ def get_connection(ctx, from_json, catalog_id, data_asset_key, connection_key, f @cli_util.wrap_exceptions def get_custom_property(ctx, from_json, catalog_id, namespace_id, custom_property_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(namespace_id, six.string_types) and len(namespace_id.strip()) == 0: + if isinstance(namespace_id, str) and len(namespace_id.strip()) == 0: raise click.UsageError('Parameter --namespace-id cannot be whitespace or empty string') - if isinstance(custom_property_key, six.string_types) and len(custom_property_key.strip()) == 0: + if isinstance(custom_property_key, str) and len(custom_property_key.strip()) == 0: raise click.UsageError('Parameter --custom-property-key cannot be whitespace or empty string') kwargs = {} @@ -3987,10 +3986,10 @@ def get_custom_property(ctx, from_json, catalog_id, namespace_id, custom_propert @cli_util.wrap_exceptions def get_data_asset(ctx, from_json, catalog_id, data_asset_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -4018,13 +4017,13 @@ def get_data_asset(ctx, from_json, catalog_id, data_asset_key, fields): @cli_util.wrap_exceptions def get_data_asset_tag(ctx, from_json, catalog_id, data_asset_key, tag_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(tag_key, six.string_types) and len(tag_key.strip()) == 0: + if isinstance(tag_key, str) and len(tag_key.strip()) == 0: raise click.UsageError('Parameter --tag-key cannot be whitespace or empty string') kwargs = {} @@ -4054,13 +4053,13 @@ def get_data_asset_tag(ctx, from_json, catalog_id, data_asset_key, tag_key, fiel @cli_util.wrap_exceptions def get_entity(ctx, from_json, catalog_id, data_asset_key, entity_key, is_include_object_relationships, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') kwargs = {} @@ -4092,16 +4091,16 @@ def get_entity(ctx, from_json, catalog_id, data_asset_key, entity_key, is_includ @cli_util.wrap_exceptions def get_entity_tag(ctx, from_json, catalog_id, data_asset_key, entity_key, tag_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') - if isinstance(tag_key, six.string_types) and len(tag_key.strip()) == 0: + if isinstance(tag_key, str) and len(tag_key.strip()) == 0: raise click.UsageError('Parameter --tag-key cannot be whitespace or empty string') kwargs = {} @@ -4132,13 +4131,13 @@ def get_entity_tag(ctx, from_json, catalog_id, data_asset_key, entity_key, tag_k @cli_util.wrap_exceptions def get_folder(ctx, from_json, catalog_id, data_asset_key, folder_key, is_include_object_relationships, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') kwargs = {} @@ -4170,16 +4169,16 @@ def get_folder(ctx, from_json, catalog_id, data_asset_key, folder_key, is_includ @cli_util.wrap_exceptions def get_folder_tag(ctx, from_json, catalog_id, data_asset_key, folder_key, tag_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') - if isinstance(tag_key, six.string_types) and len(tag_key.strip()) == 0: + if isinstance(tag_key, str) and len(tag_key.strip()) == 0: raise click.UsageError('Parameter --tag-key cannot be whitespace or empty string') kwargs = {} @@ -4208,10 +4207,10 @@ def get_folder_tag(ctx, from_json, catalog_id, data_asset_key, folder_key, tag_k @cli_util.wrap_exceptions def get_glossary(ctx, from_json, catalog_id, glossary_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') kwargs = {} @@ -4238,10 +4237,10 @@ def get_glossary(ctx, from_json, catalog_id, glossary_key, fields): @cli_util.wrap_exceptions def get_job(ctx, from_json, catalog_id, job_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') kwargs = {} @@ -4268,10 +4267,10 @@ def get_job(ctx, from_json, catalog_id, job_key, fields): @cli_util.wrap_exceptions def get_job_definition(ctx, from_json, catalog_id, job_definition_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_definition_key, six.string_types) and len(job_definition_key.strip()) == 0: + if isinstance(job_definition_key, str) and len(job_definition_key.strip()) == 0: raise click.UsageError('Parameter --job-definition-key cannot be whitespace or empty string') kwargs = {} @@ -4299,13 +4298,13 @@ def get_job_definition(ctx, from_json, catalog_id, job_definition_key, fields): @cli_util.wrap_exceptions def get_job_execution(ctx, from_json, catalog_id, job_key, job_execution_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') - if isinstance(job_execution_key, six.string_types) and len(job_execution_key.strip()) == 0: + if isinstance(job_execution_key, str) and len(job_execution_key.strip()) == 0: raise click.UsageError('Parameter --job-execution-key cannot be whitespace or empty string') kwargs = {} @@ -4335,16 +4334,16 @@ def get_job_execution(ctx, from_json, catalog_id, job_key, job_execution_key, fi @cli_util.wrap_exceptions def get_job_log(ctx, from_json, catalog_id, job_key, job_execution_key, job_log_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') - if isinstance(job_execution_key, six.string_types) and len(job_execution_key.strip()) == 0: + if isinstance(job_execution_key, str) and len(job_execution_key.strip()) == 0: raise click.UsageError('Parameter --job-execution-key cannot be whitespace or empty string') - if isinstance(job_log_key, six.string_types) and len(job_log_key.strip()) == 0: + if isinstance(job_log_key, str) and len(job_log_key.strip()) == 0: raise click.UsageError('Parameter --job-log-key cannot be whitespace or empty string') kwargs = {} @@ -4375,16 +4374,16 @@ def get_job_log(ctx, from_json, catalog_id, job_key, job_execution_key, job_log_ @cli_util.wrap_exceptions def get_job_metrics(ctx, from_json, catalog_id, job_key, job_execution_key, job_metrics_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') - if isinstance(job_execution_key, six.string_types) and len(job_execution_key.strip()) == 0: + if isinstance(job_execution_key, str) and len(job_execution_key.strip()) == 0: raise click.UsageError('Parameter --job-execution-key cannot be whitespace or empty string') - if isinstance(job_metrics_key, six.string_types) and len(job_metrics_key.strip()) == 0: + if isinstance(job_metrics_key, str) and len(job_metrics_key.strip()) == 0: raise click.UsageError('Parameter --job-metrics-key cannot be whitespace or empty string') kwargs = {} @@ -4411,7 +4410,7 @@ def get_job_metrics(ctx, from_json, catalog_id, job_key, job_execution_key, job_ @cli_util.wrap_exceptions def get_metastore(ctx, from_json, metastore_id): - if isinstance(metastore_id, six.string_types) and len(metastore_id.strip()) == 0: + if isinstance(metastore_id, str) and len(metastore_id.strip()) == 0: raise click.UsageError('Parameter --metastore-id cannot be whitespace or empty string') kwargs = {} @@ -4435,10 +4434,10 @@ def get_metastore(ctx, from_json, metastore_id): @cli_util.wrap_exceptions def get_namespace(ctx, from_json, catalog_id, namespace_id, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(namespace_id, six.string_types) and len(namespace_id.strip()) == 0: + if isinstance(namespace_id, str) and len(namespace_id.strip()) == 0: raise click.UsageError('Parameter --namespace-id cannot be whitespace or empty string') kwargs = {} @@ -4465,10 +4464,10 @@ def get_namespace(ctx, from_json, catalog_id, namespace_id, fields): @cli_util.wrap_exceptions def get_pattern(ctx, from_json, catalog_id, pattern_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(pattern_key, six.string_types) and len(pattern_key.strip()) == 0: + if isinstance(pattern_key, str) and len(pattern_key.strip()) == 0: raise click.UsageError('Parameter --pattern-key cannot be whitespace or empty string') kwargs = {} @@ -4496,13 +4495,13 @@ def get_pattern(ctx, from_json, catalog_id, pattern_key, fields): @cli_util.wrap_exceptions def get_term(ctx, from_json, catalog_id, glossary_key, term_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') - if isinstance(term_key, six.string_types) and len(term_key.strip()) == 0: + if isinstance(term_key, str) and len(term_key.strip()) == 0: raise click.UsageError('Parameter --term-key cannot be whitespace or empty string') kwargs = {} @@ -4532,16 +4531,16 @@ def get_term(ctx, from_json, catalog_id, glossary_key, term_key, fields): @cli_util.wrap_exceptions def get_term_relationship(ctx, from_json, catalog_id, glossary_key, term_key, term_relationship_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') - if isinstance(term_key, six.string_types) and len(term_key.strip()) == 0: + if isinstance(term_key, str) and len(term_key.strip()) == 0: raise click.UsageError('Parameter --term-key cannot be whitespace or empty string') - if isinstance(term_relationship_key, six.string_types) and len(term_relationship_key.strip()) == 0: + if isinstance(term_relationship_key, str) and len(term_relationship_key.strip()) == 0: raise click.UsageError('Parameter --term-relationship-key cannot be whitespace or empty string') kwargs = {} @@ -4570,10 +4569,10 @@ def get_term_relationship(ctx, from_json, catalog_id, glossary_key, term_key, te @cli_util.wrap_exceptions def get_type(ctx, from_json, catalog_id, type_key, fields): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(type_key, six.string_types) and len(type_key.strip()) == 0: + if isinstance(type_key, str) and len(type_key.strip()) == 0: raise click.UsageError('Parameter --type-key cannot be whitespace or empty string') kwargs = {} @@ -4598,7 +4597,7 @@ def get_type(ctx, from_json, catalog_id, type_key, fields): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4624,10 +4623,10 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def import_connection(ctx, from_json, catalog_id, data_asset_key, connection_payload, connection_detail, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -4664,10 +4663,10 @@ def import_connection(ctx, from_json, catalog_id, data_asset_key, connection_pay @cli_util.wrap_exceptions def import_data_asset(ctx, from_json, catalog_id, data_asset_key, import_file_contents, import_type, is_missing_value_ignored): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -4701,10 +4700,10 @@ def import_data_asset(ctx, from_json, catalog_id, data_asset_key, import_file_co @cli_util.wrap_exceptions def import_glossary(ctx, from_json, catalog_id, glossary_key, glossary_file_contents, is_relationship_imported): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') kwargs = {} @@ -4738,10 +4737,10 @@ def import_glossary(ctx, from_json, catalog_id, glossary_key, glossary_file_cont @cli_util.wrap_exceptions def import_lineage(ctx, from_json, catalog_id, data_asset_key, lineage_payload): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -4783,13 +4782,13 @@ def list_aggregated_physical_entities(ctx, from_json, all_pages, page_size, cata if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') kwargs = {} @@ -4868,16 +4867,16 @@ def list_attribute_tags(ctx, from_json, all_pages, page_size, catalog_id, data_a if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') - if isinstance(attribute_key, six.string_types) and len(attribute_key.strip()) == 0: + if isinstance(attribute_key, str) and len(attribute_key.strip()) == 0: raise click.UsageError('Parameter --attribute-key cannot be whitespace or empty string') kwargs = {} @@ -4978,13 +4977,13 @@ def list_attributes(ctx, from_json, all_pages, page_size, catalog_id, data_asset if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') kwargs = {} @@ -5217,10 +5216,10 @@ def list_connections(ctx, from_json, all_pages, page_size, catalog_id, data_asse if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -5313,10 +5312,10 @@ def list_custom_properties(ctx, from_json, all_pages, page_size, catalog_id, nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(namespace_id, six.string_types) and len(namespace_id.strip()) == 0: + if isinstance(namespace_id, str) and len(namespace_id.strip()) == 0: raise click.UsageError('Parameter --namespace-id cannot be whitespace or empty string') kwargs = {} @@ -5404,10 +5403,10 @@ def list_data_asset_tags(ctx, from_json, all_pages, page_size, catalog_id, data_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -5491,7 +5490,7 @@ def list_data_assets(ctx, from_json, all_pages, page_size, catalog_id, display_n if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -5571,10 +5570,10 @@ def list_derived_logical_entities(ctx, from_json, all_pages, page_size, catalog_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(pattern_key, six.string_types) and len(pattern_key.strip()) == 0: + if isinstance(pattern_key, str) and len(pattern_key.strip()) == 0: raise click.UsageError('Parameter --pattern-key cannot be whitespace or empty string') kwargs = {} @@ -5661,10 +5660,10 @@ def list_entities(ctx, from_json, all_pages, page_size, catalog_id, data_asset_k if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -5777,13 +5776,13 @@ def list_entity_tags(ctx, from_json, all_pages, page_size, catalog_id, data_asse if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') kwargs = {} @@ -5869,13 +5868,13 @@ def list_folder_tags(ctx, from_json, all_pages, page_size, catalog_id, data_asse if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') kwargs = {} @@ -5969,10 +5968,10 @@ def list_folders(ctx, from_json, all_pages, page_size, catalog_id, data_asset_ke if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -6072,7 +6071,7 @@ def list_glossaries(ctx, from_json, all_pages, page_size, catalog_id, display_na if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -6160,7 +6159,7 @@ def list_job_definitions(ctx, from_json, all_pages, page_size, catalog_id, displ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -6265,10 +6264,10 @@ def list_job_executions(ctx, from_json, all_pages, page_size, catalog_id, job_ke if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') kwargs = {} @@ -6371,13 +6370,13 @@ def list_job_logs(ctx, from_json, all_pages, page_size, catalog_id, job_key, job if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') - if isinstance(job_execution_key, six.string_types) and len(job_execution_key.strip()) == 0: + if isinstance(job_execution_key, str) and len(job_execution_key.strip()) == 0: raise click.UsageError('Parameter --job-execution-key cannot be whitespace or empty string') kwargs = {} @@ -6469,13 +6468,13 @@ def list_job_metrics(ctx, from_json, all_pages, page_size, catalog_id, job_key, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') - if isinstance(job_execution_key, six.string_types) and len(job_execution_key.strip()) == 0: + if isinstance(job_execution_key, str) and len(job_execution_key.strip()) == 0: raise click.UsageError('Parameter --job-execution-key cannot be whitespace or empty string') kwargs = {} @@ -6583,7 +6582,7 @@ def list_jobs(ctx, from_json, all_pages, page_size, catalog_id, display_name, di if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -6746,7 +6745,7 @@ def list_namespaces(ctx, from_json, all_pages, page_size, catalog_id, display_na if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -6827,7 +6826,7 @@ def list_patterns(ctx, from_json, all_pages, page_size, catalog_id, display_name if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -6913,13 +6912,13 @@ def list_rules(ctx, from_json, all_pages, page_size, catalog_id, data_asset_key, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') kwargs = {} @@ -7008,7 +7007,7 @@ def list_tags(ctx, from_json, all_pages, page_size, catalog_id, display_name, di if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -7079,13 +7078,13 @@ def list_term_relationships(ctx, from_json, all_pages, page_size, catalog_id, gl if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') - if isinstance(term_key, six.string_types) and len(term_key.strip()) == 0: + if isinstance(term_key, str) and len(term_key.strip()) == 0: raise click.UsageError('Parameter --term-key cannot be whitespace or empty string') kwargs = {} @@ -7165,10 +7164,10 @@ def list_terms(ctx, from_json, all_pages, page_size, catalog_id, glossary_key, d if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') kwargs = {} @@ -7252,7 +7251,7 @@ def list_types(ctx, from_json, all_pages, page_size, catalog_id, name, lifecycle if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -7325,7 +7324,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -7382,7 +7381,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -7482,7 +7481,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def object_stats(ctx, from_json, catalog_id, sort_by, sort_order, limit, page): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -7518,10 +7517,10 @@ def object_stats(ctx, from_json, catalog_id, sort_by, sort_order, limit, page): @cli_util.wrap_exceptions def parse_connection(ctx, from_json, catalog_id, data_asset_key, connection_detail, connection_payload, wallet_secret_id, wallet_secret_name, connection_key): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -7566,7 +7565,7 @@ def parse_connection(ctx, from_json, catalog_id, data_asset_key, connection_deta @cli_util.wrap_exceptions def process_recommendation(ctx, from_json, catalog_id, recommendation_key, recommendation_status, properties, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -7603,7 +7602,7 @@ def process_recommendation(ctx, from_json, catalog_id, recommendation_key, recom @cli_util.wrap_exceptions def recommendations(ctx, from_json, catalog_id, recommendation_type, source_object_key, source_object_type, recommendation_status): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -7638,7 +7637,7 @@ def recommendations(ctx, from_json, catalog_id, recommendation_type, source_obje @cli_util.wrap_exceptions def remove_catalog_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, type, related_resource_id, message, time_created, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -7707,7 +7706,7 @@ def remove_catalog_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def remove_catalog_private_endpoint_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_private_endpoint_id, type, related_resource_id, message, time_created, if_match): - if isinstance(catalog_private_endpoint_id, six.string_types) and len(catalog_private_endpoint_id.strip()) == 0: + if isinstance(catalog_private_endpoint_id, str) and len(catalog_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --catalog-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -7774,10 +7773,10 @@ def remove_catalog_private_endpoint_lock(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def remove_data_selector_patterns(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, items, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -7838,7 +7837,7 @@ def remove_data_selector_patterns(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def remove_metastore_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, metastore_id, type, related_resource_id, message, time_created, if_match): - if isinstance(metastore_id, six.string_types) and len(metastore_id.strip()) == 0: + if isinstance(metastore_id, str) and len(metastore_id.strip()) == 0: raise click.UsageError('Parameter --metastore-id cannot be whitespace or empty string') kwargs = {} @@ -7914,7 +7913,7 @@ def remove_metastore_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def search_criteria(ctx, from_json, catalog_id, query_parameterconflict, faceted_query, dimensions, sort, filters, display_name, name, lifecycle_state, timeout, sort_by, sort_order, limit, page): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -7974,7 +7973,7 @@ def search_criteria(ctx, from_json, catalog_id, query_parameterconflict, faceted @cli_util.wrap_exceptions def suggest_matches(ctx, from_json, catalog_id, input_text, timeout, limit): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -8007,10 +8006,10 @@ def suggest_matches(ctx, from_json, catalog_id, input_text, timeout, limit): @cli_util.wrap_exceptions def synchronous_export_data_asset(ctx, from_json, file, catalog_id, data_asset_key, export_type, export_scope): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -8065,13 +8064,13 @@ def synchronous_export_data_asset(ctx, from_json, file, catalog_id, data_asset_k @cli_util.wrap_exceptions def test_connection(ctx, from_json, catalog_id, data_asset_key, connection_key): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') kwargs = {} @@ -8122,16 +8121,16 @@ def test_connection(ctx, from_json, catalog_id, data_asset_key, connection_key): @cli_util.wrap_exceptions def update_attribute(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, entity_key, attribute_key, display_name, business_name, description, external_data_type, is_incremental_data, is_nullable, length, position, precision, scale, time_external, min_collection_count, max_collection_count, external_datatype_entity_key, external_parent_attribute_key, custom_property_members, properties, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') - if isinstance(attribute_key, six.string_types) and len(attribute_key.strip()) == 0: + if isinstance(attribute_key, str) and len(attribute_key.strip()) == 0: raise click.UsageError('Parameter --attribute-key cannot be whitespace or empty string') if not force: if custom_property_members or properties: @@ -8249,7 +8248,7 @@ def update_attribute(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_catalog(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, display_name, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -8328,7 +8327,7 @@ def update_catalog(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_catalog_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_private_endpoint_id, dns_zones, freeform_tags, defined_tags, display_name, security_attributes, if_match, is_lock_override): - if isinstance(catalog_private_endpoint_id, six.string_types) and len(catalog_private_endpoint_id.strip()) == 0: + if isinstance(catalog_private_endpoint_id, str) and len(catalog_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --catalog-private-endpoint-id cannot be whitespace or empty string') if not force: if dns_zones or freeform_tags or defined_tags or security_attributes: @@ -8419,13 +8418,13 @@ def update_catalog_private_endpoint(ctx, from_json, force, wait_for_state, max_w @cli_util.wrap_exceptions def update_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, connection_key, description, display_name, custom_property_members, properties, enc_properties, is_default, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if custom_property_members or properties or enc_properties: @@ -8519,13 +8518,13 @@ def update_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_custom_property(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, namespace_id, custom_property_key, display_name, description, is_sortable, is_filterable, is_multi_valued, is_hidden, is_editable, is_shown_in_list, is_hidden_in_search, is_event_enabled, allowed_values, properties, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(namespace_id, six.string_types) and len(namespace_id.strip()) == 0: + if isinstance(namespace_id, str) and len(namespace_id.strip()) == 0: raise click.UsageError('Parameter --namespace-id cannot be whitespace or empty string') - if isinstance(custom_property_key, six.string_types) and len(custom_property_key.strip()) == 0: + if isinstance(custom_property_key, str) and len(custom_property_key.strip()) == 0: raise click.UsageError('Parameter --custom-property-key cannot be whitespace or empty string') if not force: if allowed_values or properties: @@ -8630,10 +8629,10 @@ def update_custom_property(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_data_asset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, display_name, description, custom_property_members, properties, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if custom_property_members or properties: @@ -8723,13 +8722,13 @@ def update_data_asset(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_entity(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, entity_key, display_name, business_name, description, time_external, is_logical, is_partition, folder_key, pattern_key, realized_expression, harvest_status, last_job_key, custom_property_members, properties, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(entity_key, six.string_types) and len(entity_key.strip()) == 0: + if isinstance(entity_key, str) and len(entity_key.strip()) == 0: raise click.UsageError('Parameter --entity-key cannot be whitespace or empty string') if not force: if custom_property_members or properties: @@ -8843,13 +8842,13 @@ def update_entity(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_folder(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, folder_key, display_name, business_name, description, parent_folder_key, custom_property_members, properties, time_external, harvest_status, last_job_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') if not force: if custom_property_members or properties: @@ -8946,10 +8945,10 @@ def update_folder(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_glossary(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, glossary_key, display_name, description, owner, workflow_status, custom_property_members, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') if not force: if custom_property_members: @@ -9031,10 +9030,10 @@ def update_glossary(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, job_key, display_name, description, schedule_cron_expression, time_schedule_begin, time_schedule_end, connection_key, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_key, six.string_types) and len(job_key.strip()) == 0: + if isinstance(job_key, str) and len(job_key.strip()) == 0: raise click.UsageError('Parameter --job-key cannot be whitespace or empty string') kwargs = {} @@ -9119,10 +9118,10 @@ def update_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def update_job_definition(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, job_definition_key, display_name, is_incremental, data_asset_key, glossary_key, description, connection_key, is_sample_data_extracted, sample_data_size_in_mbs, properties, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(job_definition_key, six.string_types) and len(job_definition_key.strip()) == 0: + if isinstance(job_definition_key, str) and len(job_definition_key.strip()) == 0: raise click.UsageError('Parameter --job-definition-key cannot be whitespace or empty string') if not force: if properties: @@ -9214,7 +9213,7 @@ def update_job_definition(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_metastore(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, metastore_id, display_name, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(metastore_id, six.string_types) and len(metastore_id.strip()) == 0: + if isinstance(metastore_id, str) and len(metastore_id.strip()) == 0: raise click.UsageError('Parameter --metastore-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -9288,10 +9287,10 @@ def update_metastore(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, namespace_id, display_name, description, is_service_defined, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(namespace_id, six.string_types) and len(namespace_id.strip()) == 0: + if isinstance(namespace_id, str) and len(namespace_id.strip()) == 0: raise click.UsageError('Parameter --namespace-id cannot be whitespace or empty string') kwargs = {} @@ -9366,10 +9365,10 @@ def update_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def update_pattern(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, pattern_key, display_name, description, expression, file_path_prefix, check_file_path_list, is_enable_check_failure_limit, check_failure_limit, properties, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(pattern_key, six.string_types) and len(pattern_key.strip()) == 0: + if isinstance(pattern_key, str) and len(pattern_key.strip()) == 0: raise click.UsageError('Parameter --pattern-key cannot be whitespace or empty string') if not force: if check_file_path_list or properties: @@ -9464,13 +9463,13 @@ def update_pattern(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_term(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, glossary_key, term_key, display_name, description, parent_term_key, owner, workflow_status, custom_property_members, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') - if isinstance(term_key, six.string_types) and len(term_key.strip()) == 0: + if isinstance(term_key, str) and len(term_key.strip()) == 0: raise click.UsageError('Parameter --term-key cannot be whitespace or empty string') if not force: if custom_property_members: @@ -9554,16 +9553,16 @@ def update_term(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_term_relationship(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, glossary_key, term_key, term_relationship_key, display_name, description, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(glossary_key, six.string_types) and len(glossary_key.strip()) == 0: + if isinstance(glossary_key, str) and len(glossary_key.strip()) == 0: raise click.UsageError('Parameter --glossary-key cannot be whitespace or empty string') - if isinstance(term_key, six.string_types) and len(term_key.strip()) == 0: + if isinstance(term_key, str) and len(term_key.strip()) == 0: raise click.UsageError('Parameter --term-key cannot be whitespace or empty string') - if isinstance(term_relationship_key, six.string_types) and len(term_relationship_key.strip()) == 0: + if isinstance(term_relationship_key, str) and len(term_relationship_key.strip()) == 0: raise click.UsageError('Parameter --term-relationship-key cannot be whitespace or empty string') kwargs = {} @@ -9631,13 +9630,13 @@ def update_term_relationship(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def upload_credentials(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_id, data_asset_key, connection_key, credential_payload, connection_detail, if_match): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') kwargs = {} @@ -9698,7 +9697,7 @@ def upload_credentials(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def users(ctx, from_json, catalog_id, sort_by, sort_order, limit, page): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') kwargs = {} @@ -9731,10 +9730,10 @@ def users(ctx, from_json, catalog_id, sort_by, sort_order, limit, page): @cli_util.wrap_exceptions def validate_connection(ctx, from_json, catalog_id, data_asset_key, connection_detail, connection_payload): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -9776,10 +9775,10 @@ def validate_connection(ctx, from_json, catalog_id, data_asset_key, connection_d @cli_util.wrap_exceptions def validate_pattern(ctx, from_json, catalog_id, pattern_key, expression, file_path_prefix, check_file_path_list, check_failure_limit): - if isinstance(catalog_id, six.string_types) and len(catalog_id.strip()) == 0: + if isinstance(catalog_id, str) and len(catalog_id.strip()) == 0: raise click.UsageError('Parameter --catalog-id cannot be whitespace or empty string') - if isinstance(pattern_key, six.string_types) and len(pattern_key.strip()) == 0: + if isinstance(pattern_key, str) and len(pattern_key.strip()) == 0: raise click.UsageError('Parameter --pattern-key cannot be whitespace or empty string') kwargs = {} diff --git a/services/data_flow/src/oci_cli_data_flow/generated/dataflow_cli.py b/services/data_flow/src/oci_cli_data_flow/generated/dataflow_cli.py index cebc52a13..d10e8e9e8 100644 --- a/services/data_flow/src/oci_cli_data_flow/generated/dataflow_cli.py +++ b/services/data_flow/src/oci_cli_data_flow/generated/dataflow_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -121,7 +120,7 @@ def sql_endpoint_group(): @cli_util.wrap_exceptions def cascading_delete_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, application_id, if_match): - if isinstance(application_id, six.string_types) and len(application_id.strip()) == 0: + if isinstance(application_id, str) and len(application_id.strip()) == 0: raise click.UsageError('Parameter --application-id cannot be whitespace or empty string') kwargs = {} @@ -174,7 +173,7 @@ def cascading_delete_application(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def change_application_compartment(ctx, from_json, application_id, compartment_id, if_match): - if isinstance(application_id, six.string_types) and len(application_id.strip()) == 0: + if isinstance(application_id, str) and len(application_id.strip()) == 0: raise click.UsageError('Parameter --application-id cannot be whitespace or empty string') kwargs = {} @@ -205,7 +204,7 @@ def change_application_compartment(ctx, from_json, application_id, compartment_i @cli_util.wrap_exceptions def change_pool_compartment(ctx, from_json, pool_id, compartment_id, if_match): - if isinstance(pool_id, six.string_types) and len(pool_id.strip()) == 0: + if isinstance(pool_id, str) and len(pool_id.strip()) == 0: raise click.UsageError('Parameter --pool-id cannot be whitespace or empty string') kwargs = {} @@ -239,7 +238,7 @@ def change_pool_compartment(ctx, from_json, pool_id, compartment_id, if_match): @cli_util.wrap_exceptions def change_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_endpoint_id, compartment_id, if_match): - if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0: + if isinstance(private_endpoint_id, str) and len(private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -297,7 +296,7 @@ def change_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def change_run_compartment(ctx, from_json, run_id, compartment_id, if_match): - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') kwargs = {} @@ -331,7 +330,7 @@ def change_run_compartment(ctx, from_json, run_id, compartment_id, if_match): @cli_util.wrap_exceptions def change_sql_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_endpoint_id, compartment_id, if_match): - if isinstance(sql_endpoint_id, six.string_types) and len(sql_endpoint_id.strip()) == 0: + if isinstance(sql_endpoint_id, str) and len(sql_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --sql-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -969,7 +968,7 @@ def create_sql_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def create_statement(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, code, run_id): - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') kwargs = {} @@ -1024,7 +1023,7 @@ def create_statement(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, application_id, if_match): - if isinstance(application_id, six.string_types) and len(application_id.strip()) == 0: + if isinstance(application_id, str) and len(application_id.strip()) == 0: raise click.UsageError('Parameter --application-id cannot be whitespace or empty string') kwargs = {} @@ -1088,7 +1087,7 @@ def delete_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pool_id, if_match): - if isinstance(pool_id, six.string_types) and len(pool_id.strip()) == 0: + if isinstance(pool_id, str) and len(pool_id.strip()) == 0: raise click.UsageError('Parameter --pool-id cannot be whitespace or empty string') kwargs = {} @@ -1152,7 +1151,7 @@ def delete_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_endpoint_id, if_match): - if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0: + if isinstance(private_endpoint_id, str) and len(private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -1208,7 +1207,7 @@ def delete_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, run_id, if_match): - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') kwargs = {} @@ -1272,7 +1271,7 @@ def delete_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_sql_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_endpoint_id, if_match): - if isinstance(sql_endpoint_id, six.string_types) and len(sql_endpoint_id.strip()) == 0: + if isinstance(sql_endpoint_id, str) and len(sql_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --sql-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -1326,10 +1325,10 @@ def delete_sql_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_statement(ctx, from_json, run_id, statement_id, if_match): - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') - if isinstance(statement_id, six.string_types) and len(statement_id.strip()) == 0: + if isinstance(statement_id, str) and len(statement_id.strip()) == 0: raise click.UsageError('Parameter --statement-id cannot be whitespace or empty string') kwargs = {} @@ -1354,7 +1353,7 @@ def delete_statement(ctx, from_json, run_id, statement_id, if_match): @cli_util.wrap_exceptions def get_application(ctx, from_json, application_id): - if isinstance(application_id, six.string_types) and len(application_id.strip()) == 0: + if isinstance(application_id, str) and len(application_id.strip()) == 0: raise click.UsageError('Parameter --application-id cannot be whitespace or empty string') kwargs = {} @@ -1376,7 +1375,7 @@ def get_application(ctx, from_json, application_id): @cli_util.wrap_exceptions def get_pool(ctx, from_json, pool_id): - if isinstance(pool_id, six.string_types) and len(pool_id.strip()) == 0: + if isinstance(pool_id, str) and len(pool_id.strip()) == 0: raise click.UsageError('Parameter --pool-id cannot be whitespace or empty string') kwargs = {} @@ -1398,7 +1397,7 @@ def get_pool(ctx, from_json, pool_id): @cli_util.wrap_exceptions def get_private_endpoint(ctx, from_json, private_endpoint_id): - if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0: + if isinstance(private_endpoint_id, str) and len(private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -1420,7 +1419,7 @@ def get_private_endpoint(ctx, from_json, private_endpoint_id): @cli_util.wrap_exceptions def get_run(ctx, from_json, run_id): - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') kwargs = {} @@ -1444,10 +1443,10 @@ def get_run(ctx, from_json, run_id): @cli_util.wrap_exceptions def get_run_log(ctx, from_json, file, run_id, name): - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') - if isinstance(name, six.string_types) and len(name.strip()) == 0: + if isinstance(name, str) and len(name.strip()) == 0: raise click.UsageError('Parameter --name cannot be whitespace or empty string') kwargs = {} @@ -1492,7 +1491,7 @@ def get_run_log(ctx, from_json, file, run_id, name): @cli_util.wrap_exceptions def get_sql_endpoint(ctx, from_json, sql_endpoint_id): - if isinstance(sql_endpoint_id, six.string_types) and len(sql_endpoint_id.strip()) == 0: + if isinstance(sql_endpoint_id, str) and len(sql_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --sql-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -1515,10 +1514,10 @@ def get_sql_endpoint(ctx, from_json, sql_endpoint_id): @cli_util.wrap_exceptions def get_statement(ctx, from_json, run_id, statement_id): - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') - if isinstance(statement_id, six.string_types) and len(statement_id.strip()) == 0: + if isinstance(statement_id, str) and len(statement_id.strip()) == 0: raise click.UsageError('Parameter --statement-id cannot be whitespace or empty string') kwargs = {} @@ -1541,7 +1540,7 @@ def get_statement(ctx, from_json, run_id, statement_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1768,7 +1767,7 @@ def list_run_logs(ctx, from_json, all_pages, page_size, run_id, limit, page): if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') kwargs = {} @@ -1959,7 +1958,7 @@ def list_statements(ctx, from_json, all_pages, page_size, run_id, lifecycle_stat if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') kwargs = {} @@ -2016,7 +2015,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2067,7 +2066,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2163,7 +2162,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, lim @cli_util.wrap_exceptions def start_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pool_id, if_match): - if isinstance(pool_id, six.string_types) and len(pool_id.strip()) == 0: + if isinstance(pool_id, str) and len(pool_id.strip()) == 0: raise click.UsageError('Parameter --pool-id cannot be whitespace or empty string') kwargs = {} @@ -2218,7 +2217,7 @@ def start_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def start_sql_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_endpoint_id, if_match): - if isinstance(sql_endpoint_id, six.string_types) and len(sql_endpoint_id.strip()) == 0: + if isinstance(sql_endpoint_id, str) and len(sql_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --sql-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2273,7 +2272,7 @@ def start_sql_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def stop_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pool_id, if_match): - if isinstance(pool_id, six.string_types) and len(pool_id.strip()) == 0: + if isinstance(pool_id, str) and len(pool_id.strip()) == 0: raise click.UsageError('Parameter --pool-id cannot be whitespace or empty string') kwargs = {} @@ -2328,7 +2327,7 @@ def stop_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_se @cli_util.wrap_exceptions def stop_sql_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_endpoint_id, if_match): - if isinstance(sql_endpoint_id, six.string_types) and len(sql_endpoint_id.strip()) == 0: + if isinstance(sql_endpoint_id, str) and len(sql_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --sql-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2412,7 +2411,7 @@ def stop_sql_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_application(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, application_id, class_name, file_uri, spark_version, language, application_log_config, archive_uri, arguments, configuration, defined_tags, description, display_name, driver_shape, driver_shape_config, execute, executor_shape, executor_shape_config, freeform_tags, logs_bucket_uri, metastore_id, num_executors, parameters, pool_id, private_endpoint_id, warehouse_bucket_uri, max_duration_in_minutes, idle_timeout_in_minutes, if_match): - if isinstance(application_id, six.string_types) and len(application_id.strip()) == 0: + if isinstance(application_id, str) and len(application_id.strip()) == 0: raise click.UsageError('Parameter --application-id cannot be whitespace or empty string') if not force: if application_log_config or arguments or configuration or defined_tags or driver_shape_config or executor_shape_config or freeform_tags or parameters: @@ -2561,7 +2560,7 @@ def update_application(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, pool_id, display_name, description, configurations, schedules, idle_timeout_in_minutes, freeform_tags, defined_tags, if_match): - if isinstance(pool_id, six.string_types) and len(pool_id.strip()) == 0: + if isinstance(pool_id, str) and len(pool_id.strip()) == 0: raise click.UsageError('Parameter --pool-id cannot be whitespace or empty string') if not force: if configurations or schedules or freeform_tags or defined_tags: @@ -2659,7 +2658,7 @@ def update_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, private_endpoint_id, defined_tags, description, display_name, dns_zones, freeform_tags, max_host_count, nsg_ids, scan_details, security_attributes, if_match): - if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0: + if isinstance(private_endpoint_id, str) and len(private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string') if not force: if defined_tags or dns_zones or freeform_tags or nsg_ids or scan_details or security_attributes: @@ -2754,7 +2753,7 @@ def update_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_run(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, run_id, defined_tags, freeform_tags, max_duration_in_minutes, idle_timeout_in_minutes, if_match): - if isinstance(run_id, six.string_types) and len(run_id.strip()) == 0: + if isinstance(run_id, str) and len(run_id.strip()) == 0: raise click.UsageError('Parameter --run-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -2844,7 +2843,7 @@ def update_run(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_sql_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_endpoint_id, defined_tags, freeform_tags, display_name, description, driver_shape, driver_shape_config, executor_shape, executor_shape_config, min_executor_count, max_executor_count, metastore_id, lake_id, log_group_id, log_compartment_id, log_display_name, log_retention_duration, log_operation, spark_advanced_configurations, if_match): - if isinstance(sql_endpoint_id, six.string_types) and len(sql_endpoint_id.strip()) == 0: + if isinstance(sql_endpoint_id, str) and len(sql_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --sql-endpoint-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or driver_shape_config or executor_shape_config or spark_advanced_configurations: diff --git a/services/data_integration/src/oci_cli_data_integration/generated/dataintegration_cli.py b/services/data_integration/src/oci_cli_data_integration/generated/dataintegration_cli.py index 36e860400..2cc5c090a 100644 --- a/services/data_integration/src/oci_cli_data_integration/generated/dataintegration_cli.py +++ b/services/data_integration/src/oci_cli_data_integration/generated/dataintegration_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -325,7 +324,7 @@ def runtime_pipeline_group(): @cli_util.wrap_exceptions def change_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, compartment_id, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -387,10 +386,10 @@ def change_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def change_dis_application_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, dis_application_id, compartment_id, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(dis_application_id, six.string_types) and len(dis_application_id.strip()) == 0: + if isinstance(dis_application_id, str) and len(dis_application_id.strip()) == 0: raise click.UsageError('Parameter --dis-application-id cannot be whitespace or empty string') kwargs = {} @@ -463,7 +462,7 @@ def change_dis_application_compartment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def create_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, name, identifier, key, model_version, model_type, description, object_status, display_name, freeform_tags, defined_tags, lifecycle_state, source_application_info, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -550,10 +549,10 @@ def create_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def create_application_detailed_description(ctx, from_json, workspace_id, application_key, logo, detailed_description): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -598,7 +597,7 @@ def create_application_detailed_description(ctx, from_json, workspace_id, applic @cli_util.wrap_exceptions def create_connection(ctx, from_json, workspace_id, name, identifier, model_type, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -664,7 +663,7 @@ def create_connection(ctx, from_json, workspace_id, name, identifier, model_type @cli_util.wrap_exceptions def create_connection_create_connection_from_oracle_siebel(ctx, from_json, workspace_id, name, identifier, username, password, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -733,7 +732,7 @@ def create_connection_create_connection_from_oracle_siebel(ctx, from_json, works @cli_util.wrap_exceptions def create_connection_create_connection_from_amazon_s3(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, access_key, secret_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -804,7 +803,7 @@ def create_connection_create_connection_from_amazon_s3(ctx, from_json, workspace @cli_util.wrap_exceptions def create_connection_create_connection_from_bicc(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, username, password_secret, default_external_storage): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -880,7 +879,7 @@ def create_connection_create_connection_from_bicc(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_connection_create_connection_from_atp(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, tns_alias, tns_names, username, password, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -963,7 +962,7 @@ def create_connection_create_connection_from_atp(ctx, from_json, workspace_id, n @cli_util.wrap_exceptions def create_connection_create_connection_from_hdfs(ctx, from_json, workspace_id, name, identifier, hdfs_principal, data_node_principal, name_node_principal, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, realm, key_distribution_center, key_tab_content): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1040,7 +1039,7 @@ def create_connection_create_connection_from_hdfs(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_connection_create_connection_from_my_sql_heat_wave(ctx, from_json, workspace_id, name, identifier, username, password, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1110,7 +1109,7 @@ def create_connection_create_connection_from_my_sql_heat_wave(ctx, from_json, wo @cli_util.wrap_exceptions def create_connection_create_connection_from_rest_basic_auth(ctx, from_json, workspace_id, name, identifier, username, password_secret, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, auth_header): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1180,7 +1179,7 @@ def create_connection_create_connection_from_rest_basic_auth(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_create_connection_from_oracle(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, username, password, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1254,7 +1253,7 @@ def create_connection_create_connection_from_oracle(ctx, from_json, workspace_id @cli_util.wrap_exceptions def create_connection_create_connection_from_oracle_people_soft(ctx, from_json, workspace_id, name, identifier, username, password, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1324,7 +1323,7 @@ def create_connection_create_connection_from_oracle_people_soft(ctx, from_json, @cli_util.wrap_exceptions def create_connection_create_connection_from_oracle_ebs(ctx, from_json, workspace_id, name, identifier, username, password, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1394,7 +1393,7 @@ def create_connection_create_connection_from_oracle_ebs(ctx, from_json, workspac @cli_util.wrap_exceptions def create_connection_create_connection_from_my_sql(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, username, password, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1468,7 +1467,7 @@ def create_connection_create_connection_from_my_sql(ctx, from_json, workspace_id @cli_util.wrap_exceptions def create_connection_create_connection_from_jdbc(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, username, password, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1541,7 +1540,7 @@ def create_connection_create_connection_from_jdbc(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_connection_create_connection_from_bip(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, username, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1614,7 +1613,7 @@ def create_connection_create_connection_from_bip(ctx, from_json, workspace_id, n @cli_util.wrap_exceptions def create_connection_create_connection_from_o_auth2(ctx, from_json, workspace_id, name, identifier, access_token_url, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, client_id, client_secret, scope, grant_type): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1694,7 +1693,7 @@ def create_connection_create_connection_from_o_auth2(ctx, from_json, workspace_i @cli_util.wrap_exceptions def create_connection_create_connection_from_adwc(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, tns_alias, tns_names, username, password, password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1771,7 +1770,7 @@ def create_connection_create_connection_from_adwc(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_connection_create_connection_from_rest_no_auth(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1837,7 +1836,7 @@ def create_connection_create_connection_from_rest_no_auth(ctx, from_json, worksp @cli_util.wrap_exceptions def create_connection_create_connection_from_object_storage(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata, credential_file_content, user_id, finger_print, pass_phrase): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1911,7 +1910,7 @@ def create_connection_create_connection_from_object_storage(ctx, from_json, work @cli_util.wrap_exceptions def create_connection_create_connection_from_lake(ctx, from_json, workspace_id, name, identifier, key, model_version, parent_ref, description, object_status, connection_properties, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -1965,7 +1964,7 @@ def create_connection_create_connection_from_lake(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_connection_validation(ctx, from_json, workspace_id, data_asset, connection, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2016,7 +2015,7 @@ def create_connection_validation(ctx, from_json, workspace_id, data_asset, conne @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_hdfs(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, data_asset_host, data_asset_port, data_asset_protocol, data_asset_default_connection, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_validate_certificate): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2096,7 +2095,7 @@ def create_connection_validation_create_data_asset_from_hdfs(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_lake(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, data_asset_lake_id, data_asset_default_connection, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_metastore_id, data_asset_lake_proxy_endpoint): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2177,7 +2176,7 @@ def create_connection_validation_create_data_asset_from_lake(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_my_sql_heat_wave(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, data_asset_host, data_asset_port, data_asset_default_connection, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_service_name): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2254,7 +2253,7 @@ def create_connection_validation_create_data_asset_from_my_sql_heat_wave(ctx, fr @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_amazon_s3(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_region, data_asset_default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2332,7 +2331,7 @@ def create_connection_validation_create_data_asset_from_amazon_s3(ctx, from_json @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_rest(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, data_asset_base_url, data_asset_manifest_file_content, data_asset_default_connection, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2412,7 +2411,7 @@ def create_connection_validation_create_data_asset_from_rest(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_oracle_siebel(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, data_asset_host, data_asset_port, data_asset_default_connection, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_service_name, data_asset_driver_class, data_asset_sid, data_asset_wallet_secret, data_asset_wallet_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2503,7 +2502,7 @@ def create_connection_validation_create_data_asset_from_oracle_siebel(ctx, from_ @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_jdbc(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_host, data_asset_port, data_asset_data_asset_type, data_asset_default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2588,7 +2587,7 @@ def create_connection_validation_create_data_asset_from_jdbc(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_my_sql(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_host, data_asset_port, data_asset_service_name, data_asset_default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2678,7 +2677,7 @@ def create_connection_validation_create_data_asset_from_my_sql(ctx, from_json, w @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_oracle(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_host, data_asset_port, data_asset_service_name, data_asset_driver_class, data_asset_sid, data_asset_credential_file_content, data_asset_wallet_secret, data_asset_wallet_password_secret, data_asset_default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2787,7 +2786,7 @@ def create_connection_validation_create_data_asset_from_oracle(ctx, from_json, w @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_adwc(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_service_name, data_asset_driver_class, data_asset_credential_file_content, data_asset_wallet_secret, data_asset_wallet_password_secret, data_asset_region_id, data_asset_tenancy_id, data_asset_compartment_id, data_asset_autonomous_db_id, data_asset_default_connection, data_asset_staging_data_asset, data_asset_staging_connection, data_asset_bucket_schema): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2903,7 +2902,7 @@ def create_connection_validation_create_data_asset_from_adwc(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_oracle_ebs(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, data_asset_host, data_asset_port, data_asset_default_connection, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_service_name, data_asset_driver_class, data_asset_sid, data_asset_wallet_secret, data_asset_wallet_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -2998,7 +2997,7 @@ def create_connection_validation_create_data_asset_from_oracle_ebs(ctx, from_jso @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_oracle_people_soft(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, data_asset_host, data_asset_port, data_asset_default_connection, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_service_name, data_asset_driver_class, data_asset_sid, data_asset_wallet_secret, data_asset_wallet_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3090,7 +3089,7 @@ def create_connection_validation_create_data_asset_from_oracle_people_soft(ctx, @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_fusion_app(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_service_url, data_asset_default_connection, data_asset_staging_data_asset, data_asset_staging_connection, data_asset_bucket_schema): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3187,7 +3186,7 @@ def create_connection_validation_create_data_asset_from_fusion_app(ctx, from_jso @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_atp(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_service_name, data_asset_driver_class, data_asset_credential_file_content, data_asset_wallet_secret, data_asset_wallet_password_secret, data_asset_region_id, data_asset_tenancy_id, data_asset_compartment_id, data_asset_autonomous_db_id, data_asset_default_connection, data_asset_staging_data_asset, data_asset_staging_connection, data_asset_bucket_schema): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3300,7 +3299,7 @@ def create_connection_validation_create_data_asset_from_atp(ctx, from_json, work @cli_util.wrap_exceptions def create_connection_validation_create_data_asset_from_object_storage(ctx, from_json, workspace_id, data_asset_name, data_asset_identifier, connection, registry_metadata, data_asset_key, data_asset_model_version, data_asset_description, data_asset_object_status, data_asset_external_key, data_asset_asset_properties, data_asset_registry_metadata, data_asset_oci_region, data_asset_url, data_asset_tenancy_id, data_asset_namespace, data_asset_default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3389,7 +3388,7 @@ def create_connection_validation_create_data_asset_from_object_storage(ctx, from @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_oracle_siebel(ctx, from_json, workspace_id, connection_name, connection_identifier, connection_username, connection_password, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3467,7 +3466,7 @@ def create_connection_validation_create_connection_from_oracle_siebel(ctx, from_ @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_amazon_s3(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_access_key, connection_secret_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3547,7 +3546,7 @@ def create_connection_validation_create_connection_from_amazon_s3(ctx, from_json @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_bicc(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_username, connection_password_secret, connection_default_external_storage): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3632,7 +3631,7 @@ def create_connection_validation_create_connection_from_bicc(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_atp(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_tns_alias, connection_tns_names, connection_username, connection_password, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3724,7 +3723,7 @@ def create_connection_validation_create_connection_from_atp(ctx, from_json, work @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_hdfs(ctx, from_json, workspace_id, connection_name, connection_identifier, connection_hdfs_principal, connection_data_node_principal, connection_name_node_principal, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_realm, connection_key_distribution_center, connection_key_tab_content): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3810,7 +3809,7 @@ def create_connection_validation_create_connection_from_hdfs(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_my_sql_heat_wave(ctx, from_json, workspace_id, connection_name, connection_identifier, connection_username, connection_password, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3889,7 +3888,7 @@ def create_connection_validation_create_connection_from_my_sql_heat_wave(ctx, fr @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_rest_basic_auth(ctx, from_json, workspace_id, connection_name, connection_identifier, connection_username, connection_password_secret, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_auth_header): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -3968,7 +3967,7 @@ def create_connection_validation_create_connection_from_rest_basic_auth(ctx, fro @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_oracle(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_username, connection_password, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4051,7 +4050,7 @@ def create_connection_validation_create_connection_from_oracle(ctx, from_json, w @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_oracle_people_soft(ctx, from_json, workspace_id, connection_name, connection_identifier, connection_username, connection_password, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4130,7 +4129,7 @@ def create_connection_validation_create_connection_from_oracle_people_soft(ctx, @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_oracle_ebs(ctx, from_json, workspace_id, connection_name, connection_identifier, connection_username, connection_password, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4209,7 +4208,7 @@ def create_connection_validation_create_connection_from_oracle_ebs(ctx, from_jso @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_my_sql(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_username, connection_password, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4292,7 +4291,7 @@ def create_connection_validation_create_connection_from_my_sql(ctx, from_json, w @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_jdbc(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_username, connection_password, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4374,7 +4373,7 @@ def create_connection_validation_create_connection_from_jdbc(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_bip(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_username, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4456,7 +4455,7 @@ def create_connection_validation_create_connection_from_bip(ctx, from_json, work @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_o_auth2(ctx, from_json, workspace_id, connection_name, connection_identifier, connection_access_token_url, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_client_id, connection_client_secret, connection_scope, connection_grant_type): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4545,7 +4544,7 @@ def create_connection_validation_create_connection_from_o_auth2(ctx, from_json, @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_adwc(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_tns_alias, connection_tns_names, connection_username, connection_password, connection_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4631,7 +4630,7 @@ def create_connection_validation_create_connection_from_adwc(ctx, from_json, wor @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_rest_no_auth(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4706,7 +4705,7 @@ def create_connection_validation_create_connection_from_rest_no_auth(ctx, from_j @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_object_storage(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata, connection_credential_file_content, connection_user_id, connection_finger_print, connection_pass_phrase): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4789,7 +4788,7 @@ def create_connection_validation_create_connection_from_object_storage(ctx, from @cli_util.wrap_exceptions def create_connection_validation_create_connection_from_lake(ctx, from_json, workspace_id, connection_name, connection_identifier, data_asset, registry_metadata, connection_key, connection_model_version, connection_parent_ref, connection_description, connection_object_status, connection_connection_properties, connection_registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4853,7 +4852,7 @@ def create_connection_validation_create_connection_from_lake(ctx, from_json, wor @cli_util.wrap_exceptions def create_copy_object_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, source_workspace_id, object_keys, copy_conflict_resolution): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4919,7 +4918,7 @@ def create_copy_object_request(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def create_data_asset(ctx, from_json, workspace_id, model_type, name, identifier, key, model_version, description, object_status, external_key, asset_properties, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -4983,7 +4982,7 @@ def create_data_asset(ctx, from_json, workspace_id, model_type, name, identifier @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_hdfs(ctx, from_json, workspace_id, name, identifier, host, port, protocol, default_connection, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, validate_certificate): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5054,7 +5053,7 @@ def create_data_asset_create_data_asset_from_hdfs(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_lake(ctx, from_json, workspace_id, name, identifier, lake_id, default_connection, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, metastore_id, lake_proxy_endpoint): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5126,7 +5125,7 @@ def create_data_asset_create_data_asset_from_lake(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_my_sql_heat_wave(ctx, from_json, workspace_id, name, identifier, host, port, default_connection, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, service_name): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5194,7 +5193,7 @@ def create_data_asset_create_data_asset_from_my_sql_heat_wave(ctx, from_json, wo @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_amazon_s3(ctx, from_json, workspace_id, name, identifier, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, region_parameterconflict, default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5263,7 +5262,7 @@ def create_data_asset_create_data_asset_from_amazon_s3(ctx, from_json, workspace @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_rest(ctx, from_json, workspace_id, name, identifier, base_url, manifest_file_content, default_connection, key, model_version, description, object_status, external_key, asset_properties, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5334,7 +5333,7 @@ def create_data_asset_create_data_asset_from_rest(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_oracle_siebel(ctx, from_json, workspace_id, name, identifier, host, port, default_connection, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, service_name, driver_class, sid, wallet_secret, wallet_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5416,7 +5415,7 @@ def create_data_asset_create_data_asset_from_oracle_siebel(ctx, from_json, works @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_jdbc(ctx, from_json, workspace_id, name, identifier, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, host, port, data_asset_type, default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5492,7 +5491,7 @@ def create_data_asset_create_data_asset_from_jdbc(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_my_sql(ctx, from_json, workspace_id, name, identifier, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, host, port, service_name, default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5573,7 +5572,7 @@ def create_data_asset_create_data_asset_from_my_sql(ctx, from_json, workspace_id @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_oracle(ctx, from_json, workspace_id, name, identifier, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, host, port, service_name, driver_class, sid, credential_file_content, wallet_secret, wallet_password_secret, default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5673,7 +5672,7 @@ def create_data_asset_create_data_asset_from_oracle(ctx, from_json, workspace_id @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_adwc(ctx, from_json, workspace_id, name, identifier, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, service_name, driver_class, credential_file_content, wallet_secret, wallet_password_secret, region_id, tenancy_id, compartment_id, autonomous_db_id, default_connection, staging_data_asset, staging_connection, bucket_schema): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5780,7 +5779,7 @@ def create_data_asset_create_data_asset_from_adwc(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_oracle_ebs(ctx, from_json, workspace_id, name, identifier, host, port, default_connection, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, service_name, driver_class, sid, wallet_secret, wallet_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5866,7 +5865,7 @@ def create_data_asset_create_data_asset_from_oracle_ebs(ctx, from_json, workspac @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_oracle_people_soft(ctx, from_json, workspace_id, name, identifier, host, port, default_connection, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, service_name, driver_class, sid, wallet_secret, wallet_password_secret): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -5949,7 +5948,7 @@ def create_data_asset_create_data_asset_from_oracle_people_soft(ctx, from_json, @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_fusion_app(ctx, from_json, workspace_id, name, identifier, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, service_url, default_connection, staging_data_asset, staging_connection, bucket_schema): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -6037,7 +6036,7 @@ def create_data_asset_create_data_asset_from_fusion_app(ctx, from_json, workspac @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_atp(ctx, from_json, workspace_id, name, identifier, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, service_name, driver_class, credential_file_content, wallet_secret, wallet_password_secret, region_id, tenancy_id, compartment_id, autonomous_db_id, default_connection, staging_data_asset, staging_connection, bucket_schema): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -6141,7 +6140,7 @@ def create_data_asset_create_data_asset_from_atp(ctx, from_json, workspace_id, n @cli_util.wrap_exceptions def create_data_asset_create_data_asset_from_object_storage(ctx, from_json, workspace_id, name, identifier, key, model_version, description, object_status, external_key, asset_properties, registry_metadata, oci_region, url, tenancy_id, namespace, default_connection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -6222,7 +6221,7 @@ def create_data_asset_create_data_asset_from_object_storage(ctx, from_json, work @cli_util.wrap_exceptions def create_data_flow(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, parent_ref, nodes, parameters, description, flow_config_values, object_status): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -6299,7 +6298,7 @@ def create_data_flow(ctx, from_json, workspace_id, name, identifier, registry_me @cli_util.wrap_exceptions def create_data_flow_validation(ctx, from_json, workspace_id, key, model_type, model_version, parent_ref, name, identifier, object_version, nodes, parameters, description, flow_config_values, object_status, metadata, key_map, typed_object_map, target_field_map_summary): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -6390,7 +6389,7 @@ def create_data_flow_validation(ctx, from_json, workspace_id, key, model_type, m @cli_util.wrap_exceptions def create_dis_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, name, identifier, compartment_id, key, model_version, model_type, description, object_status, display_name, freeform_tags, defined_tags, lifecycle_state, source_application_info, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -6480,10 +6479,10 @@ def create_dis_application(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def create_dis_application_detailed_description(ctx, from_json, workspace_id, application_key, logo, detailed_description): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -6520,13 +6519,13 @@ def create_dis_application_detailed_description(ctx, from_json, workspace_id, ap @cli_util.wrap_exceptions def create_entity_shape(ctx, from_json, workspace_id, connection_key, schema_resource_name, model_type, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') - if isinstance(schema_resource_name, six.string_types) and len(schema_resource_name.strip()) == 0: + if isinstance(schema_resource_name, str) and len(schema_resource_name.strip()) == 0: raise click.UsageError('Parameter --schema-resource-name cannot be whitespace or empty string') kwargs = {} @@ -6578,13 +6577,13 @@ def create_entity_shape(ctx, from_json, workspace_id, connection_key, schema_res @cli_util.wrap_exceptions def create_entity_shape_create_entity_shape_from_object(ctx, from_json, workspace_id, connection_key, schema_resource_name, name, key, parent_ref, description, external_key, shape, shape_id, entity_type, other_type_label, unique_keys, foreign_keys, resource_name, data_format, identifier, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') - if isinstance(schema_resource_name, six.string_types) and len(schema_resource_name.strip()) == 0: + if isinstance(schema_resource_name, str) and len(schema_resource_name.strip()) == 0: raise click.UsageError('Parameter --schema-resource-name cannot be whitespace or empty string') kwargs = {} @@ -6681,13 +6680,13 @@ def create_entity_shape_create_entity_shape_from_object(ctx, from_json, workspac @cli_util.wrap_exceptions def create_entity_shape_create_entity_shape_from_sql(ctx, from_json, workspace_id, connection_key, schema_resource_name, key, model_version, parent_ref, name, description, object_version, external_key, shape, shape_id, entity_type, other_type_label, unique_keys, foreign_keys, resource_name, data_format, object_status, identifier, sql_query, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') - if isinstance(schema_resource_name, six.string_types) and len(schema_resource_name.strip()) == 0: + if isinstance(schema_resource_name, str) and len(schema_resource_name.strip()) == 0: raise click.UsageError('Parameter --schema-resource-name cannot be whitespace or empty string') kwargs = {} @@ -6798,13 +6797,13 @@ def create_entity_shape_create_entity_shape_from_sql(ctx, from_json, workspace_i @cli_util.wrap_exceptions def create_entity_shape_create_entity_shape_from_file(ctx, from_json, workspace_id, connection_key, schema_resource_name, key, model_version, parent_ref, name, description, object_version, external_key, shape, shape_id, types, entity_type, other_type_label, unique_keys, foreign_keys, resource_name, data_format, object_status, identifier, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') - if isinstance(schema_resource_name, six.string_types) and len(schema_resource_name.strip()) == 0: + if isinstance(schema_resource_name, str) and len(schema_resource_name.strip()) == 0: raise click.UsageError('Parameter --schema-resource-name cannot be whitespace or empty string') kwargs = {} @@ -6901,7 +6900,7 @@ def create_entity_shape_create_entity_shape_from_file(ctx, from_json, workspace_ @cli_util.wrap_exceptions def create_export_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, bucket_name, file_name, object_storage_tenancy_id, object_storage_region, is_object_overwrite_enabled, object_keys, are_references_included, filters): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -6983,10 +6982,10 @@ def create_export_request(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def create_external_publication(ctx, from_json, workspace_id, task_key, application_compartment_id, display_name, application_id, description, resource_configuration, configuration_details): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') kwargs = {} @@ -7029,10 +7028,10 @@ def create_external_publication(ctx, from_json, workspace_id, task_key, applicat @cli_util.wrap_exceptions def create_external_publication_validation(ctx, from_json, workspace_id, task_key, key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') kwargs = {} @@ -7070,7 +7069,7 @@ def create_external_publication_validation(ctx, from_json, workspace_id, task_ke @cli_util.wrap_exceptions def create_folder(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, description, category_name, object_status): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -7122,7 +7121,7 @@ def create_folder(ctx, from_json, workspace_id, name, identifier, registry_metad @cli_util.wrap_exceptions def create_function_library(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, description, category_name, object_status): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -7176,7 +7175,7 @@ def create_function_library(ctx, from_json, workspace_id, name, identifier, regi @cli_util.wrap_exceptions def create_import_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, bucket_name, file_name, object_storage_tenancy_id, object_storage_region, object_key_for_import, are_data_asset_references_included, import_conflict_resolution): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -7256,10 +7255,10 @@ def create_import_request(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def create_patch(ctx, from_json, workspace_id, application_key, name, identifier, patch_type, object_keys, key, model_version, description, object_status, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -7325,7 +7324,7 @@ def create_patch(ctx, from_json, workspace_id, application_key, name, identifier @cli_util.wrap_exceptions def create_pipeline(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, parent_ref, description, model_type, object_version, object_status, nodes, parameters, flow_config_values, variables): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -7407,7 +7406,7 @@ def create_pipeline(ctx, from_json, workspace_id, name, identifier, registry_met @cli_util.wrap_exceptions def create_pipeline_validation(ctx, from_json, workspace_id, key, model_version, parent_ref, name, description, model_type, object_version, object_status, identifier, nodes, parameters, flow_config_values, variables, metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -7482,7 +7481,7 @@ def create_pipeline_validation(ctx, from_json, workspace_id, key, model_version, @cli_util.wrap_exceptions def create_project(ctx, from_json, workspace_id, name, identifier, model_version, description, object_status, key, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -7537,10 +7536,10 @@ def create_project(ctx, from_json, workspace_id, name, identifier, model_version @cli_util.wrap_exceptions def create_schedule(ctx, from_json, workspace_id, application_key, name, identifier, key, model_version, description, object_version, object_status, frequency_details, timezone, is_daylight_adjustment_enabled, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -7611,10 +7610,10 @@ def create_schedule(ctx, from_json, workspace_id, application_key, name, identif @cli_util.wrap_exceptions def create_schedule_monthly_frequency_details(ctx, from_json, workspace_id, application_key, name, identifier, key, model_version, description, object_version, object_status, timezone, is_daylight_adjustment_enabled, registry_metadata, frequency_details_frequency, frequency_details_interval, frequency_details_time, frequency_details_days): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -7695,10 +7694,10 @@ def create_schedule_monthly_frequency_details(ctx, from_json, workspace_id, appl @cli_util.wrap_exceptions def create_schedule_custom_frequency_details(ctx, from_json, workspace_id, application_key, name, identifier, key, model_version, description, object_version, object_status, timezone, is_daylight_adjustment_enabled, registry_metadata, frequency_details_frequency, frequency_details_custom_expression): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -7774,10 +7773,10 @@ def create_schedule_custom_frequency_details(ctx, from_json, workspace_id, appli @cli_util.wrap_exceptions def create_schedule_daily_frequency_details(ctx, from_json, workspace_id, application_key, name, identifier, key, model_version, description, object_version, object_status, timezone, is_daylight_adjustment_enabled, registry_metadata, frequency_details_frequency, frequency_details_interval, frequency_details_time): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -7856,10 +7855,10 @@ def create_schedule_daily_frequency_details(ctx, from_json, workspace_id, applic @cli_util.wrap_exceptions def create_schedule_weekly_frequency_details(ctx, from_json, workspace_id, application_key, name, identifier, key, model_version, description, object_version, object_status, timezone, is_daylight_adjustment_enabled, registry_metadata, frequency_details_frequency, frequency_details_time, frequency_details_days): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -7940,10 +7939,10 @@ def create_schedule_weekly_frequency_details(ctx, from_json, workspace_id, appli @cli_util.wrap_exceptions def create_schedule_monthly_rule_frequency_details(ctx, from_json, workspace_id, application_key, name, identifier, key, model_version, description, object_version, object_status, timezone, is_daylight_adjustment_enabled, registry_metadata, frequency_details_frequency, frequency_details_week_of_month, frequency_details_interval, frequency_details_time, frequency_details_day_of_week): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -8028,10 +8027,10 @@ def create_schedule_monthly_rule_frequency_details(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_schedule_hourly_frequency_details(ctx, from_json, workspace_id, application_key, name, identifier, key, model_version, description, object_version, object_status, timezone, is_daylight_adjustment_enabled, registry_metadata, frequency_details_frequency, frequency_details_interval, frequency_details_time): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -8117,7 +8116,7 @@ def create_schedule_hourly_frequency_details(ctx, from_json, workspace_id, appli @cli_util.wrap_exceptions def create_task(ctx, from_json, workspace_id, model_type, name, identifier, registry_metadata, key, model_version, parent_ref, description, object_status, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -8201,7 +8200,7 @@ def create_task(ctx, from_json, workspace_id, model_type, name, identifier, regi @cli_util.wrap_exceptions def create_task_create_task_from_integration_task(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, parent_ref, description, object_status, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, data_flow): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -8292,7 +8291,7 @@ def create_task_create_task_from_integration_task(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_task_create_task_from_data_loader_task(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, parent_ref, description, object_status, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, data_flow, conditional_composite_field_map, is_single_load, parallel_load_limit): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -8389,7 +8388,7 @@ def create_task_create_task_from_data_loader_task(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_task_create_task_from_pipeline_task(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, parent_ref, description, object_status, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, pipeline): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -8479,7 +8478,7 @@ def create_task_create_task_from_pipeline_task(ctx, from_json, workspace_id, nam @cli_util.wrap_exceptions def create_task_create_task_from_oci_dataflow_task(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, parent_ref, description, object_status, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, dataflow_application, driver_shape_details, executor_shape_details): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -8575,7 +8574,7 @@ def create_task_create_task_from_oci_dataflow_task(ctx, from_json, workspace_id, @cli_util.wrap_exceptions def create_task_create_task_from_sql_task(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, parent_ref, description, object_status, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, script, sql_script_type, operation): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -8683,7 +8682,7 @@ def create_task_create_task_from_sql_task(ctx, from_json, workspace_id, name, id @cli_util.wrap_exceptions def create_task_create_task_from_rest_task(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, parent_ref, description, object_status, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, auth_details, auth_config, endpoint_parameterconflict, method_type, headers, json_data, api_call_mode, cancel_endpoint, cancel_method_type, execute_rest_call_config, cancel_rest_call_config, poll_rest_call_config, typed_expressions): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -8799,10 +8798,10 @@ def create_task_create_task_from_rest_task(ctx, from_json, workspace_id, name, i @cli_util.wrap_exceptions def create_task_run(ctx, from_json, workspace_id, application_key, key, model_type, model_version, name, description, config_provider, identifier, task_schedule_key, ref_task_run_id, re_run_type, step_id, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -8888,10 +8887,10 @@ def create_task_run(ctx, from_json, workspace_id, application_key, key, model_ty @cli_util.wrap_exceptions def create_task_schedule(ctx, from_json, workspace_id, application_key, name, identifier, key, model_version, parent_ref, description, object_version, object_status, schedule_ref, config_provider_delegate, is_enabled, number_of_retries, retry_delay, retry_delay_unit, start_time_millis, end_time_millis, is_concurrent_allowed, is_backfill_enabled, auth_mode, expected_duration, expected_duration_unit, registry_metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -9001,7 +9000,7 @@ def create_task_schedule(ctx, from_json, workspace_id, application_key, name, id @cli_util.wrap_exceptions def create_task_validation(ctx, from_json, workspace_id, model_type, key, model_version, parent_ref, name, description, object_version, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, metadata): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -9093,7 +9092,7 @@ def create_task_validation(ctx, from_json, workspace_id, model_type, key, model_ @cli_util.wrap_exceptions def create_task_validation_create_task_validation_from_data_loader_task(ctx, from_json, workspace_id, key, model_version, parent_ref, name, description, object_version, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, metadata, data_flow): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -9187,7 +9186,7 @@ def create_task_validation_create_task_validation_from_data_loader_task(ctx, fro @cli_util.wrap_exceptions def create_task_validation_create_task_validation_from_pipeline_task(ctx, from_json, workspace_id, key, model_version, parent_ref, name, description, object_version, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, metadata, pipeline): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -9281,7 +9280,7 @@ def create_task_validation_create_task_validation_from_pipeline_task(ctx, from_j @cli_util.wrap_exceptions def create_task_validation_create_task_validation_from_integration_task(ctx, from_json, workspace_id, key, model_version, parent_ref, name, description, object_version, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, metadata, data_flow): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -9366,7 +9365,7 @@ def create_task_validation_create_task_validation_from_integration_task(ctx, fro @cli_util.wrap_exceptions def create_user_defined_function(ctx, from_json, workspace_id, name, identifier, registry_metadata, key, model_version, parent_ref, signatures, expr, description, object_status): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -9431,7 +9430,7 @@ def create_user_defined_function(ctx, from_json, workspace_id, name, identifier, @cli_util.wrap_exceptions def create_user_defined_function_validation(ctx, from_json, workspace_id, key, model_type, model_version, parent_ref, name, identifier, object_version, signatures, expr, description, object_status, metadata, key_map): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -9614,10 +9613,10 @@ def create_workspace(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_application(ctx, from_json, workspace_id, application_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -9645,10 +9644,10 @@ def delete_application(ctx, from_json, workspace_id, application_key, if_match): @cli_util.wrap_exceptions def delete_application_detailed_description(ctx, from_json, workspace_id, application_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -9676,10 +9675,10 @@ def delete_application_detailed_description(ctx, from_json, workspace_id, applic @cli_util.wrap_exceptions def delete_connection(ctx, from_json, workspace_id, connection_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') kwargs = {} @@ -9707,10 +9706,10 @@ def delete_connection(ctx, from_json, workspace_id, connection_key, if_match): @cli_util.wrap_exceptions def delete_connection_validation(ctx, from_json, workspace_id, connection_validation_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_validation_key, six.string_types) and len(connection_validation_key.strip()) == 0: + if isinstance(connection_validation_key, str) and len(connection_validation_key.strip()) == 0: raise click.UsageError('Parameter --connection-validation-key cannot be whitespace or empty string') kwargs = {} @@ -9738,10 +9737,10 @@ def delete_connection_validation(ctx, from_json, workspace_id, connection_valida @cli_util.wrap_exceptions def delete_copy_object_request(ctx, from_json, workspace_id, copy_object_request_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(copy_object_request_key, six.string_types) and len(copy_object_request_key.strip()) == 0: + if isinstance(copy_object_request_key, str) and len(copy_object_request_key.strip()) == 0: raise click.UsageError('Parameter --copy-object-request-key cannot be whitespace or empty string') kwargs = {} @@ -9769,10 +9768,10 @@ def delete_copy_object_request(ctx, from_json, workspace_id, copy_object_request @cli_util.wrap_exceptions def delete_data_asset(ctx, from_json, workspace_id, data_asset_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -9800,10 +9799,10 @@ def delete_data_asset(ctx, from_json, workspace_id, data_asset_key, if_match): @cli_util.wrap_exceptions def delete_data_flow(ctx, from_json, workspace_id, data_flow_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_flow_key, six.string_types) and len(data_flow_key.strip()) == 0: + if isinstance(data_flow_key, str) and len(data_flow_key.strip()) == 0: raise click.UsageError('Parameter --data-flow-key cannot be whitespace or empty string') kwargs = {} @@ -9831,10 +9830,10 @@ def delete_data_flow(ctx, from_json, workspace_id, data_flow_key, if_match): @cli_util.wrap_exceptions def delete_data_flow_validation(ctx, from_json, workspace_id, data_flow_validation_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_flow_validation_key, six.string_types) and len(data_flow_validation_key.strip()) == 0: + if isinstance(data_flow_validation_key, str) and len(data_flow_validation_key.strip()) == 0: raise click.UsageError('Parameter --data-flow-validation-key cannot be whitespace or empty string') kwargs = {} @@ -9862,10 +9861,10 @@ def delete_data_flow_validation(ctx, from_json, workspace_id, data_flow_validati @cli_util.wrap_exceptions def delete_dis_application(ctx, from_json, workspace_id, dis_application_id, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(dis_application_id, six.string_types) and len(dis_application_id.strip()) == 0: + if isinstance(dis_application_id, str) and len(dis_application_id.strip()) == 0: raise click.UsageError('Parameter --dis-application-id cannot be whitespace or empty string') kwargs = {} @@ -9893,10 +9892,10 @@ def delete_dis_application(ctx, from_json, workspace_id, dis_application_id, if_ @cli_util.wrap_exceptions def delete_dis_application_detailed_description(ctx, from_json, workspace_id, application_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -9924,10 +9923,10 @@ def delete_dis_application_detailed_description(ctx, from_json, workspace_id, ap @cli_util.wrap_exceptions def delete_export_request(ctx, from_json, workspace_id, export_request_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(export_request_key, six.string_types) and len(export_request_key.strip()) == 0: + if isinstance(export_request_key, str) and len(export_request_key.strip()) == 0: raise click.UsageError('Parameter --export-request-key cannot be whitespace or empty string') kwargs = {} @@ -9956,13 +9955,13 @@ def delete_export_request(ctx, from_json, workspace_id, export_request_key, if_m @cli_util.wrap_exceptions def delete_external_publication(ctx, from_json, workspace_id, task_key, external_publications_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') - if isinstance(external_publications_key, six.string_types) and len(external_publications_key.strip()) == 0: + if isinstance(external_publications_key, str) and len(external_publications_key.strip()) == 0: raise click.UsageError('Parameter --external-publications-key cannot be whitespace or empty string') kwargs = {} @@ -9992,13 +9991,13 @@ def delete_external_publication(ctx, from_json, workspace_id, task_key, external @cli_util.wrap_exceptions def delete_external_publication_validation(ctx, from_json, workspace_id, task_key, external_publication_validation_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') - if isinstance(external_publication_validation_key, six.string_types) and len(external_publication_validation_key.strip()) == 0: + if isinstance(external_publication_validation_key, str) and len(external_publication_validation_key.strip()) == 0: raise click.UsageError('Parameter --external-publication-validation-key cannot be whitespace or empty string') kwargs = {} @@ -10027,10 +10026,10 @@ def delete_external_publication_validation(ctx, from_json, workspace_id, task_ke @cli_util.wrap_exceptions def delete_folder(ctx, from_json, workspace_id, folder_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') kwargs = {} @@ -10058,10 +10057,10 @@ def delete_folder(ctx, from_json, workspace_id, folder_key, if_match): @cli_util.wrap_exceptions def delete_function_library(ctx, from_json, workspace_id, function_library_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(function_library_key, six.string_types) and len(function_library_key.strip()) == 0: + if isinstance(function_library_key, str) and len(function_library_key.strip()) == 0: raise click.UsageError('Parameter --function-library-key cannot be whitespace or empty string') kwargs = {} @@ -10089,10 +10088,10 @@ def delete_function_library(ctx, from_json, workspace_id, function_library_key, @cli_util.wrap_exceptions def delete_import_request(ctx, from_json, import_request_key, workspace_id, if_match): - if isinstance(import_request_key, six.string_types) and len(import_request_key.strip()) == 0: + if isinstance(import_request_key, str) and len(import_request_key.strip()) == 0: raise click.UsageError('Parameter --import-request-key cannot be whitespace or empty string') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -10121,13 +10120,13 @@ def delete_import_request(ctx, from_json, import_request_key, workspace_id, if_m @cli_util.wrap_exceptions def delete_patch(ctx, from_json, workspace_id, application_key, patch_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(patch_key, six.string_types) and len(patch_key.strip()) == 0: + if isinstance(patch_key, str) and len(patch_key.strip()) == 0: raise click.UsageError('Parameter --patch-key cannot be whitespace or empty string') kwargs = {} @@ -10156,10 +10155,10 @@ def delete_patch(ctx, from_json, workspace_id, application_key, patch_key, if_ma @cli_util.wrap_exceptions def delete_pipeline(ctx, from_json, workspace_id, pipeline_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(pipeline_key, six.string_types) and len(pipeline_key.strip()) == 0: + if isinstance(pipeline_key, str) and len(pipeline_key.strip()) == 0: raise click.UsageError('Parameter --pipeline-key cannot be whitespace or empty string') kwargs = {} @@ -10187,10 +10186,10 @@ def delete_pipeline(ctx, from_json, workspace_id, pipeline_key, if_match): @cli_util.wrap_exceptions def delete_pipeline_validation(ctx, from_json, workspace_id, pipeline_validation_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(pipeline_validation_key, six.string_types) and len(pipeline_validation_key.strip()) == 0: + if isinstance(pipeline_validation_key, str) and len(pipeline_validation_key.strip()) == 0: raise click.UsageError('Parameter --pipeline-validation-key cannot be whitespace or empty string') kwargs = {} @@ -10218,10 +10217,10 @@ def delete_pipeline_validation(ctx, from_json, workspace_id, pipeline_validation @cli_util.wrap_exceptions def delete_project(ctx, from_json, workspace_id, project_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(project_key, six.string_types) and len(project_key.strip()) == 0: + if isinstance(project_key, str) and len(project_key.strip()) == 0: raise click.UsageError('Parameter --project-key cannot be whitespace or empty string') kwargs = {} @@ -10250,13 +10249,13 @@ def delete_project(ctx, from_json, workspace_id, project_key, if_match): @cli_util.wrap_exceptions def delete_schedule(ctx, from_json, workspace_id, application_key, schedule_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(schedule_key, six.string_types) and len(schedule_key.strip()) == 0: + if isinstance(schedule_key, str) and len(schedule_key.strip()) == 0: raise click.UsageError('Parameter --schedule-key cannot be whitespace or empty string') kwargs = {} @@ -10285,10 +10284,10 @@ def delete_schedule(ctx, from_json, workspace_id, application_key, schedule_key, @cli_util.wrap_exceptions def delete_task(ctx, from_json, workspace_id, task_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') kwargs = {} @@ -10317,13 +10316,13 @@ def delete_task(ctx, from_json, workspace_id, task_key, if_match): @cli_util.wrap_exceptions def delete_task_run(ctx, from_json, workspace_id, application_key, task_run_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(task_run_key, six.string_types) and len(task_run_key.strip()) == 0: + if isinstance(task_run_key, str) and len(task_run_key.strip()) == 0: raise click.UsageError('Parameter --task-run-key cannot be whitespace or empty string') kwargs = {} @@ -10353,13 +10352,13 @@ def delete_task_run(ctx, from_json, workspace_id, application_key, task_run_key, @cli_util.wrap_exceptions def delete_task_schedule(ctx, from_json, workspace_id, application_key, task_schedule_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(task_schedule_key, six.string_types) and len(task_schedule_key.strip()) == 0: + if isinstance(task_schedule_key, str) and len(task_schedule_key.strip()) == 0: raise click.UsageError('Parameter --task-schedule-key cannot be whitespace or empty string') kwargs = {} @@ -10388,10 +10387,10 @@ def delete_task_schedule(ctx, from_json, workspace_id, application_key, task_sch @cli_util.wrap_exceptions def delete_task_validation(ctx, from_json, workspace_id, task_validation_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_validation_key, six.string_types) and len(task_validation_key.strip()) == 0: + if isinstance(task_validation_key, str) and len(task_validation_key.strip()) == 0: raise click.UsageError('Parameter --task-validation-key cannot be whitespace or empty string') kwargs = {} @@ -10419,10 +10418,10 @@ def delete_task_validation(ctx, from_json, workspace_id, task_validation_key, if @cli_util.wrap_exceptions def delete_user_defined_function(ctx, from_json, workspace_id, user_defined_function_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(user_defined_function_key, six.string_types) and len(user_defined_function_key.strip()) == 0: + if isinstance(user_defined_function_key, str) and len(user_defined_function_key.strip()) == 0: raise click.UsageError('Parameter --user-defined-function-key cannot be whitespace or empty string') kwargs = {} @@ -10450,10 +10449,10 @@ def delete_user_defined_function(ctx, from_json, workspace_id, user_defined_func @cli_util.wrap_exceptions def delete_user_defined_function_validation(ctx, from_json, workspace_id, user_defined_function_validation_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(user_defined_function_validation_key, six.string_types) and len(user_defined_function_validation_key.strip()) == 0: + if isinstance(user_defined_function_validation_key, str) and len(user_defined_function_validation_key.strip()) == 0: raise click.UsageError('Parameter --user-defined-function-validation-key cannot be whitespace or empty string') kwargs = {} @@ -10485,7 +10484,7 @@ def delete_user_defined_function_validation(ctx, from_json, workspace_id, user_d @cli_util.wrap_exceptions def delete_workspace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, quiesce_timeout, is_force_operation, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -10541,10 +10540,10 @@ def delete_workspace(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_application(ctx, from_json, workspace_id, application_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -10568,10 +10567,10 @@ def get_application(ctx, from_json, workspace_id, application_key): @cli_util.wrap_exceptions def get_application_detailed_description(ctx, from_json, workspace_id, application_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -10596,10 +10595,10 @@ def get_application_detailed_description(ctx, from_json, workspace_id, applicati @cli_util.wrap_exceptions def get_composite_state(ctx, from_json, workspace_id, application_key, aggregator_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -10624,10 +10623,10 @@ def get_composite_state(ctx, from_json, workspace_id, application_key, aggregato @cli_util.wrap_exceptions def get_connection(ctx, from_json, workspace_id, connection_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') kwargs = {} @@ -10651,10 +10650,10 @@ def get_connection(ctx, from_json, workspace_id, connection_key): @cli_util.wrap_exceptions def get_connection_validation(ctx, from_json, workspace_id, connection_validation_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_validation_key, six.string_types) and len(connection_validation_key.strip()) == 0: + if isinstance(connection_validation_key, str) and len(connection_validation_key.strip()) == 0: raise click.UsageError('Parameter --connection-validation-key cannot be whitespace or empty string') kwargs = {} @@ -10678,10 +10677,10 @@ def get_connection_validation(ctx, from_json, workspace_id, connection_validatio @cli_util.wrap_exceptions def get_copy_object_request(ctx, from_json, workspace_id, copy_object_request_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(copy_object_request_key, six.string_types) and len(copy_object_request_key.strip()) == 0: + if isinstance(copy_object_request_key, str) and len(copy_object_request_key.strip()) == 0: raise click.UsageError('Parameter --copy-object-request-key cannot be whitespace or empty string') kwargs = {} @@ -10705,10 +10704,10 @@ def get_copy_object_request(ctx, from_json, workspace_id, copy_object_request_ke @cli_util.wrap_exceptions def get_count_statistic(ctx, from_json, workspace_id, count_statistic_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(count_statistic_key, six.string_types) and len(count_statistic_key.strip()) == 0: + if isinstance(count_statistic_key, str) and len(count_statistic_key.strip()) == 0: raise click.UsageError('Parameter --count-statistic-key cannot be whitespace or empty string') kwargs = {} @@ -10732,10 +10731,10 @@ def get_count_statistic(ctx, from_json, workspace_id, count_statistic_key): @cli_util.wrap_exceptions def get_data_asset(ctx, from_json, workspace_id, data_asset_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') kwargs = {} @@ -10761,16 +10760,16 @@ def get_data_asset(ctx, from_json, workspace_id, data_asset_key): @cli_util.wrap_exceptions def get_data_entity(ctx, from_json, workspace_id, connection_key, schema_resource_name, data_entity_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') - if isinstance(schema_resource_name, six.string_types) and len(schema_resource_name.strip()) == 0: + if isinstance(schema_resource_name, str) and len(schema_resource_name.strip()) == 0: raise click.UsageError('Parameter --schema-resource-name cannot be whitespace or empty string') - if isinstance(data_entity_key, six.string_types) and len(data_entity_key.strip()) == 0: + if isinstance(data_entity_key, str) and len(data_entity_key.strip()) == 0: raise click.UsageError('Parameter --data-entity-key cannot be whitespace or empty string') kwargs = {} @@ -10797,10 +10796,10 @@ def get_data_entity(ctx, from_json, workspace_id, connection_key, schema_resourc @cli_util.wrap_exceptions def get_data_flow(ctx, from_json, workspace_id, data_flow_key, expand_references): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_flow_key, six.string_types) and len(data_flow_key.strip()) == 0: + if isinstance(data_flow_key, str) and len(data_flow_key.strip()) == 0: raise click.UsageError('Parameter --data-flow-key cannot be whitespace or empty string') kwargs = {} @@ -10826,10 +10825,10 @@ def get_data_flow(ctx, from_json, workspace_id, data_flow_key, expand_references @cli_util.wrap_exceptions def get_data_flow_validation(ctx, from_json, workspace_id, data_flow_validation_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_flow_validation_key, six.string_types) and len(data_flow_validation_key.strip()) == 0: + if isinstance(data_flow_validation_key, str) and len(data_flow_validation_key.strip()) == 0: raise click.UsageError('Parameter --data-flow-validation-key cannot be whitespace or empty string') kwargs = {} @@ -10854,13 +10853,13 @@ def get_data_flow_validation(ctx, from_json, workspace_id, data_flow_validation_ @cli_util.wrap_exceptions def get_dependent_object(ctx, from_json, workspace_id, application_key, dependent_object_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(dependent_object_key, six.string_types) and len(dependent_object_key.strip()) == 0: + if isinstance(dependent_object_key, str) and len(dependent_object_key.strip()) == 0: raise click.UsageError('Parameter --dependent-object-key cannot be whitespace or empty string') kwargs = {} @@ -10885,10 +10884,10 @@ def get_dependent_object(ctx, from_json, workspace_id, application_key, dependen @cli_util.wrap_exceptions def get_dis_application(ctx, from_json, workspace_id, dis_application_id): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(dis_application_id, six.string_types) and len(dis_application_id.strip()) == 0: + if isinstance(dis_application_id, str) and len(dis_application_id.strip()) == 0: raise click.UsageError('Parameter --dis-application-id cannot be whitespace or empty string') kwargs = {} @@ -10912,10 +10911,10 @@ def get_dis_application(ctx, from_json, workspace_id, dis_application_id): @cli_util.wrap_exceptions def get_dis_application_detailed_description(ctx, from_json, workspace_id, application_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -10939,10 +10938,10 @@ def get_dis_application_detailed_description(ctx, from_json, workspace_id, appli @cli_util.wrap_exceptions def get_export_request(ctx, from_json, workspace_id, export_request_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(export_request_key, six.string_types) and len(export_request_key.strip()) == 0: + if isinstance(export_request_key, str) and len(export_request_key.strip()) == 0: raise click.UsageError('Parameter --export-request-key cannot be whitespace or empty string') kwargs = {} @@ -10967,13 +10966,13 @@ def get_export_request(ctx, from_json, workspace_id, export_request_key): @cli_util.wrap_exceptions def get_external_publication(ctx, from_json, workspace_id, task_key, external_publications_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') - if isinstance(external_publications_key, six.string_types) and len(external_publications_key.strip()) == 0: + if isinstance(external_publications_key, str) and len(external_publications_key.strip()) == 0: raise click.UsageError('Parameter --external-publications-key cannot be whitespace or empty string') kwargs = {} @@ -10999,13 +10998,13 @@ def get_external_publication(ctx, from_json, workspace_id, task_key, external_pu @cli_util.wrap_exceptions def get_external_publication_validation(ctx, from_json, workspace_id, task_key, external_publication_validation_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') - if isinstance(external_publication_validation_key, six.string_types) and len(external_publication_validation_key.strip()) == 0: + if isinstance(external_publication_validation_key, str) and len(external_publication_validation_key.strip()) == 0: raise click.UsageError('Parameter --external-publication-validation-key cannot be whitespace or empty string') kwargs = {} @@ -11031,10 +11030,10 @@ def get_external_publication_validation(ctx, from_json, workspace_id, task_key, @cli_util.wrap_exceptions def get_folder(ctx, from_json, workspace_id, folder_key, projection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') kwargs = {} @@ -11061,10 +11060,10 @@ def get_folder(ctx, from_json, workspace_id, folder_key, projection): @cli_util.wrap_exceptions def get_function_library(ctx, from_json, workspace_id, function_library_key, projection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(function_library_key, six.string_types) and len(function_library_key.strip()) == 0: + if isinstance(function_library_key, str) and len(function_library_key.strip()) == 0: raise click.UsageError('Parameter --function-library-key cannot be whitespace or empty string') kwargs = {} @@ -11092,10 +11091,10 @@ def get_function_library(ctx, from_json, workspace_id, function_library_key, pro @cli_util.wrap_exceptions def get_import_request(ctx, from_json, workspace_id, import_request_key, limit, page): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(import_request_key, six.string_types) and len(import_request_key.strip()) == 0: + if isinstance(import_request_key, str) and len(import_request_key.strip()) == 0: raise click.UsageError('Parameter --import-request-key cannot be whitespace or empty string') kwargs = {} @@ -11124,13 +11123,13 @@ def get_import_request(ctx, from_json, workspace_id, import_request_key, limit, @cli_util.wrap_exceptions def get_patch(ctx, from_json, workspace_id, application_key, patch_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(patch_key, six.string_types) and len(patch_key.strip()) == 0: + if isinstance(patch_key, str) and len(patch_key.strip()) == 0: raise click.UsageError('Parameter --patch-key cannot be whitespace or empty string') kwargs = {} @@ -11156,10 +11155,10 @@ def get_patch(ctx, from_json, workspace_id, application_key, patch_key): @cli_util.wrap_exceptions def get_pipeline(ctx, from_json, workspace_id, pipeline_key, expand_references): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(pipeline_key, six.string_types) and len(pipeline_key.strip()) == 0: + if isinstance(pipeline_key, str) and len(pipeline_key.strip()) == 0: raise click.UsageError('Parameter --pipeline-key cannot be whitespace or empty string') kwargs = {} @@ -11185,10 +11184,10 @@ def get_pipeline(ctx, from_json, workspace_id, pipeline_key, expand_references): @cli_util.wrap_exceptions def get_pipeline_validation(ctx, from_json, workspace_id, pipeline_validation_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(pipeline_validation_key, six.string_types) and len(pipeline_validation_key.strip()) == 0: + if isinstance(pipeline_validation_key, str) and len(pipeline_validation_key.strip()) == 0: raise click.UsageError('Parameter --pipeline-validation-key cannot be whitespace or empty string') kwargs = {} @@ -11213,10 +11212,10 @@ def get_pipeline_validation(ctx, from_json, workspace_id, pipeline_validation_ke @cli_util.wrap_exceptions def get_project(ctx, from_json, workspace_id, project_key, projection): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(project_key, six.string_types) and len(project_key.strip()) == 0: + if isinstance(project_key, str) and len(project_key.strip()) == 0: raise click.UsageError('Parameter --project-key cannot be whitespace or empty string') kwargs = {} @@ -11244,13 +11243,13 @@ def get_project(ctx, from_json, workspace_id, project_key, projection): @cli_util.wrap_exceptions def get_published_object(ctx, from_json, workspace_id, application_key, published_object_key, expand_references): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(published_object_key, six.string_types) and len(published_object_key.strip()) == 0: + if isinstance(published_object_key, str) and len(published_object_key.strip()) == 0: raise click.UsageError('Parameter --published-object-key cannot be whitespace or empty string') kwargs = {} @@ -11278,13 +11277,13 @@ def get_published_object(ctx, from_json, workspace_id, application_key, publishe @cli_util.wrap_exceptions def get_reference(ctx, from_json, workspace_id, application_key, reference_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(reference_key, six.string_types) and len(reference_key.strip()) == 0: + if isinstance(reference_key, str) and len(reference_key.strip()) == 0: raise click.UsageError('Parameter --reference-key cannot be whitespace or empty string') kwargs = {} @@ -11311,16 +11310,16 @@ def get_reference(ctx, from_json, workspace_id, application_key, reference_key): @cli_util.wrap_exceptions def get_runtime_operator(ctx, from_json, workspace_id, application_key, runtime_pipeline_key, runtime_operator_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(runtime_pipeline_key, six.string_types) and len(runtime_pipeline_key.strip()) == 0: + if isinstance(runtime_pipeline_key, str) and len(runtime_pipeline_key.strip()) == 0: raise click.UsageError('Parameter --runtime-pipeline-key cannot be whitespace or empty string') - if isinstance(runtime_operator_key, six.string_types) and len(runtime_operator_key.strip()) == 0: + if isinstance(runtime_operator_key, str) and len(runtime_operator_key.strip()) == 0: raise click.UsageError('Parameter --runtime-operator-key cannot be whitespace or empty string') kwargs = {} @@ -11348,13 +11347,13 @@ def get_runtime_operator(ctx, from_json, workspace_id, application_key, runtime_ @cli_util.wrap_exceptions def get_runtime_pipeline(ctx, from_json, workspace_id, application_key, runtime_pipeline_key, expand_references): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(runtime_pipeline_key, six.string_types) and len(runtime_pipeline_key.strip()) == 0: + if isinstance(runtime_pipeline_key, str) and len(runtime_pipeline_key.strip()) == 0: raise click.UsageError('Parameter --runtime-pipeline-key cannot be whitespace or empty string') kwargs = {} @@ -11382,13 +11381,13 @@ def get_runtime_pipeline(ctx, from_json, workspace_id, application_key, runtime_ @cli_util.wrap_exceptions def get_schedule(ctx, from_json, workspace_id, application_key, schedule_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(schedule_key, six.string_types) and len(schedule_key.strip()) == 0: + if isinstance(schedule_key, str) and len(schedule_key.strip()) == 0: raise click.UsageError('Parameter --schedule-key cannot be whitespace or empty string') kwargs = {} @@ -11414,13 +11413,13 @@ def get_schedule(ctx, from_json, workspace_id, application_key, schedule_key): @cli_util.wrap_exceptions def get_schema(ctx, from_json, workspace_id, connection_key, schema_resource_name): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') - if isinstance(schema_resource_name, six.string_types) and len(schema_resource_name.strip()) == 0: + if isinstance(schema_resource_name, str) and len(schema_resource_name.strip()) == 0: raise click.UsageError('Parameter --schema-resource-name cannot be whitespace or empty string') kwargs = {} @@ -11446,10 +11445,10 @@ def get_schema(ctx, from_json, workspace_id, connection_key, schema_resource_nam @cli_util.wrap_exceptions def get_task(ctx, from_json, workspace_id, task_key, expand_references): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') kwargs = {} @@ -11476,13 +11475,13 @@ def get_task(ctx, from_json, workspace_id, task_key, expand_references): @cli_util.wrap_exceptions def get_task_run(ctx, from_json, workspace_id, application_key, task_run_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(task_run_key, six.string_types) and len(task_run_key.strip()) == 0: + if isinstance(task_run_key, str) and len(task_run_key.strip()) == 0: raise click.UsageError('Parameter --task-run-key cannot be whitespace or empty string') kwargs = {} @@ -11508,13 +11507,13 @@ def get_task_run(ctx, from_json, workspace_id, application_key, task_run_key): @cli_util.wrap_exceptions def get_task_schedule(ctx, from_json, workspace_id, application_key, task_schedule_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(task_schedule_key, six.string_types) and len(task_schedule_key.strip()) == 0: + if isinstance(task_schedule_key, str) and len(task_schedule_key.strip()) == 0: raise click.UsageError('Parameter --task-schedule-key cannot be whitespace or empty string') kwargs = {} @@ -11539,10 +11538,10 @@ def get_task_schedule(ctx, from_json, workspace_id, application_key, task_schedu @cli_util.wrap_exceptions def get_task_validation(ctx, from_json, workspace_id, task_validation_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_validation_key, six.string_types) and len(task_validation_key.strip()) == 0: + if isinstance(task_validation_key, str) and len(task_validation_key.strip()) == 0: raise click.UsageError('Parameter --task-validation-key cannot be whitespace or empty string') kwargs = {} @@ -11566,10 +11565,10 @@ def get_task_validation(ctx, from_json, workspace_id, task_validation_key): @cli_util.wrap_exceptions def get_template(ctx, from_json, workspace_id, template_id): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(template_id, six.string_types) and len(template_id.strip()) == 0: + if isinstance(template_id, str) and len(template_id.strip()) == 0: raise click.UsageError('Parameter --template-id cannot be whitespace or empty string') kwargs = {} @@ -11593,10 +11592,10 @@ def get_template(ctx, from_json, workspace_id, template_id): @cli_util.wrap_exceptions def get_user_defined_function(ctx, from_json, workspace_id, user_defined_function_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(user_defined_function_key, six.string_types) and len(user_defined_function_key.strip()) == 0: + if isinstance(user_defined_function_key, str) and len(user_defined_function_key.strip()) == 0: raise click.UsageError('Parameter --user-defined-function-key cannot be whitespace or empty string') kwargs = {} @@ -11620,10 +11619,10 @@ def get_user_defined_function(ctx, from_json, workspace_id, user_defined_functio @cli_util.wrap_exceptions def get_user_defined_function_validation(ctx, from_json, workspace_id, user_defined_function_validation_key): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(user_defined_function_validation_key, six.string_types) and len(user_defined_function_validation_key.strip()) == 0: + if isinstance(user_defined_function_validation_key, str) and len(user_defined_function_validation_key.strip()) == 0: raise click.UsageError('Parameter --user-defined-function-validation-key cannot be whitespace or empty string') kwargs = {} @@ -11646,7 +11645,7 @@ def get_user_defined_function_validation(ctx, from_json, workspace_id, user_defi @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -11668,7 +11667,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def get_workspace(ctx, from_json, workspace_id): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -11703,7 +11702,7 @@ def list_applications(ctx, from_json, all_pages, page_size, workspace_id, name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -11772,7 +11771,7 @@ def list_connection_validations(ctx, from_json, all_pages, page_size, workspace_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -11841,7 +11840,7 @@ def list_connections(ctx, from_json, all_pages, page_size, workspace_id, data_as if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -11912,7 +11911,7 @@ def list_copy_object_requests(ctx, from_json, all_pages, page_size, workspace_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -11982,7 +11981,7 @@ def list_data_assets(ctx, from_json, all_pages, page_size, workspace_id, page, l if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -12053,13 +12052,13 @@ def list_data_entities(ctx, from_json, all_pages, page_size, workspace_id, conne if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') - if isinstance(schema_resource_name, six.string_types) and len(schema_resource_name.strip()) == 0: + if isinstance(schema_resource_name, str) and len(schema_resource_name.strip()) == 0: raise click.UsageError('Parameter --schema-resource-name cannot be whitespace or empty string') kwargs = {} @@ -12138,7 +12137,7 @@ def list_data_flow_validations(ctx, from_json, all_pages, page_size, workspace_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -12207,7 +12206,7 @@ def list_data_flows(ctx, from_json, all_pages, page_size, workspace_id, folder_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -12279,10 +12278,10 @@ def list_dependent_objects(ctx, from_json, all_pages, page_size, workspace_id, a if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -12361,10 +12360,10 @@ def list_dis_application_task_run_lineages(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(dis_application_id, six.string_types) and len(dis_application_id.strip()) == 0: + if isinstance(dis_application_id, str) and len(dis_application_id.strip()) == 0: raise click.UsageError('Parameter --dis-application-id cannot be whitespace or empty string') kwargs = {} @@ -12441,7 +12440,7 @@ def list_dis_applications(ctx, from_json, all_pages, page_size, workspace_id, co if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -12514,7 +12513,7 @@ def list_export_requests(ctx, from_json, all_pages, page_size, workspace_id, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -12585,10 +12584,10 @@ def list_external_publication_validations(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') kwargs = {} @@ -12657,10 +12656,10 @@ def list_external_publications(ctx, from_json, all_pages, page_size, workspace_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') kwargs = {} @@ -12729,7 +12728,7 @@ def list_folders(ctx, from_json, all_pages, page_size, workspace_id, aggregator_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -12800,7 +12799,7 @@ def list_function_libraries(ctx, from_json, all_pages, page_size, workspace_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -12870,7 +12869,7 @@ def list_import_requests(ctx, from_json, all_pages, page_size, workspace_id, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -12941,10 +12940,10 @@ def list_patch_changes(ctx, from_json, all_pages, page_size, workspace_id, appli if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -13014,10 +13013,10 @@ def list_patches(ctx, from_json, all_pages, page_size, workspace_id, application if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -13087,7 +13086,7 @@ def list_pipeline_validations(ctx, from_json, all_pages, page_size, workspace_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -13156,7 +13155,7 @@ def list_pipelines(ctx, from_json, all_pages, page_size, workspace_id, aggregato if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -13225,7 +13224,7 @@ def list_projects(ctx, from_json, all_pages, page_size, workspace_id, fields, na if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -13298,10 +13297,10 @@ def list_published_objects(ctx, from_json, all_pages, page_size, workspace_id, a if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -13377,10 +13376,10 @@ def list_references(ctx, from_json, all_pages, page_size, workspace_id, applicat if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -13449,13 +13448,13 @@ def list_runtime_operators(ctx, from_json, all_pages, page_size, workspace_id, a if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(runtime_pipeline_key, six.string_types) and len(runtime_pipeline_key.strip()) == 0: + if isinstance(runtime_pipeline_key, str) and len(runtime_pipeline_key.strip()) == 0: raise click.UsageError('Parameter --runtime-pipeline-key cannot be whitespace or empty string') kwargs = {} @@ -13536,10 +13535,10 @@ def list_runtime_pipelines(ctx, from_json, all_pages, page_size, workspace_id, a if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -13618,10 +13617,10 @@ def list_schedules(ctx, from_json, all_pages, page_size, workspace_id, applicati if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -13695,10 +13694,10 @@ def list_schemas(ctx, from_json, all_pages, page_size, workspace_id, connection_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') kwargs = {} @@ -13776,10 +13775,10 @@ def list_task_run_lineages(ctx, from_json, all_pages, page_size, workspace_id, a if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -13853,13 +13852,13 @@ def list_task_run_logs(ctx, from_json, all_pages, page_size, workspace_id, appli if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(task_run_key, six.string_types) and len(task_run_key.strip()) == 0: + if isinstance(task_run_key, str) and len(task_run_key.strip()) == 0: raise click.UsageError('Parameter --task-run-key cannot be whitespace or empty string') kwargs = {} @@ -13931,10 +13930,10 @@ def list_task_runs(ctx, from_json, all_pages, page_size, workspace_id, applicati if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -14016,10 +14015,10 @@ def list_task_schedules(ctx, from_json, all_pages, page_size, workspace_id, appl if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -14093,7 +14092,7 @@ def list_task_validations(ctx, from_json, all_pages, page_size, workspace_id, ke if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -14164,7 +14163,7 @@ def list_tasks(ctx, from_json, all_pages, page_size, workspace_id, folder_id, fi if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -14236,7 +14235,7 @@ def list_templates(ctx, from_json, all_pages, page_size, workspace_id, name, ide if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -14303,7 +14302,7 @@ def list_user_defined_function_validations(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -14372,7 +14371,7 @@ def list_user_defined_functions(ctx, from_json, all_pages, page_size, workspace_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -14437,7 +14436,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -14494,7 +14493,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -14666,7 +14665,7 @@ def list_workspaces(ctx, from_json, all_pages, page_size, compartment_id, name, @cli_util.wrap_exceptions def start_workspace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -14723,7 +14722,7 @@ def start_workspace(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def stop_workspace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, quiesce_timeout, is_force_operation, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') kwargs = {} @@ -14799,10 +14798,10 @@ def stop_workspace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def update_application(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, application_key, key, model_type, object_version, model_version, name, description, application_version, object_status, identifier, parent_ref, metadata, display_name, freeform_tags, defined_tags, lifecycle_state, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') if not force: if parent_ref or metadata or freeform_tags or defined_tags: @@ -14901,10 +14900,10 @@ def update_application(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_application_detailed_description(ctx, from_json, workspace_id, application_key, logo, detailed_description, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -14955,10 +14954,10 @@ def update_application_detailed_description(ctx, from_json, workspace_id, applic @cli_util.wrap_exceptions def update_connection(ctx, from_json, force, workspace_id, connection_key, model_type, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata: @@ -15033,10 +15032,10 @@ def update_connection(ctx, from_json, force, workspace_id, connection_key, model @cli_util.wrap_exceptions def update_connection_update_connection_from_lake(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata: @@ -15115,10 +15114,10 @@ def update_connection_update_connection_from_lake(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_connection_update_connection_from_oracle_ebs(ctx, from_json, force, workspace_id, connection_key, key, object_version, username, password, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret: @@ -15203,10 +15202,10 @@ def update_connection_update_connection_from_oracle_ebs(ctx, from_json, force, w @cli_util.wrap_exceptions def update_connection_update_connection_from_object_storage(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, credential_file_content, user_id, finger_print, pass_phrase, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata: @@ -15297,10 +15296,10 @@ def update_connection_update_connection_from_object_storage(ctx, from_json, forc @cli_util.wrap_exceptions def update_connection_update_connection_from_bicc(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, username, password_secret, default_external_storage, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret or default_external_storage: @@ -15385,10 +15384,10 @@ def update_connection_update_connection_from_bicc(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_connection_update_connection_from_rest_no_auth(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata: @@ -15470,10 +15469,10 @@ def update_connection_update_connection_from_rest_no_auth(ctx, from_json, force, @cli_util.wrap_exceptions def update_connection_update_connection_from_hdfs(ctx, from_json, force, workspace_id, connection_key, key, object_version, hdfs_principal, data_node_principal, name_node_principal, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, realm, key_distribution_center, key_tab_content, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or key_tab_content: @@ -15566,10 +15565,10 @@ def update_connection_update_connection_from_hdfs(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_connection_update_connection_from_o_auth2(ctx, from_json, force, workspace_id, connection_key, key, object_version, access_token_url, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, client_id, client_secret, scope, grant_type, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or client_secret: @@ -15661,10 +15660,10 @@ def update_connection_update_connection_from_o_auth2(ctx, from_json, force, work @cli_util.wrap_exceptions def update_connection_update_connection_from_rest_basic_auth(ctx, from_json, force, workspace_id, connection_key, key, object_version, username, password_secret, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, auth_header, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret: @@ -15748,10 +15747,10 @@ def update_connection_update_connection_from_rest_basic_auth(ctx, from_json, for @cli_util.wrap_exceptions def update_connection_update_connection_from_oracle_siebel(ctx, from_json, force, workspace_id, connection_key, key, object_version, username, password, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret: @@ -15835,10 +15834,10 @@ def update_connection_update_connection_from_oracle_siebel(ctx, from_json, force @cli_util.wrap_exceptions def update_connection_update_connection_from_my_sql_heat_wave(ctx, from_json, force, workspace_id, connection_key, key, object_version, username, password, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret: @@ -15921,10 +15920,10 @@ def update_connection_update_connection_from_my_sql_heat_wave(ctx, from_json, fo @cli_util.wrap_exceptions def update_connection_update_connection_from_bip(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, username, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret: @@ -16009,10 +16008,10 @@ def update_connection_update_connection_from_bip(ctx, from_json, force, workspac @cli_util.wrap_exceptions def update_connection_update_connection_from_my_sql(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, username, password, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret: @@ -16100,10 +16099,10 @@ def update_connection_update_connection_from_my_sql(ctx, from_json, force, works @cli_util.wrap_exceptions def update_connection_update_connection_from_jdbc(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, username, password, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret: @@ -16190,10 +16189,10 @@ def update_connection_update_connection_from_jdbc(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_connection_update_connection_from_amazon_s3(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, access_key, secret_key, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or access_key or secret_key: @@ -16280,10 +16279,10 @@ def update_connection_update_connection_from_amazon_s3(ctx, from_json, force, wo @cli_util.wrap_exceptions def update_connection_update_connection_from_atp(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, tns_alias, tns_names, username, password, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or tns_names or password_secret: @@ -16377,10 +16376,10 @@ def update_connection_update_connection_from_atp(ctx, from_json, force, workspac @cli_util.wrap_exceptions def update_connection_update_connection_from_oracle(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, username, password, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret: @@ -16470,10 +16469,10 @@ def update_connection_update_connection_from_oracle(ctx, from_json, force, works @cli_util.wrap_exceptions def update_connection_update_connection_from_adwc(ctx, from_json, force, workspace_id, connection_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, tns_alias, tns_names, username, password, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or tns_names or password_secret: @@ -16567,10 +16566,10 @@ def update_connection_update_connection_from_adwc(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_connection_update_connection_from_oracle_people_soft(ctx, from_json, force, workspace_id, connection_key, key, object_version, username, password, model_version, parent_ref, name, description, object_status, identifier, connection_properties, registry_metadata, password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(connection_key, six.string_types) and len(connection_key.strip()) == 0: + if isinstance(connection_key, str) and len(connection_key.strip()) == 0: raise click.UsageError('Parameter --connection-key cannot be whitespace or empty string') if not force: if parent_ref or connection_properties or registry_metadata or password_secret: @@ -16639,10 +16638,10 @@ def update_connection_update_connection_from_oracle_people_soft(ctx, from_json, @cli_util.wrap_exceptions def update_copy_object_request(ctx, from_json, workspace_id, copy_object_request_key, status, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(copy_object_request_key, six.string_types) and len(copy_object_request_key.strip()) == 0: + if isinstance(copy_object_request_key, str) and len(copy_object_request_key.strip()) == 0: raise click.UsageError('Parameter --copy-object-request-key cannot be whitespace or empty string') kwargs = {} @@ -16688,10 +16687,10 @@ def update_copy_object_request(ctx, from_json, workspace_id, copy_object_request @cli_util.wrap_exceptions def update_data_asset(ctx, from_json, force, workspace_id, data_asset_key, model_type, key, object_version, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata: @@ -16767,10 +16766,10 @@ def update_data_asset(ctx, from_json, force, workspace_id, data_asset_key, model @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_rest(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, base_url, manifest_file_content, default_connection, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or default_connection: @@ -16851,10 +16850,10 @@ def update_data_asset_update_data_asset_from_rest(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_my_sql_heat_wave(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, host, port, default_connection, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, service_name, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or default_connection: @@ -16942,10 +16941,10 @@ def update_data_asset_update_data_asset_from_my_sql_heat_wave(ctx, from_json, fo @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_oracle_ebs(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, host, port, default_connection, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, service_name, driver_class, sid, wallet_secret, wallet_password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or wallet_secret or wallet_password_secret or default_connection: @@ -17047,10 +17046,10 @@ def update_data_asset_update_data_asset_from_oracle_ebs(ctx, from_json, force, w @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_adwc(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, service_name, driver_class, credential_file_content, wallet_secret, wallet_password_secret, region_id, tenancy_id, compartment_id, autonomous_db_id, default_connection, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or wallet_secret or wallet_password_secret or default_connection: @@ -17159,10 +17158,10 @@ def update_data_asset_update_data_asset_from_adwc(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_hdfs(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, host, port, protocol, default_connection, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, validate_certificate, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or default_connection: @@ -17251,10 +17250,10 @@ def update_data_asset_update_data_asset_from_hdfs(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_oracle_people_soft(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, host, port, default_connection, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, service_name, driver_class, sid, wallet_secret, wallet_password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or wallet_secret or wallet_password_secret or default_connection: @@ -17351,10 +17350,10 @@ def update_data_asset_update_data_asset_from_oracle_people_soft(ctx, from_json, @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_object_storage(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, oci_region, url, tenancy_id, namespace, default_connection, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or default_connection: @@ -17444,10 +17443,10 @@ def update_data_asset_update_data_asset_from_object_storage(ctx, from_json, forc @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_amazon_s3(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, region_parameterconflict, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata: @@ -17528,10 +17527,10 @@ def update_data_asset_update_data_asset_from_amazon_s3(ctx, from_json, force, wo @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_my_sql(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, host, port, service_name, default_connection, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or default_connection: @@ -17625,10 +17624,10 @@ def update_data_asset_update_data_asset_from_my_sql(ctx, from_json, force, works @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_oracle_siebel(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, host, port, default_connection, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, service_name, driver_class, sid, wallet_secret, wallet_password_secret, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or wallet_secret or wallet_password_secret or default_connection: @@ -17724,10 +17723,10 @@ def update_data_asset_update_data_asset_from_oracle_siebel(ctx, from_json, force @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_lake(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, lake_id, default_connection, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, metastore_id, lake_proxy_endpoint, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or default_connection: @@ -17819,10 +17818,10 @@ def update_data_asset_update_data_asset_from_lake(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_atp(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, service_name, driver_class, credential_file_content, wallet_secret, wallet_password_secret, region_id, tenancy_id, compartment_id, autonomous_db_id, default_connection, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or wallet_secret or wallet_password_secret or default_connection: @@ -17930,10 +17929,10 @@ def update_data_asset_update_data_asset_from_atp(ctx, from_json, force, workspac @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_jdbc(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, host, port, data_asset_type, default_connection, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or default_connection: @@ -18020,10 +18019,10 @@ def update_data_asset_update_data_asset_from_jdbc(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_fusion_app(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, service_url, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata: @@ -18109,10 +18108,10 @@ def update_data_asset_update_data_asset_from_fusion_app(ctx, from_json, force, w @cli_util.wrap_exceptions def update_data_asset_update_data_asset_from_oracle(ctx, from_json, force, workspace_id, data_asset_key, key, object_version, model_version, name, description, object_status, identifier, external_key, asset_properties, registry_metadata, host, port, service_name, driver_class, sid, credential_file_content, wallet_secret, wallet_password_secret, default_connection, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_asset_key, six.string_types) and len(data_asset_key.strip()) == 0: + if isinstance(data_asset_key, str) and len(data_asset_key.strip()) == 0: raise click.UsageError('Parameter --data-asset-key cannot be whitespace or empty string') if not force: if asset_properties or registry_metadata or wallet_secret or wallet_password_secret or default_connection: @@ -18220,10 +18219,10 @@ def update_data_asset_update_data_asset_from_oracle(ctx, from_json, force, works @cli_util.wrap_exceptions def update_data_flow(ctx, from_json, force, workspace_id, data_flow_key, key, model_type, object_version, model_version, parent_ref, name, identifier, nodes, parameters, description, flow_config_values, object_status, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(data_flow_key, six.string_types) and len(data_flow_key.strip()) == 0: + if isinstance(data_flow_key, str) and len(data_flow_key.strip()) == 0: raise click.UsageError('Parameter --data-flow-key cannot be whitespace or empty string') if not force: if parent_ref or nodes or parameters or flow_config_values or registry_metadata: @@ -18310,10 +18309,10 @@ def update_data_flow(ctx, from_json, force, workspace_id, data_flow_key, key, mo @cli_util.wrap_exceptions def update_dis_application(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, dis_application_id, key, model_type, object_version, model_version, name, description, application_version, object_status, identifier, parent_ref, metadata, display_name, freeform_tags, defined_tags, lifecycle_state, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(dis_application_id, six.string_types) and len(dis_application_id.strip()) == 0: + if isinstance(dis_application_id, str) and len(dis_application_id.strip()) == 0: raise click.UsageError('Parameter --dis-application-id cannot be whitespace or empty string') if not force: if parent_ref or metadata or freeform_tags or defined_tags: @@ -18412,10 +18411,10 @@ def update_dis_application(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_dis_application_detailed_description(ctx, from_json, workspace_id, application_key, logo, detailed_description, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') kwargs = {} @@ -18453,10 +18452,10 @@ def update_dis_application_detailed_description(ctx, from_json, workspace_id, ap @cli_util.wrap_exceptions def update_export_request(ctx, from_json, workspace_id, export_request_key, status, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(export_request_key, six.string_types) and len(export_request_key.strip()) == 0: + if isinstance(export_request_key, str) and len(export_request_key.strip()) == 0: raise click.UsageError('Parameter --export-request-key cannot be whitespace or empty string') kwargs = {} @@ -18498,13 +18497,13 @@ def update_export_request(ctx, from_json, workspace_id, export_request_key, stat @cli_util.wrap_exceptions def update_external_publication(ctx, from_json, force, workspace_id, task_key, external_publications_key, application_compartment_id, display_name, application_id, description, resource_configuration, configuration_details, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') - if isinstance(external_publications_key, six.string_types) and len(external_publications_key.strip()) == 0: + if isinstance(external_publications_key, str) and len(external_publications_key.strip()) == 0: raise click.UsageError('Parameter --external-publications-key cannot be whitespace or empty string') if not force: if resource_configuration or configuration_details: @@ -18566,10 +18565,10 @@ def update_external_publication(ctx, from_json, force, workspace_id, task_key, e @cli_util.wrap_exceptions def update_folder(ctx, from_json, force, workspace_id, folder_key, key, model_type, object_version, model_version, name, description, category_name, object_status, identifier, parent_ref, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(folder_key, six.string_types) and len(folder_key.strip()) == 0: + if isinstance(folder_key, str) and len(folder_key.strip()) == 0: raise click.UsageError('Parameter --folder-key cannot be whitespace or empty string') if not force: if parent_ref or registry_metadata: @@ -18640,10 +18639,10 @@ def update_folder(ctx, from_json, force, workspace_id, folder_key, key, model_ty @cli_util.wrap_exceptions def update_function_library(ctx, from_json, force, workspace_id, function_library_key, name, description, category_name, object_status, identifier, model_version, object_version, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(function_library_key, six.string_types) and len(function_library_key.strip()) == 0: + if isinstance(function_library_key, str) and len(function_library_key.strip()) == 0: raise click.UsageError('Parameter --function-library-key cannot be whitespace or empty string') if not force: if registry_metadata: @@ -18703,10 +18702,10 @@ def update_function_library(ctx, from_json, force, workspace_id, function_librar @cli_util.wrap_exceptions def update_import_request(ctx, from_json, workspace_id, import_request_key, status, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(import_request_key, six.string_types) and len(import_request_key.strip()) == 0: + if isinstance(import_request_key, str) and len(import_request_key.strip()) == 0: raise click.UsageError('Parameter --import-request-key cannot be whitespace or empty string') kwargs = {} @@ -18761,10 +18760,10 @@ def update_import_request(ctx, from_json, workspace_id, import_request_key, stat @cli_util.wrap_exceptions def update_pipeline(ctx, from_json, force, workspace_id, pipeline_key, key, model_type, object_version, model_version, parent_ref, name, description, object_status, identifier, nodes, parameters, flow_config_values, variables, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(pipeline_key, six.string_types) and len(pipeline_key.strip()) == 0: + if isinstance(pipeline_key, str) and len(pipeline_key.strip()) == 0: raise click.UsageError('Parameter --pipeline-key cannot be whitespace or empty string') if not force: if parent_ref or nodes or parameters or flow_config_values or variables or registry_metadata: @@ -18846,10 +18845,10 @@ def update_pipeline(ctx, from_json, force, workspace_id, pipeline_key, key, mode @cli_util.wrap_exceptions def update_project(ctx, from_json, force, workspace_id, project_key, key, model_type, object_version, model_version, name, description, object_status, identifier, parent_ref, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(project_key, six.string_types) and len(project_key.strip()) == 0: + if isinstance(project_key, str) and len(project_key.strip()) == 0: raise click.UsageError('Parameter --project-key cannot be whitespace or empty string') if not force: if parent_ref or registry_metadata: @@ -18915,13 +18914,13 @@ def update_project(ctx, from_json, force, workspace_id, project_key, key, model_ @cli_util.wrap_exceptions def update_reference(ctx, from_json, force, workspace_id, application_key, reference_key, options, target_object, child_references, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(reference_key, six.string_types) and len(reference_key.strip()) == 0: + if isinstance(reference_key, str) and len(reference_key.strip()) == 0: raise click.UsageError('Parameter --reference-key cannot be whitespace or empty string') if not force: if options or target_object or child_references: @@ -18981,13 +18980,13 @@ def update_reference(ctx, from_json, force, workspace_id, application_key, refer @cli_util.wrap_exceptions def update_schedule(ctx, from_json, force, workspace_id, application_key, schedule_key, key, object_version, model_version, model_type, parent_ref, name, description, object_status, identifier, frequency_details, timezone, is_daylight_adjustment_enabled, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(schedule_key, six.string_types) and len(schedule_key.strip()) == 0: + if isinstance(schedule_key, str) and len(schedule_key.strip()) == 0: raise click.UsageError('Parameter --schedule-key cannot be whitespace or empty string') if not force: if parent_ref or frequency_details or registry_metadata: @@ -19076,13 +19075,13 @@ def update_schedule(ctx, from_json, force, workspace_id, application_key, schedu @cli_util.wrap_exceptions def update_schedule_monthly_frequency_details(ctx, from_json, force, workspace_id, application_key, schedule_key, key, object_version, model_version, model_type, parent_ref, name, description, object_status, identifier, timezone, is_daylight_adjustment_enabled, registry_metadata, if_match, frequency_details_frequency, frequency_details_interval, frequency_details_time, frequency_details_days): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(schedule_key, six.string_types) and len(schedule_key.strip()) == 0: + if isinstance(schedule_key, str) and len(schedule_key.strip()) == 0: raise click.UsageError('Parameter --schedule-key cannot be whitespace or empty string') if not force: if parent_ref or registry_metadata: @@ -19181,13 +19180,13 @@ def update_schedule_monthly_frequency_details(ctx, from_json, force, workspace_i @cli_util.wrap_exceptions def update_schedule_custom_frequency_details(ctx, from_json, force, workspace_id, application_key, schedule_key, key, object_version, model_version, model_type, parent_ref, name, description, object_status, identifier, timezone, is_daylight_adjustment_enabled, registry_metadata, if_match, frequency_details_frequency, frequency_details_custom_expression): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(schedule_key, six.string_types) and len(schedule_key.strip()) == 0: + if isinstance(schedule_key, str) and len(schedule_key.strip()) == 0: raise click.UsageError('Parameter --schedule-key cannot be whitespace or empty string') if not force: if parent_ref or registry_metadata: @@ -19281,13 +19280,13 @@ def update_schedule_custom_frequency_details(ctx, from_json, force, workspace_id @cli_util.wrap_exceptions def update_schedule_daily_frequency_details(ctx, from_json, force, workspace_id, application_key, schedule_key, key, object_version, model_version, model_type, parent_ref, name, description, object_status, identifier, timezone, is_daylight_adjustment_enabled, registry_metadata, if_match, frequency_details_frequency, frequency_details_interval, frequency_details_time): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(schedule_key, six.string_types) and len(schedule_key.strip()) == 0: + if isinstance(schedule_key, str) and len(schedule_key.strip()) == 0: raise click.UsageError('Parameter --schedule-key cannot be whitespace or empty string') if not force: if parent_ref or registry_metadata: @@ -19384,13 +19383,13 @@ def update_schedule_daily_frequency_details(ctx, from_json, force, workspace_id, @cli_util.wrap_exceptions def update_schedule_weekly_frequency_details(ctx, from_json, force, workspace_id, application_key, schedule_key, key, object_version, model_version, model_type, parent_ref, name, description, object_status, identifier, timezone, is_daylight_adjustment_enabled, registry_metadata, if_match, frequency_details_frequency, frequency_details_time, frequency_details_days): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(schedule_key, six.string_types) and len(schedule_key.strip()) == 0: + if isinstance(schedule_key, str) and len(schedule_key.strip()) == 0: raise click.UsageError('Parameter --schedule-key cannot be whitespace or empty string') if not force: if parent_ref or registry_metadata: @@ -19489,13 +19488,13 @@ def update_schedule_weekly_frequency_details(ctx, from_json, force, workspace_id @cli_util.wrap_exceptions def update_schedule_monthly_rule_frequency_details(ctx, from_json, force, workspace_id, application_key, schedule_key, key, object_version, model_version, model_type, parent_ref, name, description, object_status, identifier, timezone, is_daylight_adjustment_enabled, registry_metadata, if_match, frequency_details_frequency, frequency_details_week_of_month, frequency_details_interval, frequency_details_time, frequency_details_day_of_week): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(schedule_key, six.string_types) and len(schedule_key.strip()) == 0: + if isinstance(schedule_key, str) and len(schedule_key.strip()) == 0: raise click.UsageError('Parameter --schedule-key cannot be whitespace or empty string') if not force: if parent_ref or registry_metadata: @@ -19598,13 +19597,13 @@ def update_schedule_monthly_rule_frequency_details(ctx, from_json, force, worksp @cli_util.wrap_exceptions def update_schedule_hourly_frequency_details(ctx, from_json, force, workspace_id, application_key, schedule_key, key, object_version, model_version, model_type, parent_ref, name, description, object_status, identifier, timezone, is_daylight_adjustment_enabled, registry_metadata, if_match, frequency_details_frequency, frequency_details_interval, frequency_details_time): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(schedule_key, six.string_types) and len(schedule_key.strip()) == 0: + if isinstance(schedule_key, str) and len(schedule_key.strip()) == 0: raise click.UsageError('Parameter --schedule-key cannot be whitespace or empty string') if not force: if parent_ref or registry_metadata: @@ -19707,10 +19706,10 @@ def update_schedule_hourly_frequency_details(ctx, from_json, force, workspace_id @cli_util.wrap_exceptions def update_task(ctx, from_json, force, workspace_id, task_key, model_type, key, object_version, model_version, parent_ref, name, description, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') if not force: if parent_ref or input_ports or output_ports or parameters or op_config_values or config_provider_delegate or registry_metadata: @@ -19825,10 +19824,10 @@ def update_task(ctx, from_json, force, workspace_id, task_key, model_type, key, @cli_util.wrap_exceptions def update_task_update_task_from_rest_task(ctx, from_json, force, workspace_id, task_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, registry_metadata, auth_details, auth_config, endpoint_parameterconflict, method_type, headers, additional_properties, json_data, api_call_mode, cancel_endpoint, cancel_method_type, execute_rest_call_config, cancel_rest_call_config, poll_rest_call_config, typed_expressions, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') if not force: if parent_ref or input_ports or output_ports or parameters or op_config_values or config_provider_delegate or registry_metadata or auth_details or auth_config or endpoint_parameterconflict or headers or cancel_endpoint or execute_rest_call_config or cancel_rest_call_config or poll_rest_call_config or typed_expressions: @@ -19971,10 +19970,10 @@ def update_task_update_task_from_rest_task(ctx, from_json, force, workspace_id, @cli_util.wrap_exceptions def update_task_update_task_from_pipeline_task(ctx, from_json, force, workspace_id, task_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, registry_metadata, pipeline, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') if not force: if parent_ref or input_ports or output_ports or parameters or op_config_values or config_provider_delegate or registry_metadata or pipeline: @@ -20080,10 +20079,10 @@ def update_task_update_task_from_pipeline_task(ctx, from_json, force, workspace_ @cli_util.wrap_exceptions def update_task_update_task_from_oci_dataflow_task(ctx, from_json, force, workspace_id, task_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, registry_metadata, dataflow_application, driver_shape_details, executor_shape_details, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') if not force: if parent_ref or input_ports or output_ports or parameters or op_config_values or config_provider_delegate or registry_metadata or dataflow_application or driver_shape_details or executor_shape_details: @@ -20195,10 +20194,10 @@ def update_task_update_task_from_oci_dataflow_task(ctx, from_json, force, worksp @cli_util.wrap_exceptions def update_task_update_task_from_sql_task(ctx, from_json, force, workspace_id, task_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, registry_metadata, script, sql_script_type, operation, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') if not force: if parent_ref or input_ports or output_ports or parameters or op_config_values or config_provider_delegate or registry_metadata or script or operation: @@ -20311,10 +20310,10 @@ def update_task_update_task_from_sql_task(ctx, from_json, force, workspace_id, t @cli_util.wrap_exceptions def update_task_update_task_from_data_loader_task(ctx, from_json, force, workspace_id, task_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, registry_metadata, data_flow, conditional_composite_field_map, is_single_load, parallel_load_limit, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') if not force: if parent_ref or input_ports or output_ports or parameters or op_config_values or config_provider_delegate or registry_metadata or data_flow or conditional_composite_field_map: @@ -20427,10 +20426,10 @@ def update_task_update_task_from_data_loader_task(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_task_update_task_from_integration_task(ctx, from_json, force, workspace_id, task_key, key, object_version, model_version, parent_ref, name, description, object_status, identifier, input_ports, output_ports, parameters, op_config_values, config_provider_delegate, is_concurrent_allowed, registry_metadata, data_flow, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(task_key, six.string_types) and len(task_key.strip()) == 0: + if isinstance(task_key, str) and len(task_key.strip()) == 0: raise click.UsageError('Parameter --task-key cannot be whitespace or empty string') if not force: if parent_ref or input_ports or output_ports or parameters or op_config_values or config_provider_delegate or registry_metadata or data_flow: @@ -20522,13 +20521,13 @@ def update_task_update_task_from_integration_task(ctx, from_json, force, workspa @cli_util.wrap_exceptions def update_task_run(ctx, from_json, force, workspace_id, application_key, task_run_key, key, status, model_type, model_version, name, description, object_version, task_schedule_key, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(task_run_key, six.string_types) and len(task_run_key.strip()) == 0: + if isinstance(task_run_key, str) and len(task_run_key.strip()) == 0: raise click.UsageError('Parameter --task-run-key cannot be whitespace or empty string') if not force: if registry_metadata: @@ -20616,13 +20615,13 @@ def update_task_run(ctx, from_json, force, workspace_id, application_key, task_r @cli_util.wrap_exceptions def update_task_schedule(ctx, from_json, force, workspace_id, application_key, task_schedule_key, key, object_version, model_version, model_type, parent_ref, name, description, object_status, identifier, schedule_ref, config_provider_delegate, is_enabled, number_of_retries, retry_delay, retry_delay_unit, start_time_millis, end_time_millis, is_concurrent_allowed, is_backfill_enabled, auth_mode, expected_duration, expected_duration_unit, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(application_key, six.string_types) and len(application_key.strip()) == 0: + if isinstance(application_key, str) and len(application_key.strip()) == 0: raise click.UsageError('Parameter --application-key cannot be whitespace or empty string') - if isinstance(task_schedule_key, six.string_types) and len(task_schedule_key.strip()) == 0: + if isinstance(task_schedule_key, str) and len(task_schedule_key.strip()) == 0: raise click.UsageError('Parameter --task-schedule-key cannot be whitespace or empty string') if not force: if parent_ref or schedule_ref or config_provider_delegate or registry_metadata: @@ -20736,10 +20735,10 @@ def update_task_schedule(ctx, from_json, force, workspace_id, application_key, t @cli_util.wrap_exceptions def update_user_defined_function(ctx, from_json, force, workspace_id, user_defined_function_key, parent_ref, name, identifier, model_version, object_version, signatures, expr, description, object_status, registry_metadata, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') - if isinstance(user_defined_function_key, six.string_types) and len(user_defined_function_key.strip()) == 0: + if isinstance(user_defined_function_key, str) and len(user_defined_function_key.strip()) == 0: raise click.UsageError('Parameter --user-defined-function-key cannot be whitespace or empty string') if not force: if parent_ref or signatures or expr or registry_metadata: @@ -20812,7 +20811,7 @@ def update_user_defined_function(ctx, from_json, force, workspace_id, user_defin @cli_util.wrap_exceptions def update_workspace(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, workspace_id, freeform_tags, defined_tags, description, display_name, workspace_properties, if_match): - if isinstance(workspace_id, six.string_types) and len(workspace_id.strip()) == 0: + if isinstance(workspace_id, str) and len(workspace_id.strip()) == 0: raise click.UsageError('Parameter --workspace-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or workspace_properties: diff --git a/services/data_labeling_service/src/oci_cli_data_labeling_management/generated/datalabelingmanagement_cli.py b/services/data_labeling_service/src/oci_cli_data_labeling_management/generated/datalabelingmanagement_cli.py index bdafdf8b1..b382ba8af 100644 --- a/services/data_labeling_service/src/oci_cli_data_labeling_management/generated/datalabelingmanagement_cli.py +++ b/services/data_labeling_service/src/oci_cli_data_labeling_management/generated/datalabelingmanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -66,7 +65,7 @@ def annotation_format_group(): @cli_util.wrap_exceptions def add_dataset_labels(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, label_set, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -129,7 +128,7 @@ def add_dataset_labels(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def change_dataset_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, compartment_id, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -651,7 +650,7 @@ def create_dataset_text_dataset_format_details(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def delete_dataset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -707,7 +706,7 @@ def delete_dataset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def generate_dataset_records(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, limit, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -765,7 +764,7 @@ def generate_dataset_records(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def get_dataset(ctx, from_json, dataset_id): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -787,7 +786,7 @@ def get_dataset(ctx, from_json, dataset_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -815,7 +814,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def import_pre_annotated_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, import_format, import_metadata_path, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -884,7 +883,7 @@ def import_pre_annotated_data(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def import_pre_annotated_data_object_storage_import_metadata_path(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, import_metadata_path_namespace, import_metadata_path_bucket, import_metadata_path_path, import_format, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -1072,7 +1071,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1123,7 +1122,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1223,7 +1222,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def remove_dataset_labels(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, label_set, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -1287,7 +1286,7 @@ def remove_dataset_labels(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def rename_dataset_labels(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, source_label_set, target_label_set, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -1356,7 +1355,7 @@ def rename_dataset_labels(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def snapshot_dataset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, are_annotations_included, are_unannotated_records_included, export_details, export_format, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -1427,7 +1426,7 @@ def snapshot_dataset(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def update_dataset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dataset_id, display_name, description, labeling_instructions, freeform_tags, defined_tags, if_match): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/data_labeling_service_dataplane/src/oci_cli_data_labeling/generated/datalabeling_cli.py b/services/data_labeling_service_dataplane/src/oci_cli_data_labeling/generated/datalabeling_cli.py index a838f3fe0..96e6899a3 100644 --- a/services/data_labeling_service_dataplane/src/oci_cli_data_labeling/generated/datalabeling_cli.py +++ b/services/data_labeling_service_dataplane/src/oci_cli_data_labeling/generated/datalabeling_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -507,7 +506,7 @@ def create_record_text_metadata(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_annotation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, annotation_id, if_match): - if isinstance(annotation_id, six.string_types) and len(annotation_id.strip()) == 0: + if isinstance(annotation_id, str) and len(annotation_id.strip()) == 0: raise click.UsageError('Parameter --annotation-id cannot be whitespace or empty string') kwargs = {} @@ -571,7 +570,7 @@ def delete_annotation(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_record(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, record_id, if_match): - if isinstance(record_id, six.string_types) and len(record_id.strip()) == 0: + if isinstance(record_id, str) and len(record_id.strip()) == 0: raise click.UsageError('Parameter --record-id cannot be whitespace or empty string') kwargs = {} @@ -630,7 +629,7 @@ def delete_record(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def get_annotation(ctx, from_json, annotation_id): - if isinstance(annotation_id, six.string_types) and len(annotation_id.strip()) == 0: + if isinstance(annotation_id, str) and len(annotation_id.strip()) == 0: raise click.UsageError('Parameter --annotation-id cannot be whitespace or empty string') kwargs = {} @@ -652,7 +651,7 @@ def get_annotation(ctx, from_json, annotation_id): @cli_util.wrap_exceptions def get_dataset(ctx, from_json, dataset_id): - if isinstance(dataset_id, six.string_types) and len(dataset_id.strip()) == 0: + if isinstance(dataset_id, str) and len(dataset_id.strip()) == 0: raise click.UsageError('Parameter --dataset-id cannot be whitespace or empty string') kwargs = {} @@ -674,7 +673,7 @@ def get_dataset(ctx, from_json, dataset_id): @cli_util.wrap_exceptions def get_record(ctx, from_json, record_id): - if isinstance(record_id, six.string_types) and len(record_id.strip()) == 0: + if isinstance(record_id, str) and len(record_id.strip()) == 0: raise click.UsageError('Parameter --record-id cannot be whitespace or empty string') kwargs = {} @@ -698,7 +697,7 @@ def get_record(ctx, from_json, record_id): @cli_util.wrap_exceptions def get_record_content(ctx, from_json, file, record_id, if_none_match): - if isinstance(record_id, six.string_types) and len(record_id.strip()) == 0: + if isinstance(record_id, str) and len(record_id.strip()) == 0: raise click.UsageError('Parameter --record-id cannot be whitespace or empty string') kwargs = {} @@ -746,7 +745,7 @@ def get_record_content(ctx, from_json, file, record_id, if_none_match): @cli_util.wrap_exceptions def get_record_preview_content(ctx, from_json, file, record_id, if_none_match): - if isinstance(record_id, six.string_types) and len(record_id.strip()) == 0: + if isinstance(record_id, str) and len(record_id.strip()) == 0: raise click.UsageError('Parameter --record-id cannot be whitespace or empty string') kwargs = {} @@ -1032,7 +1031,7 @@ def summarize_record_analytics(ctx, from_json, compartment_id, dataset_id, lifec @cli_util.wrap_exceptions def update_annotation(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, annotation_id, entities, freeform_tags, defined_tags, if_match): - if isinstance(annotation_id, six.string_types) and len(annotation_id.strip()) == 0: + if isinstance(annotation_id, str) and len(annotation_id.strip()) == 0: raise click.UsageError('Parameter --annotation-id cannot be whitespace or empty string') if not force: if entities or freeform_tags or defined_tags: @@ -1104,7 +1103,7 @@ def update_annotation(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_record(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, record_id, freeform_tags, defined_tags, record_metadata, if_match): - if isinstance(record_id, six.string_types) and len(record_id.strip()) == 0: + if isinstance(record_id, str) and len(record_id.strip()) == 0: raise click.UsageError('Parameter --record-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or record_metadata: @@ -1176,7 +1175,7 @@ def update_record(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_record_document_metadata(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, record_id, freeform_tags, defined_tags, if_match, record_metadata_job_id): - if isinstance(record_id, six.string_types) and len(record_id.strip()) == 0: + if isinstance(record_id, str) and len(record_id.strip()) == 0: raise click.UsageError('Parameter --record-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1253,7 +1252,7 @@ def update_record_document_metadata(ctx, from_json, force, wait_for_state, max_w @cli_util.wrap_exceptions def update_record_image_metadata(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, record_id, freeform_tags, defined_tags, if_match, record_metadata_height, record_metadata_width, record_metadata_depth): - if isinstance(record_id, six.string_types) and len(record_id.strip()) == 0: + if isinstance(record_id, str) and len(record_id.strip()) == 0: raise click.UsageError('Parameter --record-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1333,7 +1332,7 @@ def update_record_image_metadata(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_record_text_metadata(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, record_id, freeform_tags, defined_tags, if_match): - if isinstance(record_id, six.string_types) and len(record_id.strip()) == 0: + if isinstance(record_id, str) and len(record_id.strip()) == 0: raise click.UsageError('Parameter --record-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/data_safe/src/oci_cli_data_safe/generated/datasafe_cli.py b/services/data_safe/src/oci_cli_data_safe/generated/datasafe_cli.py index 57ad9a718..352b81019 100644 --- a/services/data_safe/src/oci_cli_data_safe/generated/datasafe_cli.py +++ b/services/data_safe/src/oci_cli_data_safe/generated/datasafe_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -677,7 +676,7 @@ def target_alert_policy_association_summary_group(): @cli_util.wrap_exceptions def activate_target_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, credentials, target_database_id, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -737,7 +736,7 @@ def activate_target_database(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def add_masking_columns_from_sdm(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, if_match): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -861,7 +860,7 @@ def alerts_update(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def apply_discovery_job_results(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, discovery_job_id, if_match): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -922,7 +921,7 @@ def apply_discovery_job_results(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def apply_sdm_masking_policy_difference(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, sdm_masking_policy_difference_id, if_match): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -983,7 +982,7 @@ def apply_sdm_masking_policy_difference(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def apply_security_assessment_template(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, template_assessment_id, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -1524,7 +1523,7 @@ def bulk_delete_sql_firewall_allowed_sqls_scim_query_selection_mode(ctx, from_js @cli_util.wrap_exceptions def calculate_audit_volume_available(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_profile_id, audit_collection_start_time, trail_locations, database_unique_name, if_match): - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -1594,7 +1593,7 @@ def calculate_audit_volume_available(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def calculate_audit_volume_collected(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_profile_id, time_from_month, time_to_month, if_match): - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -1655,7 +1654,7 @@ def calculate_audit_volume_collected(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1681,7 +1680,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_alert_compartment(ctx, from_json, alert_id, compartment_id, if_match): - if isinstance(alert_id, six.string_types) and len(alert_id.strip()) == 0: + if isinstance(alert_id, str) and len(alert_id.strip()) == 0: raise click.UsageError('Parameter --alert-id cannot be whitespace or empty string') kwargs = {} @@ -1715,7 +1714,7 @@ def change_alert_compartment(ctx, from_json, alert_id, compartment_id, if_match) @cli_util.wrap_exceptions def change_alert_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, alert_policy_id, compartment_id, if_match): - if isinstance(alert_policy_id, six.string_types) and len(alert_policy_id.strip()) == 0: + if isinstance(alert_policy_id, str) and len(alert_policy_id.strip()) == 0: raise click.UsageError('Parameter --alert-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1776,7 +1775,7 @@ def change_alert_policy_compartment(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def change_attribute_set_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, attribute_set_id, compartment_id, if_match): - if isinstance(attribute_set_id, six.string_types) and len(attribute_set_id.strip()) == 0: + if isinstance(attribute_set_id, str) and len(attribute_set_id.strip()) == 0: raise click.UsageError('Parameter --attribute-set-id cannot be whitespace or empty string') kwargs = {} @@ -1837,7 +1836,7 @@ def change_attribute_set_compartment(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def change_audit_archive_retrieval_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_archive_retrieval_id, compartment_id, if_match): - if isinstance(audit_archive_retrieval_id, six.string_types) and len(audit_archive_retrieval_id.strip()) == 0: + if isinstance(audit_archive_retrieval_id, str) and len(audit_archive_retrieval_id.strip()) == 0: raise click.UsageError('Parameter --audit-archive-retrieval-id cannot be whitespace or empty string') kwargs = {} @@ -1898,7 +1897,7 @@ def change_audit_archive_retrieval_compartment(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def change_audit_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_policy_id, compartment_id, if_match): - if isinstance(audit_policy_id, six.string_types) and len(audit_policy_id.strip()) == 0: + if isinstance(audit_policy_id, str) and len(audit_policy_id.strip()) == 0: raise click.UsageError('Parameter --audit-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1959,7 +1958,7 @@ def change_audit_policy_compartment(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def change_audit_profile_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_profile_id, compartment_id, if_match): - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -2020,7 +2019,7 @@ def change_audit_profile_compartment(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def change_data_safe_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, data_safe_private_endpoint_id, compartment_id, if_match): - if isinstance(data_safe_private_endpoint_id, six.string_types) and len(data_safe_private_endpoint_id.strip()) == 0: + if isinstance(data_safe_private_endpoint_id, str) and len(data_safe_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --data-safe-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2083,7 +2082,7 @@ def change_data_safe_private_endpoint_compartment(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def change_database_security_config_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_security_config_id, compartment_id, if_match): - if isinstance(database_security_config_id, six.string_types) and len(database_security_config_id.strip()) == 0: + if isinstance(database_security_config_id, str) and len(database_security_config_id.strip()) == 0: raise click.UsageError('Parameter --database-security-config-id cannot be whitespace or empty string') kwargs = {} @@ -2141,7 +2140,7 @@ def change_database_security_config_compartment(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_discovery_job_compartment(ctx, from_json, discovery_job_id, compartment_id, if_match): - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') kwargs = {} @@ -2172,7 +2171,7 @@ def change_discovery_job_compartment(ctx, from_json, discovery_job_id, compartme @cli_util.wrap_exceptions def change_library_masking_format_compartment(ctx, from_json, library_masking_format_id, compartment_id, if_match): - if isinstance(library_masking_format_id, six.string_types) and len(library_masking_format_id.strip()) == 0: + if isinstance(library_masking_format_id, str) and len(library_masking_format_id.strip()) == 0: raise click.UsageError('Parameter --library-masking-format-id cannot be whitespace or empty string') kwargs = {} @@ -2203,7 +2202,7 @@ def change_library_masking_format_compartment(ctx, from_json, library_masking_fo @cli_util.wrap_exceptions def change_masking_policy_compartment(ctx, from_json, masking_policy_id, compartment_id, if_match): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2234,7 +2233,7 @@ def change_masking_policy_compartment(ctx, from_json, masking_policy_id, compart @cli_util.wrap_exceptions def change_masking_policy_health_report_compartment(ctx, from_json, masking_policy_health_report_id, compartment_id, if_match): - if isinstance(masking_policy_health_report_id, six.string_types) and len(masking_policy_health_report_id.strip()) == 0: + if isinstance(masking_policy_health_report_id, str) and len(masking_policy_health_report_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-health-report-id cannot be whitespace or empty string') kwargs = {} @@ -2265,7 +2264,7 @@ def change_masking_policy_health_report_compartment(ctx, from_json, masking_poli @cli_util.wrap_exceptions def change_on_prem_connector_compartment(ctx, from_json, on_prem_connector_id, compartment_id, if_match): - if isinstance(on_prem_connector_id, six.string_types) and len(on_prem_connector_id.strip()) == 0: + if isinstance(on_prem_connector_id, str) and len(on_prem_connector_id.strip()) == 0: raise click.UsageError('Parameter --on-prem-connector-id cannot be whitespace or empty string') kwargs = {} @@ -2299,7 +2298,7 @@ def change_on_prem_connector_compartment(ctx, from_json, on_prem_connector_id, c @cli_util.wrap_exceptions def change_report_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, report_id, compartment_id, if_match): - if isinstance(report_id, six.string_types) and len(report_id.strip()) == 0: + if isinstance(report_id, str) and len(report_id.strip()) == 0: raise click.UsageError('Parameter --report-id cannot be whitespace or empty string') kwargs = {} @@ -2360,7 +2359,7 @@ def change_report_compartment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_report_definition_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, report_definition_id, compartment_id, if_match): - if isinstance(report_definition_id, six.string_types) and len(report_definition_id.strip()) == 0: + if isinstance(report_definition_id, str) and len(report_definition_id.strip()) == 0: raise click.UsageError('Parameter --report-definition-id cannot be whitespace or empty string') kwargs = {} @@ -2423,7 +2422,7 @@ def change_report_definition_compartment(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def change_retention(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_profile_id, online_months, offline_months, is_override_global_retention_setting, if_match): - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -2489,7 +2488,7 @@ def change_retention(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def change_sdm_masking_policy_difference_compartment(ctx, from_json, sdm_masking_policy_difference_id, compartment_id, if_match): - if isinstance(sdm_masking_policy_difference_id, six.string_types) and len(sdm_masking_policy_difference_id.strip()) == 0: + if isinstance(sdm_masking_policy_difference_id, str) and len(sdm_masking_policy_difference_id.strip()) == 0: raise click.UsageError('Parameter --sdm-masking-policy-difference-id cannot be whitespace or empty string') kwargs = {} @@ -2524,7 +2523,7 @@ def change_sdm_masking_policy_difference_compartment(ctx, from_json, sdm_masking @cli_util.wrap_exceptions def change_security_assessment_compartment(ctx, from_json, security_assessment_id, compartment_id, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -2558,7 +2557,7 @@ def change_security_assessment_compartment(ctx, from_json, security_assessment_i @cli_util.wrap_exceptions def change_security_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_id, compartment_id, if_match): - if isinstance(security_policy_id, six.string_types) and len(security_policy_id.strip()) == 0: + if isinstance(security_policy_id, str) and len(security_policy_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2619,7 +2618,7 @@ def change_security_policy_compartment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def change_security_policy_config_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_config_id, compartment_id, if_match): - if isinstance(security_policy_config_id, six.string_types) and len(security_policy_config_id.strip()) == 0: + if isinstance(security_policy_config_id, str) and len(security_policy_config_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-config-id cannot be whitespace or empty string') kwargs = {} @@ -2680,7 +2679,7 @@ def change_security_policy_config_compartment(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def change_security_policy_deployment_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_deployment_id, compartment_id, if_match): - if isinstance(security_policy_deployment_id, six.string_types) and len(security_policy_deployment_id.strip()) == 0: + if isinstance(security_policy_deployment_id, str) and len(security_policy_deployment_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -2738,7 +2737,7 @@ def change_security_policy_deployment_compartment(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def change_sensitive_data_model_compartment(ctx, from_json, sensitive_data_model_id, compartment_id, if_match): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -2769,7 +2768,7 @@ def change_sensitive_data_model_compartment(ctx, from_json, sensitive_data_model @cli_util.wrap_exceptions def change_sensitive_type_compartment(ctx, from_json, sensitive_type_id, compartment_id, if_match): - if isinstance(sensitive_type_id, six.string_types) and len(sensitive_type_id.strip()) == 0: + if isinstance(sensitive_type_id, str) and len(sensitive_type_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-id cannot be whitespace or empty string') kwargs = {} @@ -2800,7 +2799,7 @@ def change_sensitive_type_compartment(ctx, from_json, sensitive_type_id, compart @cli_util.wrap_exceptions def change_sensitive_type_group_compartment(ctx, from_json, sensitive_type_group_id, compartment_id, if_match): - if isinstance(sensitive_type_group_id, six.string_types) and len(sensitive_type_group_id.strip()) == 0: + if isinstance(sensitive_type_group_id, str) and len(sensitive_type_group_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-group-id cannot be whitespace or empty string') kwargs = {} @@ -2831,7 +2830,7 @@ def change_sensitive_type_group_compartment(ctx, from_json, sensitive_type_group @cli_util.wrap_exceptions def change_sensitive_types_export_compartment(ctx, from_json, sensitive_types_export_id, compartment_id, if_match): - if isinstance(sensitive_types_export_id, six.string_types) and len(sensitive_types_export_id.strip()) == 0: + if isinstance(sensitive_types_export_id, str) and len(sensitive_types_export_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-types-export-id cannot be whitespace or empty string') kwargs = {} @@ -2865,7 +2864,7 @@ def change_sensitive_types_export_compartment(ctx, from_json, sensitive_types_ex @cli_util.wrap_exceptions def change_sql_collection_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_collection_id, compartment_id, if_match): - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') kwargs = {} @@ -2926,7 +2925,7 @@ def change_sql_collection_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_sql_firewall_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_firewall_policy_id, compartment_id, if_match): - if isinstance(sql_firewall_policy_id, six.string_types) and len(sql_firewall_policy_id.strip()) == 0: + if isinstance(sql_firewall_policy_id, str) and len(sql_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --sql-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2984,7 +2983,7 @@ def change_sql_firewall_policy_compartment(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def change_target_alert_policy_association_compartment(ctx, from_json, target_alert_policy_association_id, compartment_id, if_match): - if isinstance(target_alert_policy_association_id, six.string_types) and len(target_alert_policy_association_id.strip()) == 0: + if isinstance(target_alert_policy_association_id, str) and len(target_alert_policy_association_id.strip()) == 0: raise click.UsageError('Parameter --target-alert-policy-association-id cannot be whitespace or empty string') kwargs = {} @@ -3015,7 +3014,7 @@ def change_target_alert_policy_association_compartment(ctx, from_json, target_al @cli_util.wrap_exceptions def change_target_database_compartment(ctx, from_json, target_database_id, compartment_id, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -3049,7 +3048,7 @@ def change_target_database_compartment(ctx, from_json, target_database_id, compa @cli_util.wrap_exceptions def change_target_database_group_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_group_id, compartment_id, if_match): - if isinstance(target_database_group_id, six.string_types) and len(target_database_group_id.strip()) == 0: + if isinstance(target_database_group_id, str) and len(target_database_group_id.strip()) == 0: raise click.UsageError('Parameter --target-database-group-id cannot be whitespace or empty string') kwargs = {} @@ -3110,7 +3109,7 @@ def change_target_database_group_compartment(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def change_unified_audit_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_audit_policy_id, compartment_id, if_match): - if isinstance(unified_audit_policy_id, six.string_types) and len(unified_audit_policy_id.strip()) == 0: + if isinstance(unified_audit_policy_id, str) and len(unified_audit_policy_id.strip()) == 0: raise click.UsageError('Parameter --unified-audit-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3171,7 +3170,7 @@ def change_unified_audit_policy_compartment(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def change_unified_audit_policy_definition_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_audit_policy_definition_id, compartment_id, if_match): - if isinstance(unified_audit_policy_definition_id, six.string_types) and len(unified_audit_policy_definition_id.strip()) == 0: + if isinstance(unified_audit_policy_definition_id, str) and len(unified_audit_policy_definition_id.strip()) == 0: raise click.UsageError('Parameter --unified-audit-policy-definition-id cannot be whitespace or empty string') kwargs = {} @@ -3229,7 +3228,7 @@ def change_unified_audit_policy_definition_compartment(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def change_user_assessment_compartment(ctx, from_json, user_assessment_id, compartment_id, if_match): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -3263,7 +3262,7 @@ def change_user_assessment_compartment(ctx, from_json, user_assessment_id, compa @cli_util.wrap_exceptions def compare_security_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, comparison_security_assessment_id, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -3324,7 +3323,7 @@ def compare_security_assessment(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def compare_to_template_baseline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, comparison_security_assessment_id, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -3385,7 +3384,7 @@ def compare_to_template_baseline(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def compare_user_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_assessment_id, comparison_user_assessment_id, if_match): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -3528,7 +3527,7 @@ def create_alert_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def create_alert_policy_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, expression, alert_policy_id, description, display_name): - if isinstance(alert_policy_id, six.string_types) and len(alert_policy_id.strip()) == 0: + if isinstance(alert_policy_id, str) and len(alert_policy_id.strip()) == 0: raise click.UsageError('Parameter --alert-policy-id cannot be whitespace or empty string') kwargs = {} @@ -4115,7 +4114,7 @@ def create_library_masking_format(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def create_masking_column(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schema_name, object_name, column_name, masking_policy_id, object_type, masking_column_group, sensitive_type_id, is_masking_enabled, masking_formats): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -4593,7 +4592,7 @@ def create_on_prem_connector(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def create_peer_target_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, database_details, display_name, description, dataguard_association_id, tls_config, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -4674,7 +4673,7 @@ def create_peer_target_database(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def create_peer_target_database_installed_database_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, database_details_infrastructure_type, database_details_listener_port, database_details_service_name, display_name, description, dataguard_association_id, tls_config, if_match, database_details_instance_id, database_details_ip_addresses): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -4763,7 +4762,7 @@ def create_peer_target_database_installed_database_details(ctx, from_json, wait_ @cli_util.wrap_exceptions def create_peer_target_database_autonomous_database_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, database_details_infrastructure_type, database_details_autonomous_database_id, display_name, description, dataguard_association_id, tls_config, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -4849,7 +4848,7 @@ def create_peer_target_database_autonomous_database_details(ctx, from_json, wait @cli_util.wrap_exceptions def create_peer_target_database_database_cloud_service_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, database_details_infrastructure_type, display_name, description, dataguard_association_id, tls_config, if_match, database_details_vm_cluster_id, database_details_db_system_id, database_details_pluggable_database_id, database_details_listener_port, database_details_service_name): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -4942,7 +4941,7 @@ def create_peer_target_database_database_cloud_service_details(ctx, from_json, w @cli_util.wrap_exceptions def create_referential_relation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, relation_type, parent, child, is_sensitive): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -5498,7 +5497,7 @@ def create_security_policy_deployment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def create_sensitive_column(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, schema_name, object_name, column_name, app_name, object_type, data_type, status, sensitive_type_id, parent_column_keys, relation_type, app_defined_child_column_keys, db_defined_child_column_keys): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -7101,7 +7100,7 @@ def create_user_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def deactivate_target_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -7157,7 +7156,7 @@ def deactivate_target_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_alert_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, alert_policy_id, if_match): - if isinstance(alert_policy_id, six.string_types) and len(alert_policy_id.strip()) == 0: + if isinstance(alert_policy_id, str) and len(alert_policy_id.strip()) == 0: raise click.UsageError('Parameter --alert-policy-id cannot be whitespace or empty string') kwargs = {} @@ -7214,10 +7213,10 @@ def delete_alert_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_alert_policy_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, alert_policy_id, rule_key, if_match): - if isinstance(alert_policy_id, six.string_types) and len(alert_policy_id.strip()) == 0: + if isinstance(alert_policy_id, str) and len(alert_policy_id.strip()) == 0: raise click.UsageError('Parameter --alert-policy-id cannot be whitespace or empty string') - if isinstance(rule_key, six.string_types) and len(rule_key.strip()) == 0: + if isinstance(rule_key, str) and len(rule_key.strip()) == 0: raise click.UsageError('Parameter --rule-key cannot be whitespace or empty string') kwargs = {} @@ -7274,7 +7273,7 @@ def delete_alert_policy_rule(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_attribute_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, attribute_set_id, if_match): - if isinstance(attribute_set_id, six.string_types) and len(attribute_set_id.strip()) == 0: + if isinstance(attribute_set_id, str) and len(attribute_set_id.strip()) == 0: raise click.UsageError('Parameter --attribute-set-id cannot be whitespace or empty string') kwargs = {} @@ -7330,7 +7329,7 @@ def delete_attribute_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_audit_archive_retrieval(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_archive_retrieval_id, if_match): - if isinstance(audit_archive_retrieval_id, six.string_types) and len(audit_archive_retrieval_id.strip()) == 0: + if isinstance(audit_archive_retrieval_id, str) and len(audit_archive_retrieval_id.strip()) == 0: raise click.UsageError('Parameter --audit-archive-retrieval-id cannot be whitespace or empty string') kwargs = {} @@ -7386,7 +7385,7 @@ def delete_audit_archive_retrieval(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_audit_profile(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_profile_id, if_match): - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -7442,7 +7441,7 @@ def delete_audit_profile(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_audit_trail(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_trail_id, if_match): - if isinstance(audit_trail_id, six.string_types) and len(audit_trail_id.strip()) == 0: + if isinstance(audit_trail_id, str) and len(audit_trail_id.strip()) == 0: raise click.UsageError('Parameter --audit-trail-id cannot be whitespace or empty string') kwargs = {} @@ -7498,7 +7497,7 @@ def delete_audit_trail(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_data_safe_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, data_safe_private_endpoint_id, if_match): - if isinstance(data_safe_private_endpoint_id, six.string_types) and len(data_safe_private_endpoint_id.strip()) == 0: + if isinstance(data_safe_private_endpoint_id, str) and len(data_safe_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --data-safe-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -7554,7 +7553,7 @@ def delete_data_safe_private_endpoint(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_discovery_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, discovery_job_id, if_match): - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') kwargs = {} @@ -7608,10 +7607,10 @@ def delete_discovery_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_discovery_job_result(ctx, from_json, discovery_job_id, result_key, if_match): - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') - if isinstance(result_key, six.string_types) and len(result_key.strip()) == 0: + if isinstance(result_key, str) and len(result_key.strip()) == 0: raise click.UsageError('Parameter --result-key cannot be whitespace or empty string') kwargs = {} @@ -7641,7 +7640,7 @@ def delete_discovery_job_result(ctx, from_json, discovery_job_id, result_key, if @cli_util.wrap_exceptions def delete_library_masking_format(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, library_masking_format_id, if_match): - if isinstance(library_masking_format_id, six.string_types) and len(library_masking_format_id.strip()) == 0: + if isinstance(library_masking_format_id, str) and len(library_masking_format_id.strip()) == 0: raise click.UsageError('Parameter --library-masking-format-id cannot be whitespace or empty string') kwargs = {} @@ -7703,10 +7702,10 @@ def delete_library_masking_format(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_masking_column(ctx, from_json, masking_column_key, masking_policy_id, if_match): - if isinstance(masking_column_key, six.string_types) and len(masking_column_key.strip()) == 0: + if isinstance(masking_column_key, str) and len(masking_column_key.strip()) == 0: raise click.UsageError('Parameter --masking-column-key cannot be whitespace or empty string') - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -7736,7 +7735,7 @@ def delete_masking_column(ctx, from_json, masking_column_key, masking_policy_id, @cli_util.wrap_exceptions def delete_masking_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, if_match): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -7792,7 +7791,7 @@ def delete_masking_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_masking_policy_health_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_health_report_id, if_match): - if isinstance(masking_policy_health_report_id, six.string_types) and len(masking_policy_health_report_id.strip()) == 0: + if isinstance(masking_policy_health_report_id, str) and len(masking_policy_health_report_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-health-report-id cannot be whitespace or empty string') kwargs = {} @@ -7848,7 +7847,7 @@ def delete_masking_policy_health_report(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_masking_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_report_id, if_match): - if isinstance(masking_report_id, six.string_types) and len(masking_report_id.strip()) == 0: + if isinstance(masking_report_id, str) and len(masking_report_id.strip()) == 0: raise click.UsageError('Parameter --masking-report-id cannot be whitespace or empty string') kwargs = {} @@ -7904,7 +7903,7 @@ def delete_masking_report(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_on_prem_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, on_prem_connector_id, if_match): - if isinstance(on_prem_connector_id, six.string_types) and len(on_prem_connector_id.strip()) == 0: + if isinstance(on_prem_connector_id, str) and len(on_prem_connector_id.strip()) == 0: raise click.UsageError('Parameter --on-prem-connector-id cannot be whitespace or empty string') kwargs = {} @@ -7961,10 +7960,10 @@ def delete_on_prem_connector(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_peer_target_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, peer_target_database_id, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') - if isinstance(peer_target_database_id, six.string_types) and len(peer_target_database_id.strip()) == 0: + if isinstance(peer_target_database_id, str) and len(peer_target_database_id.strip()) == 0: raise click.UsageError('Parameter --peer-target-database-id cannot be whitespace or empty string') kwargs = {} @@ -8019,10 +8018,10 @@ def delete_peer_target_database(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_referential_relation(ctx, from_json, sensitive_data_model_id, referential_relation_key, if_match): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') - if isinstance(referential_relation_key, six.string_types) and len(referential_relation_key.strip()) == 0: + if isinstance(referential_relation_key, str) and len(referential_relation_key.strip()) == 0: raise click.UsageError('Parameter --referential-relation-key cannot be whitespace or empty string') kwargs = {} @@ -8052,7 +8051,7 @@ def delete_referential_relation(ctx, from_json, sensitive_data_model_id, referen @cli_util.wrap_exceptions def delete_report_definition(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, report_definition_id, if_match): - if isinstance(report_definition_id, six.string_types) and len(report_definition_id.strip()) == 0: + if isinstance(report_definition_id, str) and len(report_definition_id.strip()) == 0: raise click.UsageError('Parameter --report-definition-id cannot be whitespace or empty string') kwargs = {} @@ -8108,7 +8107,7 @@ def delete_report_definition(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_sdm_masking_policy_difference(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sdm_masking_policy_difference_id, if_match): - if isinstance(sdm_masking_policy_difference_id, six.string_types) and len(sdm_masking_policy_difference_id.strip()) == 0: + if isinstance(sdm_masking_policy_difference_id, str) and len(sdm_masking_policy_difference_id.strip()) == 0: raise click.UsageError('Parameter --sdm-masking-policy-difference-id cannot be whitespace or empty string') kwargs = {} @@ -8164,7 +8163,7 @@ def delete_sdm_masking_policy_difference(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def delete_security_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -8220,7 +8219,7 @@ def delete_security_assessment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_security_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_id, if_match): - if isinstance(security_policy_id, six.string_types) and len(security_policy_id.strip()) == 0: + if isinstance(security_policy_id, str) and len(security_policy_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-id cannot be whitespace or empty string') kwargs = {} @@ -8276,7 +8275,7 @@ def delete_security_policy(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_security_policy_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_config_id, if_match): - if isinstance(security_policy_config_id, six.string_types) and len(security_policy_config_id.strip()) == 0: + if isinstance(security_policy_config_id, str) and len(security_policy_config_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-config-id cannot be whitespace or empty string') kwargs = {} @@ -8332,7 +8331,7 @@ def delete_security_policy_config(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_security_policy_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_deployment_id, if_match): - if isinstance(security_policy_deployment_id, six.string_types) and len(security_policy_deployment_id.strip()) == 0: + if isinstance(security_policy_deployment_id, str) and len(security_policy_deployment_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8386,10 +8385,10 @@ def delete_security_policy_deployment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_sensitive_column(ctx, from_json, sensitive_data_model_id, sensitive_column_key, if_match): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') - if isinstance(sensitive_column_key, six.string_types) and len(sensitive_column_key.strip()) == 0: + if isinstance(sensitive_column_key, str) and len(sensitive_column_key.strip()) == 0: raise click.UsageError('Parameter --sensitive-column-key cannot be whitespace or empty string') kwargs = {} @@ -8419,7 +8418,7 @@ def delete_sensitive_column(ctx, from_json, sensitive_data_model_id, sensitive_c @cli_util.wrap_exceptions def delete_sensitive_data_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, if_match): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -8475,7 +8474,7 @@ def delete_sensitive_data_model(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_sensitive_type(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_type_id, if_match): - if isinstance(sensitive_type_id, six.string_types) and len(sensitive_type_id.strip()) == 0: + if isinstance(sensitive_type_id, str) and len(sensitive_type_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-id cannot be whitespace or empty string') kwargs = {} @@ -8539,7 +8538,7 @@ def delete_sensitive_type(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_sensitive_type_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_type_group_id, if_match): - if isinstance(sensitive_type_group_id, six.string_types) and len(sensitive_type_group_id.strip()) == 0: + if isinstance(sensitive_type_group_id, str) and len(sensitive_type_group_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-group-id cannot be whitespace or empty string') kwargs = {} @@ -8595,7 +8594,7 @@ def delete_sensitive_type_group(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_sensitive_types_export(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_types_export_id, if_match): - if isinstance(sensitive_types_export_id, six.string_types) and len(sensitive_types_export_id.strip()) == 0: + if isinstance(sensitive_types_export_id, str) and len(sensitive_types_export_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-types-export-id cannot be whitespace or empty string') kwargs = {} @@ -8659,7 +8658,7 @@ def delete_sensitive_types_export(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_sql_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_collection_id, if_match): - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') kwargs = {} @@ -8715,7 +8714,7 @@ def delete_sql_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_sql_firewall_allowed_sql(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_firewall_allowed_sql_id, if_match): - if isinstance(sql_firewall_allowed_sql_id, six.string_types) and len(sql_firewall_allowed_sql_id.strip()) == 0: + if isinstance(sql_firewall_allowed_sql_id, str) and len(sql_firewall_allowed_sql_id.strip()) == 0: raise click.UsageError('Parameter --sql-firewall-allowed-sql-id cannot be whitespace or empty string') kwargs = {} @@ -8771,7 +8770,7 @@ def delete_sql_firewall_allowed_sql(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def delete_sql_firewall_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_firewall_policy_id, if_match): - if isinstance(sql_firewall_policy_id, six.string_types) and len(sql_firewall_policy_id.strip()) == 0: + if isinstance(sql_firewall_policy_id, str) and len(sql_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --sql-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -8827,7 +8826,7 @@ def delete_sql_firewall_policy(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_target_alert_policy_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_alert_policy_association_id, if_match): - if isinstance(target_alert_policy_association_id, six.string_types) and len(target_alert_policy_association_id.strip()) == 0: + if isinstance(target_alert_policy_association_id, str) and len(target_alert_policy_association_id.strip()) == 0: raise click.UsageError('Parameter --target-alert-policy-association-id cannot be whitespace or empty string') kwargs = {} @@ -8883,7 +8882,7 @@ def delete_target_alert_policy_association(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_target_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -8939,7 +8938,7 @@ def delete_target_database(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_target_database_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_group_id, if_match): - if isinstance(target_database_group_id, six.string_types) and len(target_database_group_id.strip()) == 0: + if isinstance(target_database_group_id, str) and len(target_database_group_id.strip()) == 0: raise click.UsageError('Parameter --target-database-group-id cannot be whitespace or empty string') kwargs = {} @@ -8995,7 +8994,7 @@ def delete_target_database_group(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_unified_audit_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_audit_policy_id, if_match): - if isinstance(unified_audit_policy_id, six.string_types) and len(unified_audit_policy_id.strip()) == 0: + if isinstance(unified_audit_policy_id, str) and len(unified_audit_policy_id.strip()) == 0: raise click.UsageError('Parameter --unified-audit-policy-id cannot be whitespace or empty string') kwargs = {} @@ -9051,7 +9050,7 @@ def delete_unified_audit_policy(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_unified_audit_policy_definition(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_audit_policy_definition_id, if_match): - if isinstance(unified_audit_policy_definition_id, six.string_types) and len(unified_audit_policy_definition_id.strip()) == 0: + if isinstance(unified_audit_policy_definition_id, str) and len(unified_audit_policy_definition_id.strip()) == 0: raise click.UsageError('Parameter --unified-audit-policy-definition-id cannot be whitespace or empty string') kwargs = {} @@ -9107,7 +9106,7 @@ def delete_unified_audit_policy_definition(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_user_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_assessment_id, if_match): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -9162,7 +9161,7 @@ def delete_user_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def deploy_security_policy_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_deployment_id, if_match): - if isinstance(security_policy_deployment_id, six.string_types) and len(security_policy_deployment_id.strip()) == 0: + if isinstance(security_policy_deployment_id, str) and len(security_policy_deployment_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -9217,7 +9216,7 @@ def deploy_security_policy_deployment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def discover_audit_trails(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_profile_id, if_match): - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -9271,7 +9270,7 @@ def discover_audit_trails(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def download_discovery_report(ctx, from_json, file, sensitive_data_model_id, discovery_job_id, report_format): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -9328,7 +9327,7 @@ def download_discovery_report(ctx, from_json, file, sensitive_data_model_id, dis @cli_util.wrap_exceptions def download_masking_log(ctx, from_json, file, masking_policy_id, target_id, masking_work_request_id): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -9384,7 +9383,7 @@ def download_masking_log(ctx, from_json, file, masking_policy_id, target_id, mas @cli_util.wrap_exceptions def download_masking_policy(ctx, from_json, file, masking_policy_id, policy_format): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -9438,7 +9437,7 @@ def download_masking_policy(ctx, from_json, file, masking_policy_id, policy_form @cli_util.wrap_exceptions def download_masking_report(ctx, from_json, file, masking_policy_id, report_id, report_format): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -9537,7 +9536,7 @@ def download_privilege_script(ctx, from_json, file, if_match): @cli_util.wrap_exceptions def download_security_assessment_report(ctx, from_json, file, security_assessment_id, format, is_single_report, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -9593,7 +9592,7 @@ def download_security_assessment_report(ctx, from_json, file, security_assessmen @cli_util.wrap_exceptions def download_sensitive_data_model(ctx, from_json, file, sensitive_data_model_id, data_model_format): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -9646,7 +9645,7 @@ def download_sensitive_data_model(ctx, from_json, file, sensitive_data_model_id, @cli_util.wrap_exceptions def download_sensitive_types_export(ctx, from_json, file, sensitive_types_export_id, data_model_format): - if isinstance(sensitive_types_export_id, six.string_types) and len(sensitive_types_export_id.strip()) == 0: + if isinstance(sensitive_types_export_id, str) and len(sensitive_types_export_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-types-export-id cannot be whitespace or empty string') kwargs = {} @@ -9700,7 +9699,7 @@ def download_sensitive_types_export(ctx, from_json, file, sensitive_types_export @cli_util.wrap_exceptions def download_user_assessment_report(ctx, from_json, file, user_assessment_id, format, if_match): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -9815,7 +9814,7 @@ def enable_data_safe_configuration(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def generate_discovery_report_for_download(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, report_format, discovery_job_id): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -9884,7 +9883,7 @@ def generate_discovery_report_for_download(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def generate_health_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, check_type, target_id, compartment_id, tablespace, freeform_tags, defined_tags, target_credentials): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -9962,7 +9961,7 @@ def generate_health_report(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def generate_masking_policy_for_download(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, policy_format): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -10023,7 +10022,7 @@ def generate_masking_policy_for_download(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def generate_masking_report_for_download(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, report_id, report_format): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -10081,7 +10080,7 @@ def generate_masking_report_for_download(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def generate_on_prem_connector_configuration(ctx, from_json, file, password, on_prem_connector_id, if_match): - if isinstance(on_prem_connector_id, six.string_types) and len(on_prem_connector_id.strip()) == 0: + if isinstance(on_prem_connector_id, str) and len(on_prem_connector_id.strip()) == 0: raise click.UsageError('Parameter --on-prem-connector-id cannot be whitespace or empty string') kwargs = {} @@ -10149,7 +10148,7 @@ def generate_on_prem_connector_configuration(ctx, from_json, file, password, on_ @cli_util.wrap_exceptions def generate_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, report_definition_id, display_name, compartment_id, mime_type, target_ids, target_group_ids, description, time_less_than, time_greater_than, row_limit, is_pagination_enabled, if_match, scim_query): - if isinstance(report_definition_id, six.string_types) and len(report_definition_id.strip()) == 0: + if isinstance(report_definition_id, str) and len(report_definition_id.strip()) == 0: raise click.UsageError('Parameter --report-definition-id cannot be whitespace or empty string') kwargs = {} @@ -10238,7 +10237,7 @@ def generate_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def generate_security_assessment_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, format, is_single_report, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -10301,7 +10300,7 @@ def generate_security_assessment_report(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def generate_sensitive_data_model_for_download(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, data_model_format): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -10361,7 +10360,7 @@ def generate_sensitive_data_model_for_download(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def generate_sql_firewall_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_collection_id, if_match): - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') kwargs = {} @@ -10417,7 +10416,7 @@ def generate_sql_firewall_policy(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def generate_user_assessment_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_assessment_id, format, if_match): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -10473,7 +10472,7 @@ def generate_user_assessment_report(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def get_alert(ctx, from_json, alert_id): - if isinstance(alert_id, six.string_types) and len(alert_id.strip()) == 0: + if isinstance(alert_id, str) and len(alert_id.strip()) == 0: raise click.UsageError('Parameter --alert-id cannot be whitespace or empty string') kwargs = {} @@ -10495,7 +10494,7 @@ def get_alert(ctx, from_json, alert_id): @cli_util.wrap_exceptions def get_alert_policy(ctx, from_json, alert_policy_id): - if isinstance(alert_policy_id, six.string_types) and len(alert_policy_id.strip()) == 0: + if isinstance(alert_policy_id, str) and len(alert_policy_id.strip()) == 0: raise click.UsageError('Parameter --alert-policy-id cannot be whitespace or empty string') kwargs = {} @@ -10518,10 +10517,10 @@ def get_alert_policy(ctx, from_json, alert_policy_id): @cli_util.wrap_exceptions def get_alert_policy_rule(ctx, from_json, alert_policy_id, rule_key): - if isinstance(alert_policy_id, six.string_types) and len(alert_policy_id.strip()) == 0: + if isinstance(alert_policy_id, str) and len(alert_policy_id.strip()) == 0: raise click.UsageError('Parameter --alert-policy-id cannot be whitespace or empty string') - if isinstance(rule_key, six.string_types) and len(rule_key.strip()) == 0: + if isinstance(rule_key, str) and len(rule_key.strip()) == 0: raise click.UsageError('Parameter --rule-key cannot be whitespace or empty string') kwargs = {} @@ -10545,7 +10544,7 @@ def get_alert_policy_rule(ctx, from_json, alert_policy_id, rule_key): @cli_util.wrap_exceptions def get_attribute_set(ctx, from_json, attribute_set_id, if_match): - if isinstance(attribute_set_id, six.string_types) and len(attribute_set_id.strip()) == 0: + if isinstance(attribute_set_id, str) and len(attribute_set_id.strip()) == 0: raise click.UsageError('Parameter --attribute-set-id cannot be whitespace or empty string') kwargs = {} @@ -10570,7 +10569,7 @@ def get_attribute_set(ctx, from_json, attribute_set_id, if_match): @cli_util.wrap_exceptions def get_audit_archive_retrieval(ctx, from_json, audit_archive_retrieval_id, if_match): - if isinstance(audit_archive_retrieval_id, six.string_types) and len(audit_archive_retrieval_id.strip()) == 0: + if isinstance(audit_archive_retrieval_id, str) and len(audit_archive_retrieval_id.strip()) == 0: raise click.UsageError('Parameter --audit-archive-retrieval-id cannot be whitespace or empty string') kwargs = {} @@ -10594,7 +10593,7 @@ def get_audit_archive_retrieval(ctx, from_json, audit_archive_retrieval_id, if_m @cli_util.wrap_exceptions def get_audit_policy(ctx, from_json, audit_policy_id): - if isinstance(audit_policy_id, six.string_types) and len(audit_policy_id.strip()) == 0: + if isinstance(audit_policy_id, str) and len(audit_policy_id.strip()) == 0: raise click.UsageError('Parameter --audit-policy-id cannot be whitespace or empty string') kwargs = {} @@ -10616,7 +10615,7 @@ def get_audit_policy(ctx, from_json, audit_policy_id): @cli_util.wrap_exceptions def get_audit_profile(ctx, from_json, audit_profile_id): - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -10638,7 +10637,7 @@ def get_audit_profile(ctx, from_json, audit_profile_id): @cli_util.wrap_exceptions def get_audit_trail(ctx, from_json, audit_trail_id): - if isinstance(audit_trail_id, six.string_types) and len(audit_trail_id.strip()) == 0: + if isinstance(audit_trail_id, str) and len(audit_trail_id.strip()) == 0: raise click.UsageError('Parameter --audit-trail-id cannot be whitespace or empty string') kwargs = {} @@ -10734,7 +10733,7 @@ def get_data_safe_configuration(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_data_safe_private_endpoint(ctx, from_json, data_safe_private_endpoint_id): - if isinstance(data_safe_private_endpoint_id, six.string_types) and len(data_safe_private_endpoint_id.strip()) == 0: + if isinstance(data_safe_private_endpoint_id, str) and len(data_safe_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --data-safe-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -10756,7 +10755,7 @@ def get_data_safe_private_endpoint(ctx, from_json, data_safe_private_endpoint_id @cli_util.wrap_exceptions def get_database_security_config(ctx, from_json, database_security_config_id): - if isinstance(database_security_config_id, six.string_types) and len(database_security_config_id.strip()) == 0: + if isinstance(database_security_config_id, str) and len(database_security_config_id.strip()) == 0: raise click.UsageError('Parameter --database-security-config-id cannot be whitespace or empty string') kwargs = {} @@ -10779,10 +10778,10 @@ def get_database_security_config(ctx, from_json, database_security_config_id): @cli_util.wrap_exceptions def get_database_table_access_entry(ctx, from_json, security_policy_report_id, database_table_access_entry_key): - if isinstance(security_policy_report_id, six.string_types) and len(security_policy_report_id.strip()) == 0: + if isinstance(security_policy_report_id, str) and len(security_policy_report_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-report-id cannot be whitespace or empty string') - if isinstance(database_table_access_entry_key, six.string_types) and len(database_table_access_entry_key.strip()) == 0: + if isinstance(database_table_access_entry_key, str) and len(database_table_access_entry_key.strip()) == 0: raise click.UsageError('Parameter --database-table-access-entry-key cannot be whitespace or empty string') kwargs = {} @@ -10806,10 +10805,10 @@ def get_database_table_access_entry(ctx, from_json, security_policy_report_id, d @cli_util.wrap_exceptions def get_database_view_access_entry(ctx, from_json, security_policy_report_id, database_view_access_entry_key): - if isinstance(security_policy_report_id, six.string_types) and len(security_policy_report_id.strip()) == 0: + if isinstance(security_policy_report_id, str) and len(security_policy_report_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-report-id cannot be whitespace or empty string') - if isinstance(database_view_access_entry_key, six.string_types) and len(database_view_access_entry_key.strip()) == 0: + if isinstance(database_view_access_entry_key, str) and len(database_view_access_entry_key.strip()) == 0: raise click.UsageError('Parameter --database-view-access-entry-key cannot be whitespace or empty string') kwargs = {} @@ -10833,10 +10832,10 @@ def get_database_view_access_entry(ctx, from_json, security_policy_report_id, da @cli_util.wrap_exceptions def get_difference_column(ctx, from_json, sdm_masking_policy_difference_id, difference_column_key): - if isinstance(sdm_masking_policy_difference_id, six.string_types) and len(sdm_masking_policy_difference_id.strip()) == 0: + if isinstance(sdm_masking_policy_difference_id, str) and len(sdm_masking_policy_difference_id.strip()) == 0: raise click.UsageError('Parameter --sdm-masking-policy-difference-id cannot be whitespace or empty string') - if isinstance(difference_column_key, six.string_types) and len(difference_column_key.strip()) == 0: + if isinstance(difference_column_key, str) and len(difference_column_key.strip()) == 0: raise click.UsageError('Parameter --difference-column-key cannot be whitespace or empty string') kwargs = {} @@ -10859,7 +10858,7 @@ def get_difference_column(ctx, from_json, sdm_masking_policy_difference_id, diff @cli_util.wrap_exceptions def get_discovery_job(ctx, from_json, discovery_job_id): - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') kwargs = {} @@ -10882,10 +10881,10 @@ def get_discovery_job(ctx, from_json, discovery_job_id): @cli_util.wrap_exceptions def get_discovery_job_result(ctx, from_json, discovery_job_id, result_key): - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') - if isinstance(result_key, six.string_types) and len(result_key.strip()) == 0: + if isinstance(result_key, str) and len(result_key.strip()) == 0: raise click.UsageError('Parameter --result-key cannot be whitespace or empty string') kwargs = {} @@ -10911,7 +10910,7 @@ def get_discovery_job_result(ctx, from_json, discovery_job_id, result_key): @cli_util.wrap_exceptions def get_group_members(ctx, from_json, target_database_group_id, target_database_id, limit, page): - if isinstance(target_database_group_id, six.string_types) and len(target_database_group_id.strip()) == 0: + if isinstance(target_database_group_id, str) and len(target_database_group_id.strip()) == 0: raise click.UsageError('Parameter --target-database-group-id cannot be whitespace or empty string') kwargs = {} @@ -10939,7 +10938,7 @@ def get_group_members(ctx, from_json, target_database_group_id, target_database_ @cli_util.wrap_exceptions def get_library_masking_format(ctx, from_json, library_masking_format_id): - if isinstance(library_masking_format_id, six.string_types) and len(library_masking_format_id.strip()) == 0: + if isinstance(library_masking_format_id, str) and len(library_masking_format_id.strip()) == 0: raise click.UsageError('Parameter --library-masking-format-id cannot be whitespace or empty string') kwargs = {} @@ -10962,10 +10961,10 @@ def get_library_masking_format(ctx, from_json, library_masking_format_id): @cli_util.wrap_exceptions def get_masking_column(ctx, from_json, masking_policy_id, masking_column_key): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') - if isinstance(masking_column_key, six.string_types) and len(masking_column_key.strip()) == 0: + if isinstance(masking_column_key, str) and len(masking_column_key.strip()) == 0: raise click.UsageError('Parameter --masking-column-key cannot be whitespace or empty string') kwargs = {} @@ -10988,7 +10987,7 @@ def get_masking_column(ctx, from_json, masking_policy_id, masking_column_key): @cli_util.wrap_exceptions def get_masking_policy(ctx, from_json, masking_policy_id): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -11010,7 +11009,7 @@ def get_masking_policy(ctx, from_json, masking_policy_id): @cli_util.wrap_exceptions def get_masking_policy_health_report(ctx, from_json, masking_policy_health_report_id): - if isinstance(masking_policy_health_report_id, six.string_types) and len(masking_policy_health_report_id.strip()) == 0: + if isinstance(masking_policy_health_report_id, str) and len(masking_policy_health_report_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-health-report-id cannot be whitespace or empty string') kwargs = {} @@ -11032,7 +11031,7 @@ def get_masking_policy_health_report(ctx, from_json, masking_policy_health_repor @cli_util.wrap_exceptions def get_masking_report(ctx, from_json, masking_report_id): - if isinstance(masking_report_id, six.string_types) and len(masking_report_id.strip()) == 0: + if isinstance(masking_report_id, str) and len(masking_report_id.strip()) == 0: raise click.UsageError('Parameter --masking-report-id cannot be whitespace or empty string') kwargs = {} @@ -11054,7 +11053,7 @@ def get_masking_report(ctx, from_json, masking_report_id): @cli_util.wrap_exceptions def get_on_prem_connector(ctx, from_json, on_prem_connector_id): - if isinstance(on_prem_connector_id, six.string_types) and len(on_prem_connector_id.strip()) == 0: + if isinstance(on_prem_connector_id, str) and len(on_prem_connector_id.strip()) == 0: raise click.UsageError('Parameter --on-prem-connector-id cannot be whitespace or empty string') kwargs = {} @@ -11077,10 +11076,10 @@ def get_on_prem_connector(ctx, from_json, on_prem_connector_id): @cli_util.wrap_exceptions def get_peer_target_database(ctx, from_json, target_database_id, peer_target_database_id): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') - if isinstance(peer_target_database_id, six.string_types) and len(peer_target_database_id.strip()) == 0: + if isinstance(peer_target_database_id, str) and len(peer_target_database_id.strip()) == 0: raise click.UsageError('Parameter --peer-target-database-id cannot be whitespace or empty string') kwargs = {} @@ -11106,10 +11105,10 @@ def get_peer_target_database(ctx, from_json, target_database_id, peer_target_dat @cli_util.wrap_exceptions def get_profile(ctx, from_json, user_assessment_id, profile_name): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') - if isinstance(profile_name, six.string_types) and len(profile_name.strip()) == 0: + if isinstance(profile_name, str) and len(profile_name.strip()) == 0: raise click.UsageError('Parameter --profile-name cannot be whitespace or empty string') kwargs = {} @@ -11133,10 +11132,10 @@ def get_profile(ctx, from_json, user_assessment_id, profile_name): @cli_util.wrap_exceptions def get_referential_relation(ctx, from_json, sensitive_data_model_id, referential_relation_key): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') - if isinstance(referential_relation_key, six.string_types) and len(referential_relation_key.strip()) == 0: + if isinstance(referential_relation_key, str) and len(referential_relation_key.strip()) == 0: raise click.UsageError('Parameter --referential-relation-key cannot be whitespace or empty string') kwargs = {} @@ -11159,7 +11158,7 @@ def get_referential_relation(ctx, from_json, sensitive_data_model_id, referentia @cli_util.wrap_exceptions def get_report(ctx, from_json, report_id): - if isinstance(report_id, six.string_types) and len(report_id.strip()) == 0: + if isinstance(report_id, str) and len(report_id.strip()) == 0: raise click.UsageError('Parameter --report-id cannot be whitespace or empty string') kwargs = {} @@ -11182,7 +11181,7 @@ def get_report(ctx, from_json, report_id): @cli_util.wrap_exceptions def get_report_content(ctx, from_json, file, report_id): - if isinstance(report_id, six.string_types) and len(report_id.strip()) == 0: + if isinstance(report_id, str) and len(report_id.strip()) == 0: raise click.UsageError('Parameter --report-id cannot be whitespace or empty string') kwargs = {} @@ -11226,7 +11225,7 @@ def get_report_content(ctx, from_json, file, report_id): @cli_util.wrap_exceptions def get_report_definition(ctx, from_json, report_definition_id): - if isinstance(report_definition_id, six.string_types) and len(report_definition_id.strip()) == 0: + if isinstance(report_definition_id, str) and len(report_definition_id.strip()) == 0: raise click.UsageError('Parameter --report-definition-id cannot be whitespace or empty string') kwargs = {} @@ -11248,7 +11247,7 @@ def get_report_definition(ctx, from_json, report_definition_id): @cli_util.wrap_exceptions def get_sdm_masking_policy_difference(ctx, from_json, sdm_masking_policy_difference_id): - if isinstance(sdm_masking_policy_difference_id, six.string_types) and len(sdm_masking_policy_difference_id.strip()) == 0: + if isinstance(sdm_masking_policy_difference_id, str) and len(sdm_masking_policy_difference_id.strip()) == 0: raise click.UsageError('Parameter --sdm-masking-policy-difference-id cannot be whitespace or empty string') kwargs = {} @@ -11270,7 +11269,7 @@ def get_sdm_masking_policy_difference(ctx, from_json, sdm_masking_policy_differe @cli_util.wrap_exceptions def get_security_assessment(ctx, from_json, security_assessment_id): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -11293,10 +11292,10 @@ def get_security_assessment(ctx, from_json, security_assessment_id): @cli_util.wrap_exceptions def get_security_assessment_comparison(ctx, from_json, security_assessment_id, comparison_security_assessment_id): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') - if isinstance(comparison_security_assessment_id, six.string_types) and len(comparison_security_assessment_id.strip()) == 0: + if isinstance(comparison_security_assessment_id, str) and len(comparison_security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --comparison-security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -11319,7 +11318,7 @@ def get_security_assessment_comparison(ctx, from_json, security_assessment_id, c @cli_util.wrap_exceptions def get_security_policy(ctx, from_json, security_policy_id): - if isinstance(security_policy_id, six.string_types) and len(security_policy_id.strip()) == 0: + if isinstance(security_policy_id, str) and len(security_policy_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-id cannot be whitespace or empty string') kwargs = {} @@ -11341,7 +11340,7 @@ def get_security_policy(ctx, from_json, security_policy_id): @cli_util.wrap_exceptions def get_security_policy_config(ctx, from_json, security_policy_config_id): - if isinstance(security_policy_config_id, six.string_types) and len(security_policy_config_id.strip()) == 0: + if isinstance(security_policy_config_id, str) and len(security_policy_config_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-config-id cannot be whitespace or empty string') kwargs = {} @@ -11363,7 +11362,7 @@ def get_security_policy_config(ctx, from_json, security_policy_config_id): @cli_util.wrap_exceptions def get_security_policy_deployment(ctx, from_json, security_policy_deployment_id): - if isinstance(security_policy_deployment_id, six.string_types) and len(security_policy_deployment_id.strip()) == 0: + if isinstance(security_policy_deployment_id, str) and len(security_policy_deployment_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -11386,10 +11385,10 @@ def get_security_policy_deployment(ctx, from_json, security_policy_deployment_id @cli_util.wrap_exceptions def get_security_policy_entry_state(ctx, from_json, security_policy_deployment_id, security_policy_entry_state_id): - if isinstance(security_policy_deployment_id, six.string_types) and len(security_policy_deployment_id.strip()) == 0: + if isinstance(security_policy_deployment_id, str) and len(security_policy_deployment_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-deployment-id cannot be whitespace or empty string') - if isinstance(security_policy_entry_state_id, six.string_types) and len(security_policy_entry_state_id.strip()) == 0: + if isinstance(security_policy_entry_state_id, str) and len(security_policy_entry_state_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-entry-state-id cannot be whitespace or empty string') kwargs = {} @@ -11412,7 +11411,7 @@ def get_security_policy_entry_state(ctx, from_json, security_policy_deployment_i @cli_util.wrap_exceptions def get_security_policy_report(ctx, from_json, security_policy_report_id): - if isinstance(security_policy_report_id, six.string_types) and len(security_policy_report_id.strip()) == 0: + if isinstance(security_policy_report_id, str) and len(security_policy_report_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-report-id cannot be whitespace or empty string') kwargs = {} @@ -11435,10 +11434,10 @@ def get_security_policy_report(ctx, from_json, security_policy_report_id): @cli_util.wrap_exceptions def get_sensitive_column(ctx, from_json, sensitive_data_model_id, sensitive_column_key): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') - if isinstance(sensitive_column_key, six.string_types) and len(sensitive_column_key.strip()) == 0: + if isinstance(sensitive_column_key, str) and len(sensitive_column_key.strip()) == 0: raise click.UsageError('Parameter --sensitive-column-key cannot be whitespace or empty string') kwargs = {} @@ -11461,7 +11460,7 @@ def get_sensitive_column(ctx, from_json, sensitive_data_model_id, sensitive_colu @cli_util.wrap_exceptions def get_sensitive_data_model(ctx, from_json, sensitive_data_model_id): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -11483,7 +11482,7 @@ def get_sensitive_data_model(ctx, from_json, sensitive_data_model_id): @cli_util.wrap_exceptions def get_sensitive_type(ctx, from_json, sensitive_type_id): - if isinstance(sensitive_type_id, six.string_types) and len(sensitive_type_id.strip()) == 0: + if isinstance(sensitive_type_id, str) and len(sensitive_type_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-id cannot be whitespace or empty string') kwargs = {} @@ -11505,7 +11504,7 @@ def get_sensitive_type(ctx, from_json, sensitive_type_id): @cli_util.wrap_exceptions def get_sensitive_type_group(ctx, from_json, sensitive_type_group_id): - if isinstance(sensitive_type_group_id, six.string_types) and len(sensitive_type_group_id.strip()) == 0: + if isinstance(sensitive_type_group_id, str) and len(sensitive_type_group_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-group-id cannot be whitespace or empty string') kwargs = {} @@ -11527,7 +11526,7 @@ def get_sensitive_type_group(ctx, from_json, sensitive_type_group_id): @cli_util.wrap_exceptions def get_sensitive_types_export(ctx, from_json, sensitive_types_export_id): - if isinstance(sensitive_types_export_id, six.string_types) and len(sensitive_types_export_id.strip()) == 0: + if isinstance(sensitive_types_export_id, str) and len(sensitive_types_export_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-types-export-id cannot be whitespace or empty string') kwargs = {} @@ -11549,7 +11548,7 @@ def get_sensitive_types_export(ctx, from_json, sensitive_types_export_id): @cli_util.wrap_exceptions def get_sql_collection(ctx, from_json, sql_collection_id): - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') kwargs = {} @@ -11571,7 +11570,7 @@ def get_sql_collection(ctx, from_json, sql_collection_id): @cli_util.wrap_exceptions def get_sql_firewall_allowed_sql(ctx, from_json, sql_firewall_allowed_sql_id): - if isinstance(sql_firewall_allowed_sql_id, six.string_types) and len(sql_firewall_allowed_sql_id.strip()) == 0: + if isinstance(sql_firewall_allowed_sql_id, str) and len(sql_firewall_allowed_sql_id.strip()) == 0: raise click.UsageError('Parameter --sql-firewall-allowed-sql-id cannot be whitespace or empty string') kwargs = {} @@ -11593,7 +11592,7 @@ def get_sql_firewall_allowed_sql(ctx, from_json, sql_firewall_allowed_sql_id): @cli_util.wrap_exceptions def get_sql_firewall_policy(ctx, from_json, sql_firewall_policy_id): - if isinstance(sql_firewall_policy_id, six.string_types) and len(sql_firewall_policy_id.strip()) == 0: + if isinstance(sql_firewall_policy_id, str) and len(sql_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --sql-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -11615,7 +11614,7 @@ def get_sql_firewall_policy(ctx, from_json, sql_firewall_policy_id): @cli_util.wrap_exceptions def get_target_alert_policy_association(ctx, from_json, target_alert_policy_association_id): - if isinstance(target_alert_policy_association_id, six.string_types) and len(target_alert_policy_association_id.strip()) == 0: + if isinstance(target_alert_policy_association_id, str) and len(target_alert_policy_association_id.strip()) == 0: raise click.UsageError('Parameter --target-alert-policy-association-id cannot be whitespace or empty string') kwargs = {} @@ -11637,7 +11636,7 @@ def get_target_alert_policy_association(ctx, from_json, target_alert_policy_asso @cli_util.wrap_exceptions def get_target_database(ctx, from_json, target_database_id): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -11659,7 +11658,7 @@ def get_target_database(ctx, from_json, target_database_id): @cli_util.wrap_exceptions def get_target_database_group(ctx, from_json, target_database_group_id): - if isinstance(target_database_group_id, six.string_types) and len(target_database_group_id.strip()) == 0: + if isinstance(target_database_group_id, str) and len(target_database_group_id.strip()) == 0: raise click.UsageError('Parameter --target-database-group-id cannot be whitespace or empty string') kwargs = {} @@ -11685,10 +11684,10 @@ def get_target_database_group(ctx, from_json, target_database_group_id): @cli_util.wrap_exceptions def get_template_baseline_comparison(ctx, from_json, security_assessment_id, comparison_security_assessment_id, target_id, category, finding_key): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') - if isinstance(comparison_security_assessment_id, six.string_types) and len(comparison_security_assessment_id.strip()) == 0: + if isinstance(comparison_security_assessment_id, str) and len(comparison_security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --comparison-security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -11717,7 +11716,7 @@ def get_template_baseline_comparison(ctx, from_json, security_assessment_id, com @cli_util.wrap_exceptions def get_unified_audit_policy(ctx, from_json, unified_audit_policy_id): - if isinstance(unified_audit_policy_id, six.string_types) and len(unified_audit_policy_id.strip()) == 0: + if isinstance(unified_audit_policy_id, str) and len(unified_audit_policy_id.strip()) == 0: raise click.UsageError('Parameter --unified-audit-policy-id cannot be whitespace or empty string') kwargs = {} @@ -11739,7 +11738,7 @@ def get_unified_audit_policy(ctx, from_json, unified_audit_policy_id): @cli_util.wrap_exceptions def get_unified_audit_policy_definition(ctx, from_json, unified_audit_policy_definition_id): - if isinstance(unified_audit_policy_definition_id, six.string_types) and len(unified_audit_policy_definition_id.strip()) == 0: + if isinstance(unified_audit_policy_definition_id, str) and len(unified_audit_policy_definition_id.strip()) == 0: raise click.UsageError('Parameter --unified-audit-policy-definition-id cannot be whitespace or empty string') kwargs = {} @@ -11761,7 +11760,7 @@ def get_unified_audit_policy_definition(ctx, from_json, unified_audit_policy_def @cli_util.wrap_exceptions def get_user_assessment(ctx, from_json, user_assessment_id): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -11784,10 +11783,10 @@ def get_user_assessment(ctx, from_json, user_assessment_id): @cli_util.wrap_exceptions def get_user_assessment_comparison(ctx, from_json, user_assessment_id, comparison_user_assessment_id): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') - if isinstance(comparison_user_assessment_id, six.string_types) and len(comparison_user_assessment_id.strip()) == 0: + if isinstance(comparison_user_assessment_id, str) and len(comparison_user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --comparison-user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -11810,7 +11809,7 @@ def get_user_assessment_comparison(ctx, from_json, user_assessment_id, compariso @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -12007,7 +12006,7 @@ def list_alert_policy_rules(ctx, from_json, all_pages, page_size, alert_policy_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(alert_policy_id, six.string_types) and len(alert_policy_id.strip()) == 0: + if isinstance(alert_policy_id, str) and len(alert_policy_id.strip()) == 0: raise click.UsageError('Parameter --alert-policy-id cannot be whitespace or empty string') kwargs = {} @@ -12132,7 +12131,7 @@ def list_associated_resources(ctx, from_json, all_pages, page_size, attribute_se if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(attribute_set_id, six.string_types) and len(attribute_set_id.strip()) == 0: + if isinstance(attribute_set_id, str) and len(attribute_set_id.strip()) == 0: raise click.UsageError('Parameter --attribute-set-id cannot be whitespace or empty string') kwargs = {} @@ -12993,7 +12992,7 @@ def list_available_audit_volumes(ctx, from_json, all_pages, page_size, audit_pro if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -13065,7 +13064,7 @@ def list_checks(ctx, from_json, all_pages, page_size, security_assessment_id, li if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -13141,7 +13140,7 @@ def list_collected_audit_volumes(ctx, from_json, all_pages, page_size, audit_pro if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -13212,7 +13211,7 @@ def list_columns(ctx, from_json, all_pages, page_size, target_database_id, limit if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -13448,7 +13447,7 @@ def list_database_table_access_entries(ctx, from_json, all_pages, page_size, sec if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(security_policy_report_id, six.string_types) and len(security_policy_report_id.strip()) == 0: + if isinstance(security_policy_report_id, str) and len(security_policy_report_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-report-id cannot be whitespace or empty string') kwargs = {} @@ -13513,7 +13512,7 @@ def list_database_view_access_entries(ctx, from_json, all_pages, page_size, secu if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(security_policy_report_id, six.string_types) and len(security_policy_report_id.strip()) == 0: + if isinstance(security_policy_report_id, str) and len(security_policy_report_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-report-id cannot be whitespace or empty string') kwargs = {} @@ -13580,7 +13579,7 @@ def list_difference_columns(ctx, from_json, all_pages, page_size, sdm_masking_po if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sdm_masking_policy_difference_id, six.string_types) and len(sdm_masking_policy_difference_id.strip()) == 0: + if isinstance(sdm_masking_policy_difference_id, str) and len(sdm_masking_policy_difference_id.strip()) == 0: raise click.UsageError('Parameter --sdm-masking-policy-difference-id cannot be whitespace or empty string') kwargs = {} @@ -13734,7 +13733,7 @@ def list_discovery_job_results(ctx, from_json, all_pages, page_size, discovery_j if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') kwargs = {} @@ -13993,7 +13992,7 @@ def list_findings(ctx, from_json, all_pages, page_size, security_assessment_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -14095,7 +14094,7 @@ def list_findings_change_audit_logs(ctx, from_json, all_pages, page_size, securi if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -14178,10 +14177,10 @@ def list_grants(ctx, from_json, all_pages, page_size, user_assessment_id, user_k if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') - if isinstance(user_key, six.string_types) and len(user_key.strip()) == 0: + if isinstance(user_key, str) and len(user_key.strip()) == 0: raise click.UsageError('Parameter --user-key cannot be whitespace or empty string') kwargs = {} @@ -14254,7 +14253,7 @@ def list_grouped_sensitive_types(ctx, from_json, all_pages, page_size, sensitive if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sensitive_type_group_id, six.string_types) and len(sensitive_type_group_id.strip()) == 0: + if isinstance(sensitive_type_group_id, str) and len(sensitive_type_group_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-group-id cannot be whitespace or empty string') kwargs = {} @@ -14397,7 +14396,7 @@ def list_masked_columns(ctx, from_json, all_pages, page_size, masking_report_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(masking_report_id, six.string_types) and len(masking_report_id.strip()) == 0: + if isinstance(masking_report_id, str) and len(masking_report_id.strip()) == 0: raise click.UsageError('Parameter --masking-report-id cannot be whitespace or empty string') kwargs = {} @@ -14556,7 +14555,7 @@ def list_masking_columns(ctx, from_json, all_pages, page_size, masking_policy_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -14642,7 +14641,7 @@ def list_masking_errors(ctx, from_json, all_pages, page_size, masking_report_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(masking_report_id, six.string_types) and len(masking_report_id.strip()) == 0: + if isinstance(masking_report_id, str) and len(masking_report_id.strip()) == 0: raise click.UsageError('Parameter --masking-report-id cannot be whitespace or empty string') kwargs = {} @@ -14704,7 +14703,7 @@ def list_masking_objects(ctx, from_json, all_pages, page_size, masking_policy_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -14853,7 +14852,7 @@ def list_masking_policy_health_report_logs(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(masking_policy_health_report_id, six.string_types) and len(masking_policy_health_report_id.strip()) == 0: + if isinstance(masking_policy_health_report_id, str) and len(masking_policy_health_report_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-health-report-id cannot be whitespace or empty string') kwargs = {} @@ -14991,7 +14990,7 @@ def list_masking_policy_referential_relations(ctx, from_json, all_pages, page_si if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -15126,7 +15125,7 @@ def list_masking_schemas(ctx, from_json, all_pages, page_size, masking_policy_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -15254,7 +15253,7 @@ def list_on_prem_connectors(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def list_password_expiry_date_analytics(ctx, from_json, all_pages, user_assessment_id, compartment_id_in_subtree, access_level, user_category, time_password_expiry_less_than): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -15292,7 +15291,7 @@ def list_peer_target_databases(ctx, from_json, all_pages, page_size, target_data if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -15358,7 +15357,7 @@ def list_profile_analytics(ctx, from_json, all_pages, page_size, user_assessment if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -15449,7 +15448,7 @@ def list_profile_summaries(ctx, from_json, all_pages, page_size, user_assessment if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -15546,7 +15545,7 @@ def list_referential_relations(ctx, from_json, all_pages, page_size, sensitive_d if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -15778,7 +15777,7 @@ def list_role_grant_paths(ctx, from_json, all_pages, page_size, security_policy_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(security_policy_report_id, six.string_types) and len(security_policy_report_id.strip()) == 0: + if isinstance(security_policy_report_id, str) and len(security_policy_report_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-report-id cannot be whitespace or empty string') kwargs = {} @@ -15841,7 +15840,7 @@ def list_roles(ctx, from_json, all_pages, page_size, target_database_id, limit, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -15909,7 +15908,7 @@ def list_schemas(ctx, from_json, all_pages, page_size, target_database_id, limit if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -16534,7 +16533,7 @@ def list_security_policy_entry_states(ctx, from_json, all_pages, page_size, secu if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(security_policy_deployment_id, six.string_types) and len(security_policy_deployment_id.strip()) == 0: + if isinstance(security_policy_deployment_id, str) and len(security_policy_deployment_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -16780,7 +16779,7 @@ def list_sensitive_columns(ctx, from_json, all_pages, page_size, sensitive_data_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -16874,7 +16873,7 @@ def list_sensitive_data_model_sensitive_types(ctx, from_json, all_pages, page_si if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -17018,7 +17017,7 @@ def list_sensitive_objects(ctx, from_json, all_pages, page_size, sensitive_data_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -17082,7 +17081,7 @@ def list_sensitive_schemas(ctx, from_json, all_pages, page_size, sensitive_data_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -17472,7 +17471,7 @@ def list_sql_collection_log_insights(ctx, from_json, all_pages, page_size, time_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') kwargs = {} @@ -18082,7 +18081,7 @@ def list_tables(ctx, from_json, all_pages, page_size, target_database_id, limit, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -18232,7 +18231,7 @@ def list_target_alert_policy_unassociated_members(ctx, from_json, all_pages, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(target_alert_policy_association_id, six.string_types) and len(target_alert_policy_association_id.strip()) == 0: + if isinstance(target_alert_policy_association_id, str) and len(target_alert_policy_association_id.strip()) == 0: raise click.UsageError('Parameter --target-alert-policy-association-id cannot be whitespace or empty string') kwargs = {} @@ -18450,7 +18449,7 @@ def list_target_overrides(ctx, from_json, all_pages, page_size, audit_profile_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') kwargs = {} @@ -18836,7 +18835,7 @@ def list_user_access_analytics(ctx, from_json, all_pages, page_size, user_assess if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -18921,7 +18920,7 @@ def list_user_analytics(ctx, from_json, all_pages, page_size, user_assessment_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -19144,7 +19143,7 @@ def list_users(ctx, from_json, all_pages, page_size, user_assessment_id, limit, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -19243,7 +19242,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -19294,7 +19293,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -19426,7 +19425,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, ope @cli_util.wrap_exceptions def mask_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, target_id, is_decrypt, is_rerun, re_run_from_step, tablespace, is_ignore_errors_enabled, seed, user_defined_function_seed, is_move_interim_tables_enabled, is_execute_saved_script_enabled, is_drop_temp_tables_enabled, is_redo_logging_enabled, is_refresh_stats_enabled, parallel_degree, recompile, target_credentials): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -19534,7 +19533,7 @@ def mask_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_se @cli_util.wrap_exceptions def modify_global_settings(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, is_paid_usage, online_retention_period, offline_retention_period, if_match): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') kwargs = {} @@ -19669,7 +19668,7 @@ def patch_alerts(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def patch_checks(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, items, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -19734,7 +19733,7 @@ def patch_checks(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def patch_discovery_job_results(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, discovery_job_id, items, if_match): - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') kwargs = {} @@ -19799,7 +19798,7 @@ def patch_discovery_job_results(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def patch_findings(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, items, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -19864,7 +19863,7 @@ def patch_findings(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def patch_grouped_sensitive_types(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_type_group_id, items, if_match): - if isinstance(sensitive_type_group_id, six.string_types) and len(sensitive_type_group_id.strip()) == 0: + if isinstance(sensitive_type_group_id, str) and len(sensitive_type_group_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-group-id cannot be whitespace or empty string') kwargs = {} @@ -19929,7 +19928,7 @@ def patch_grouped_sensitive_types(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def patch_masking_columns(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, items, if_match): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -19994,7 +19993,7 @@ def patch_masking_columns(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def patch_sdm_masking_policy_difference_columns(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sdm_masking_policy_difference_id, items, if_match): - if isinstance(sdm_masking_policy_difference_id, six.string_types) and len(sdm_masking_policy_difference_id.strip()) == 0: + if isinstance(sdm_masking_policy_difference_id, str) and len(sdm_masking_policy_difference_id.strip()) == 0: raise click.UsageError('Parameter --sdm-masking-policy-difference-id cannot be whitespace or empty string') kwargs = {} @@ -20059,7 +20058,7 @@ def patch_sdm_masking_policy_difference_columns(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def patch_sensitive_columns(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, items, if_match): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} @@ -20239,7 +20238,7 @@ def patch_target_alert_policy_association(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def provision_audit_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, provision_audit_conditions, audit_policy_id, is_data_safe_service_account_excluded, if_match): - if isinstance(audit_policy_id, six.string_types) and len(audit_policy_id.strip()) == 0: + if isinstance(audit_policy_id, str) and len(audit_policy_id.strip()) == 0: raise click.UsageError('Parameter --audit-policy-id cannot be whitespace or empty string') kwargs = {} @@ -20302,7 +20301,7 @@ def provision_audit_policy(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def purge_sql_collection_logs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_collection_id, if_match): - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') kwargs = {} @@ -20357,7 +20356,7 @@ def purge_sql_collection_logs(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def refresh_database_security_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_security_config_id, if_match): - if isinstance(database_security_config_id, six.string_types) and len(database_security_config_id.strip()) == 0: + if isinstance(database_security_config_id, str) and len(database_security_config_id.strip()) == 0: raise click.UsageError('Parameter --database-security-config-id cannot be whitespace or empty string') kwargs = {} @@ -20418,7 +20417,7 @@ def refresh_database_security_configuration(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def refresh_security_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, compartment_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -20489,7 +20488,7 @@ def refresh_security_assessment(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def refresh_security_policy_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_deployment_id, if_match): - if isinstance(security_policy_deployment_id, six.string_types) and len(security_policy_deployment_id.strip()) == 0: + if isinstance(security_policy_deployment_id, str) and len(security_policy_deployment_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -20544,7 +20543,7 @@ def refresh_security_policy_deployment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def refresh_sql_collection_log_insights(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_collection_id, if_match): - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') kwargs = {} @@ -20599,7 +20598,7 @@ def refresh_sql_collection_log_insights(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def refresh_target_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') kwargs = {} @@ -20661,7 +20660,7 @@ def refresh_target_database(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def refresh_user_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_assessment_id, compartment_id, description, display_name, freeform_tags, defined_tags, if_match): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -20735,7 +20734,7 @@ def refresh_user_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def remove_schedule_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, report_definition_id, if_match): - if isinstance(report_definition_id, six.string_types) and len(report_definition_id.strip()) == 0: + if isinstance(report_definition_id, str) and len(report_definition_id.strip()) == 0: raise click.UsageError('Parameter --report-definition-id cannot be whitespace or empty string') kwargs = {} @@ -20790,7 +20789,7 @@ def remove_schedule_report(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def remove_security_assessment_template(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -20845,7 +20844,7 @@ def remove_security_assessment_template(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def resume_audit_trail(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_trail_id, if_match): - if isinstance(audit_trail_id, six.string_types) and len(audit_trail_id.strip()) == 0: + if isinstance(audit_trail_id, str) and len(audit_trail_id.strip()) == 0: raise click.UsageError('Parameter --audit-trail-id cannot be whitespace or empty string') kwargs = {} @@ -20897,7 +20896,7 @@ def resume_audit_trail(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def resume_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -20925,7 +20924,7 @@ def resume_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def retrieve_audit_policies(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_policy_id, if_match): - if isinstance(audit_policy_id, six.string_types) and len(audit_policy_id.strip()) == 0: + if isinstance(audit_policy_id, str) and len(audit_policy_id.strip()) == 0: raise click.UsageError('Parameter --audit-policy-id cannot be whitespace or empty string') kwargs = {} @@ -20988,7 +20987,7 @@ def retrieve_audit_policies(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def schedule_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, report_definition_id, schedule, mime_type, compartment_id, report_details, display_name, is_pagination_enabled, if_match): - if isinstance(report_definition_id, six.string_types) and len(report_definition_id.strip()) == 0: + if isinstance(report_definition_id, str) and len(report_definition_id.strip()) == 0: raise click.UsageError('Parameter --report-definition-id cannot be whitespace or empty string') kwargs = {} @@ -21066,7 +21065,7 @@ def schedule_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def schedule_report_schedule_audit_report_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, report_definition_id, schedule, mime_type, compartment_id, report_details_record_time_span, display_name, is_pagination_enabled, if_match, report_details_row_limit): - if isinstance(report_definition_id, six.string_types) and len(report_definition_id.strip()) == 0: + if isinstance(report_definition_id, str) and len(report_definition_id.strip()) == 0: raise click.UsageError('Parameter --report-definition-id cannot be whitespace or empty string') kwargs = {} @@ -21142,7 +21141,7 @@ def schedule_report_schedule_audit_report_details(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def set_security_assessment_baseline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, if_match, assessment_ids): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -21205,7 +21204,7 @@ def set_security_assessment_baseline(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def set_user_assessment_baseline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_assessment_id, if_match, assessment_ids): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -21270,7 +21269,7 @@ def set_user_assessment_baseline(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def start_audit_trail(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_collection_start_time, audit_trail_id, is_auto_purge_enabled, can_update_last_archive_time_on_target, if_match): - if isinstance(audit_trail_id, six.string_types) and len(audit_trail_id.strip()) == 0: + if isinstance(audit_trail_id, str) and len(audit_trail_id.strip()) == 0: raise click.UsageError('Parameter --audit-trail-id cannot be whitespace or empty string') kwargs = {} @@ -21336,7 +21335,7 @@ def start_audit_trail(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def start_sql_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_collection_id, if_match): - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') kwargs = {} @@ -21391,7 +21390,7 @@ def start_sql_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def stop_audit_trail(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_trail_id, if_match): - if isinstance(audit_trail_id, six.string_types) and len(audit_trail_id.strip()) == 0: + if isinstance(audit_trail_id, str) and len(audit_trail_id.strip()) == 0: raise click.UsageError('Parameter --audit-trail-id cannot be whitespace or empty string') kwargs = {} @@ -21446,7 +21445,7 @@ def stop_audit_trail(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def stop_sql_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_collection_id, if_match): - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') kwargs = {} @@ -21498,7 +21497,7 @@ def stop_sql_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def suspend_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -21527,7 +21526,7 @@ def suspend_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def unset_security_assessment_baseline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, if_match, target_ids): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -21590,7 +21589,7 @@ def unset_security_assessment_baseline(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def unset_user_assessment_baseline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_assessment_id, if_match, target_ids): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') kwargs = {} @@ -21659,7 +21658,7 @@ def unset_user_assessment_baseline(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_alert(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, alert_id, comment, status, freeform_tags, defined_tags, if_match): - if isinstance(alert_id, six.string_types) and len(alert_id.strip()) == 0: + if isinstance(alert_id, str) and len(alert_id.strip()) == 0: raise click.UsageError('Parameter --alert-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21738,7 +21737,7 @@ def update_alert(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_alert_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, alert_policy_id, display_name, description, severity, freeform_tags, defined_tags, if_match): - if isinstance(alert_policy_id, six.string_types) and len(alert_policy_id.strip()) == 0: + if isinstance(alert_policy_id, str) and len(alert_policy_id.strip()) == 0: raise click.UsageError('Parameter --alert-policy-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21820,10 +21819,10 @@ def update_alert_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_alert_policy_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, alert_policy_id, rule_key, description, expression, display_name, if_match): - if isinstance(alert_policy_id, six.string_types) and len(alert_policy_id.strip()) == 0: + if isinstance(alert_policy_id, str) and len(alert_policy_id.strip()) == 0: raise click.UsageError('Parameter --alert-policy-id cannot be whitespace or empty string') - if isinstance(rule_key, six.string_types) and len(rule_key.strip()) == 0: + if isinstance(rule_key, str) and len(rule_key.strip()) == 0: raise click.UsageError('Parameter --rule-key cannot be whitespace or empty string') kwargs = {} @@ -21900,7 +21899,7 @@ def update_alert_policy_rule(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_attribute_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, attribute_set_id, display_name, description, attribute_set_values, freeform_tags, defined_tags, if_match): - if isinstance(attribute_set_id, six.string_types) and len(attribute_set_id.strip()) == 0: + if isinstance(attribute_set_id, str) and len(attribute_set_id.strip()) == 0: raise click.UsageError('Parameter --attribute-set-id cannot be whitespace or empty string') if not force: if attribute_set_values or freeform_tags or defined_tags: @@ -21985,7 +21984,7 @@ def update_attribute_set(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_audit_archive_retrieval(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_archive_retrieval_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(audit_archive_retrieval_id, six.string_types) and len(audit_archive_retrieval_id.strip()) == 0: + if isinstance(audit_archive_retrieval_id, str) and len(audit_archive_retrieval_id.strip()) == 0: raise click.UsageError('Parameter --audit-archive-retrieval-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22067,7 +22066,7 @@ def update_audit_archive_retrieval(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_audit_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_policy_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(audit_policy_id, six.string_types) and len(audit_policy_id.strip()) == 0: + if isinstance(audit_policy_id, str) and len(audit_policy_id.strip()) == 0: raise click.UsageError('Parameter --audit-policy-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22151,7 +22150,7 @@ def update_audit_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_audit_profile(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_profile_id, description, display_name, is_paid_usage_enabled, is_override_global_paid_usage, freeform_tags, defined_tags, if_match): - if isinstance(audit_profile_id, six.string_types) and len(audit_profile_id.strip()) == 0: + if isinstance(audit_profile_id, str) and len(audit_profile_id.strip()) == 0: raise click.UsageError('Parameter --audit-profile-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22241,7 +22240,7 @@ def update_audit_profile(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_audit_trail(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, audit_trail_id, description, display_name, is_auto_purge_enabled, can_update_last_archive_time_on_target, freeform_tags, defined_tags, if_match): - if isinstance(audit_trail_id, six.string_types) and len(audit_trail_id.strip()) == 0: + if isinstance(audit_trail_id, str) and len(audit_trail_id.strip()) == 0: raise click.UsageError('Parameter --audit-trail-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22331,7 +22330,7 @@ def update_audit_trail(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_data_safe_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_safe_private_endpoint_id, display_name, description, nsg_ids, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(data_safe_private_endpoint_id, six.string_types) and len(data_safe_private_endpoint_id.strip()) == 0: + if isinstance(data_safe_private_endpoint_id, str) and len(data_safe_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --data-safe-private-endpoint-id cannot be whitespace or empty string') if not force: if nsg_ids or freeform_tags or defined_tags or security_attributes: @@ -22420,7 +22419,7 @@ def update_data_safe_private_endpoint(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_database_security_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_security_config_id, display_name, description, sql_firewall_config, freeform_tags, defined_tags, if_match): - if isinstance(database_security_config_id, six.string_types) and len(database_security_config_id.strip()) == 0: + if isinstance(database_security_config_id, str) and len(database_security_config_id.strip()) == 0: raise click.UsageError('Parameter --database-security-config-id cannot be whitespace or empty string') if not force: if sql_firewall_config or freeform_tags or defined_tags: @@ -22502,10 +22501,10 @@ def update_database_security_config(ctx, from_json, force, wait_for_state, max_w @cli_util.wrap_exceptions def update_finding(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, finding_key, severity, justification, time_valid_until, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') - if isinstance(finding_key, six.string_types) and len(finding_key.strip()) == 0: + if isinstance(finding_key, str) and len(finding_key.strip()) == 0: raise click.UsageError('Parameter --finding-key cannot be whitespace or empty string') kwargs = {} @@ -22585,7 +22584,7 @@ def update_finding(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def update_library_masking_format(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, library_masking_format_id, display_name, description, sensitive_type_ids, format_entries, freeform_tags, defined_tags, if_match): - if isinstance(library_masking_format_id, six.string_types) and len(library_masking_format_id.strip()) == 0: + if isinstance(library_masking_format_id, str) and len(library_masking_format_id.strip()) == 0: raise click.UsageError('Parameter --library-masking-format-id cannot be whitespace or empty string') if not force: if sensitive_type_ids or format_entries or freeform_tags or defined_tags: @@ -22675,10 +22674,10 @@ def update_library_masking_format(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_masking_column(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_column_key, masking_policy_id, object_type, masking_column_group, sensitive_type_id, is_masking_enabled, masking_formats, if_match): - if isinstance(masking_column_key, six.string_types) and len(masking_column_key.strip()) == 0: + if isinstance(masking_column_key, str) and len(masking_column_key.strip()) == 0: raise click.UsageError('Parameter --masking-column-key cannot be whitespace or empty string') - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') if not force: if masking_formats: @@ -22772,7 +22771,7 @@ def update_masking_column(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_masking_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, display_name, description, is_drop_temp_tables_enabled, is_redo_logging_enabled, is_refresh_stats_enabled, parallel_degree, recompile, pre_masking_script, post_masking_script, column_source, freeform_tags, defined_tags, if_match): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') if not force: if column_source or freeform_tags or defined_tags: @@ -22886,7 +22885,7 @@ def update_masking_policy(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_masking_policy_update_column_source_sdm_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, column_source_sensitive_data_model_id, display_name, description, is_drop_temp_tables_enabled, is_redo_logging_enabled, is_refresh_stats_enabled, parallel_degree, recompile, pre_masking_script, post_masking_script, freeform_tags, defined_tags, if_match): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -23001,7 +23000,7 @@ def update_masking_policy_update_column_source_sdm_details(ctx, from_json, force @cli_util.wrap_exceptions def update_masking_policy_update_column_source_target_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, masking_policy_id, column_source_target_id, display_name, description, is_drop_temp_tables_enabled, is_redo_logging_enabled, is_refresh_stats_enabled, parallel_degree, recompile, pre_masking_script, post_masking_script, freeform_tags, defined_tags, if_match): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -23108,7 +23107,7 @@ def update_masking_policy_update_column_source_target_details(ctx, from_json, fo @cli_util.wrap_exceptions def update_on_prem_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, on_prem_connector_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(on_prem_connector_id, six.string_types) and len(on_prem_connector_id.strip()) == 0: + if isinstance(on_prem_connector_id, str) and len(on_prem_connector_id.strip()) == 0: raise click.UsageError('Parameter --on-prem-connector-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -23184,7 +23183,7 @@ def update_on_prem_connector(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_on_prem_connector_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, on_prem_connector_id, is_update, if_match): - if isinstance(on_prem_connector_id, six.string_types) and len(on_prem_connector_id.strip()) == 0: + if isinstance(on_prem_connector_id, str) and len(on_prem_connector_id.strip()) == 0: raise click.UsageError('Parameter --on-prem-connector-id cannot be whitespace or empty string') kwargs = {} @@ -23252,10 +23251,10 @@ def update_on_prem_connector_wallet(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_peer_target_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, peer_target_database_id, display_name, description, database_details, tls_config, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') - if isinstance(peer_target_database_id, six.string_types) and len(peer_target_database_id.strip()) == 0: + if isinstance(peer_target_database_id, str) and len(peer_target_database_id.strip()) == 0: raise click.UsageError('Parameter --peer-target-database-id cannot be whitespace or empty string') if not force: if database_details or tls_config: @@ -23341,10 +23340,10 @@ def update_peer_target_database(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_peer_target_database_installed_database_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, peer_target_database_id, database_details_infrastructure_type, database_details_listener_port, database_details_service_name, display_name, description, tls_config, if_match, database_details_instance_id, database_details_ip_addresses): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') - if isinstance(peer_target_database_id, six.string_types) and len(peer_target_database_id.strip()) == 0: + if isinstance(peer_target_database_id, str) and len(peer_target_database_id.strip()) == 0: raise click.UsageError('Parameter --peer-target-database-id cannot be whitespace or empty string') if not force: if tls_config: @@ -23436,10 +23435,10 @@ def update_peer_target_database_installed_database_details(ctx, from_json, force @cli_util.wrap_exceptions def update_peer_target_database_autonomous_database_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, peer_target_database_id, database_details_infrastructure_type, database_details_autonomous_database_id, display_name, description, tls_config, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') - if isinstance(peer_target_database_id, six.string_types) and len(peer_target_database_id.strip()) == 0: + if isinstance(peer_target_database_id, str) and len(peer_target_database_id.strip()) == 0: raise click.UsageError('Parameter --peer-target-database-id cannot be whitespace or empty string') if not force: if tls_config: @@ -23528,10 +23527,10 @@ def update_peer_target_database_autonomous_database_details(ctx, from_json, forc @cli_util.wrap_exceptions def update_peer_target_database_database_cloud_service_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, peer_target_database_id, database_details_infrastructure_type, display_name, description, tls_config, if_match, database_details_vm_cluster_id, database_details_db_system_id, database_details_pluggable_database_id, database_details_listener_port, database_details_service_name): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') - if isinstance(peer_target_database_id, six.string_types) and len(peer_target_database_id.strip()) == 0: + if isinstance(peer_target_database_id, str) and len(peer_target_database_id.strip()) == 0: raise click.UsageError('Parameter --peer-target-database-id cannot be whitespace or empty string') if not force: if tls_config: @@ -23628,7 +23627,7 @@ def update_peer_target_database_database_cloud_service_details(ctx, from_json, f @cli_util.wrap_exceptions def update_report(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, report_id, freeform_tags, defined_tags, if_match): - if isinstance(report_id, six.string_types) and len(report_id.strip()) == 0: + if isinstance(report_id, str) and len(report_id.strip()) == 0: raise click.UsageError('Parameter --report-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -23708,7 +23707,7 @@ def update_report(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_report_definition(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, report_definition_id, display_name, column_info, column_filters, column_sortings, summary, description, freeform_tags, defined_tags, if_match): - if isinstance(report_definition_id, six.string_types) and len(report_definition_id.strip()) == 0: + if isinstance(report_definition_id, str) and len(report_definition_id.strip()) == 0: raise click.UsageError('Parameter --report-definition-id cannot be whitespace or empty string') if not force: if column_info or column_filters or column_sortings or summary or freeform_tags or defined_tags: @@ -23791,7 +23790,7 @@ def update_report_definition(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_sdm_masking_policy_difference(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sdm_masking_policy_difference_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(sdm_masking_policy_difference_id, six.string_types) and len(sdm_masking_policy_difference_id.strip()) == 0: + if isinstance(sdm_masking_policy_difference_id, str) and len(sdm_masking_policy_difference_id.strip()) == 0: raise click.UsageError('Parameter --sdm-masking-policy-difference-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -23874,7 +23873,7 @@ def update_sdm_masking_policy_difference(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_security_assessment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, security_assessment_id, display_name, description, is_assessment_scheduled, schedule, freeform_tags, defined_tags, if_match): - if isinstance(security_assessment_id, six.string_types) and len(security_assessment_id.strip()) == 0: + if isinstance(security_assessment_id, str) and len(security_assessment_id.strip()) == 0: raise click.UsageError('Parameter --security-assessment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -23962,7 +23961,7 @@ def update_security_assessment(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_security_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(security_policy_id, six.string_types) and len(security_policy_id.strip()) == 0: + if isinstance(security_policy_id, str) and len(security_policy_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -24046,7 +24045,7 @@ def update_security_policy(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_security_policy_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_config_id, display_name, description, firewall_config, unified_audit_policy_config, freeform_tags, defined_tags, if_match): - if isinstance(security_policy_config_id, six.string_types) and len(security_policy_config_id.strip()) == 0: + if isinstance(security_policy_config_id, str) and len(security_policy_config_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-config-id cannot be whitespace or empty string') if not force: if firewall_config or unified_audit_policy_config or freeform_tags or defined_tags: @@ -24134,7 +24133,7 @@ def update_security_policy_config(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_security_policy_deployment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, security_policy_deployment_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(security_policy_deployment_id, six.string_types) and len(security_policy_deployment_id.strip()) == 0: + if isinstance(security_policy_deployment_id, str) and len(security_policy_deployment_id.strip()) == 0: raise click.UsageError('Parameter --security-policy-deployment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -24218,10 +24217,10 @@ def update_security_policy_deployment(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_sensitive_column(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, sensitive_column_key, data_type, status, sensitive_type_id, parent_column_keys, relation_type, app_defined_child_column_keys, db_defined_child_column_keys, if_match): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') - if isinstance(sensitive_column_key, six.string_types) and len(sensitive_column_key.strip()) == 0: + if isinstance(sensitive_column_key, str) and len(sensitive_column_key.strip()) == 0: raise click.UsageError('Parameter --sensitive-column-key cannot be whitespace or empty string') if not force: if parent_column_keys or app_defined_child_column_keys or db_defined_child_column_keys: @@ -24323,7 +24322,7 @@ def update_sensitive_column(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_sensitive_data_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, display_name, target_id, app_suite_name, description, schemas_for_discovery, tables_for_discovery, sensitive_type_ids_for_discovery, sensitive_type_group_ids_for_discovery, is_sample_data_collection_enabled, is_app_defined_relation_discovery_enabled, freeform_tags, defined_tags, if_match): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') if not force: if schemas_for_discovery or tables_for_discovery or sensitive_type_ids_for_discovery or sensitive_type_group_ids_for_discovery or freeform_tags or defined_tags: @@ -24432,7 +24431,7 @@ def update_sensitive_data_model(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_sensitive_type(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_type_id, entity_type, display_name, short_name, description, parent_category_id, freeform_tags, defined_tags, if_match): - if isinstance(sensitive_type_id, six.string_types) and len(sensitive_type_id.strip()) == 0: + if isinstance(sensitive_type_id, str) and len(sensitive_type_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -24523,7 +24522,7 @@ def update_sensitive_type(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_sensitive_type_update_sensitive_category_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_type_id, display_name, short_name, description, parent_category_id, freeform_tags, defined_tags, if_match): - if isinstance(sensitive_type_id, six.string_types) and len(sensitive_type_id.strip()) == 0: + if isinstance(sensitive_type_id, str) and len(sensitive_type_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -24620,7 +24619,7 @@ def update_sensitive_type_update_sensitive_category_details(ctx, from_json, forc @cli_util.wrap_exceptions def update_sensitive_type_update_sensitive_type_pattern_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_type_id, display_name, short_name, description, parent_category_id, freeform_tags, defined_tags, name_pattern, comment_pattern, data_pattern, search_type, default_masking_format_id, if_match): - if isinstance(sensitive_type_id, six.string_types) and len(sensitive_type_id.strip()) == 0: + if isinstance(sensitive_type_id, str) and len(sensitive_type_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -24725,7 +24724,7 @@ def update_sensitive_type_update_sensitive_type_pattern_details(ctx, from_json, @cli_util.wrap_exceptions def update_sensitive_type_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_type_group_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(sensitive_type_group_id, six.string_types) and len(sensitive_type_group_id.strip()) == 0: + if isinstance(sensitive_type_group_id, str) and len(sensitive_type_group_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-type-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -24807,7 +24806,7 @@ def update_sensitive_type_group(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_sensitive_types_export(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_types_export_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(sensitive_types_export_id, six.string_types) and len(sensitive_types_export_id.strip()) == 0: + if isinstance(sensitive_types_export_id, str) and len(sensitive_types_export_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-types-export-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -24889,7 +24888,7 @@ def update_sensitive_types_export(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_sql_collection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_collection_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(sql_collection_id, six.string_types) and len(sql_collection_id.strip()) == 0: + if isinstance(sql_collection_id, str) and len(sql_collection_id.strip()) == 0: raise click.UsageError('Parameter --sql-collection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -24978,7 +24977,7 @@ def update_sql_collection(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_sql_firewall_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_firewall_policy_id, display_name, description, status, enforcement_scope, violation_action, violation_audit, allowed_client_ips, allowed_client_os_usernames, allowed_client_programs, freeform_tags, defined_tags, if_match): - if isinstance(sql_firewall_policy_id, six.string_types) and len(sql_firewall_policy_id.strip()) == 0: + if isinstance(sql_firewall_policy_id, str) and len(sql_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --sql-firewall-policy-id cannot be whitespace or empty string') if not force: if allowed_client_ips or allowed_client_os_usernames or allowed_client_programs or freeform_tags or defined_tags: @@ -25082,7 +25081,7 @@ def update_sql_firewall_policy(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_target_alert_policy_association(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_alert_policy_association_id, is_enabled, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(target_alert_policy_association_id, six.string_types) and len(target_alert_policy_association_id.strip()) == 0: + if isinstance(target_alert_policy_association_id, str) and len(target_alert_policy_association_id.strip()) == 0: raise click.UsageError('Parameter --target-alert-policy-association-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -25171,7 +25170,7 @@ def update_target_alert_policy_association(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_target_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, display_name, description, database_details, credentials, tls_config, connection_option, freeform_tags, defined_tags, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') if not force: if database_details or credentials or tls_config or connection_option or freeform_tags or defined_tags: @@ -25273,7 +25272,7 @@ def update_target_database(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_target_database_installed_database_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, database_details_infrastructure_type, database_details_listener_port, database_details_service_name, display_name, description, credentials, tls_config, connection_option, freeform_tags, defined_tags, if_match, database_details_instance_id, database_details_ip_addresses): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') if not force: if credentials or tls_config or connection_option or freeform_tags or defined_tags: @@ -25381,7 +25380,7 @@ def update_target_database_installed_database_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_target_database_autonomous_database_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, database_details_infrastructure_type, database_details_autonomous_database_id, display_name, description, credentials, tls_config, connection_option, freeform_tags, defined_tags, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') if not force: if credentials or tls_config or connection_option or freeform_tags or defined_tags: @@ -25486,7 +25485,7 @@ def update_target_database_autonomous_database_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_target_database_database_cloud_service_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, database_details_infrastructure_type, display_name, description, credentials, tls_config, connection_option, freeform_tags, defined_tags, if_match, database_details_vm_cluster_id, database_details_db_system_id, database_details_pluggable_database_id, database_details_listener_port, database_details_service_name): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') if not force: if credentials or tls_config or connection_option or freeform_tags or defined_tags: @@ -25600,7 +25599,7 @@ def update_target_database_database_cloud_service_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_target_database_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, connection_option_datasafe_private_endpoint_id, display_name, description, database_details, credentials, tls_config, freeform_tags, defined_tags, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') if not force: if database_details or credentials or tls_config or freeform_tags or defined_tags: @@ -25699,7 +25698,7 @@ def update_target_database_private_endpoint(ctx, from_json, force, wait_for_stat @cli_util.wrap_exceptions def update_target_database_on_premise_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_id, connection_option_on_prem_connector_id, display_name, description, database_details, credentials, tls_config, freeform_tags, defined_tags, if_match): - if isinstance(target_database_id, six.string_types) and len(target_database_id.strip()) == 0: + if isinstance(target_database_id, str) and len(target_database_id.strip()) == 0: raise click.UsageError('Parameter --target-database-id cannot be whitespace or empty string') if not force: if database_details or credentials or tls_config or freeform_tags or defined_tags: @@ -25795,7 +25794,7 @@ def update_target_database_on_premise_connector(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_target_database_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, target_database_group_id, display_name, description, matching_criteria, freeform_tags, defined_tags, if_match): - if isinstance(target_database_group_id, six.string_types) and len(target_database_group_id.strip()) == 0: + if isinstance(target_database_group_id, str) and len(target_database_group_id.strip()) == 0: raise click.UsageError('Parameter --target-database-group-id cannot be whitespace or empty string') if not force: if matching_criteria or freeform_tags or defined_tags: @@ -25884,7 +25883,7 @@ def update_target_database_group(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_unified_audit_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_audit_policy_id, display_name, description, status, conditions, freeform_tags, defined_tags, if_match): - if isinstance(unified_audit_policy_id, six.string_types) and len(unified_audit_policy_id.strip()) == 0: + if isinstance(unified_audit_policy_id, str) and len(unified_audit_policy_id.strip()) == 0: raise click.UsageError('Parameter --unified-audit-policy-id cannot be whitespace or empty string') if not force: if conditions or freeform_tags or defined_tags: @@ -25972,7 +25971,7 @@ def update_unified_audit_policy(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_unified_audit_policy_definition(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_audit_policy_definition_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(unified_audit_policy_definition_id, six.string_types) and len(unified_audit_policy_definition_id.strip()) == 0: + if isinstance(unified_audit_policy_definition_id, str) and len(unified_audit_policy_definition_id.strip()) == 0: raise click.UsageError('Parameter --unified-audit-policy-definition-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -26058,7 +26057,7 @@ def update_unified_audit_policy_definition(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_user_assessment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, user_assessment_id, description, display_name, is_assessment_scheduled, schedule, freeform_tags, defined_tags, if_match): - if isinstance(user_assessment_id, six.string_types) and len(user_assessment_id.strip()) == 0: + if isinstance(user_assessment_id, str) and len(user_assessment_id.strip()) == 0: raise click.UsageError('Parameter --user-assessment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -26140,7 +26139,7 @@ def update_user_assessment(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def upload_masking_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, upload_masking_policy_details, masking_policy_id, if_match): - if isinstance(masking_policy_id, six.string_types) and len(masking_policy_id.strip()) == 0: + if isinstance(masking_policy_id, str) and len(masking_policy_id.strip()) == 0: raise click.UsageError('Parameter --masking-policy-id cannot be whitespace or empty string') kwargs = {} @@ -26201,7 +26200,7 @@ def upload_masking_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def upload_sensitive_data_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sensitive_data_model_id, upload_sensitive_data_model_details, if_match): - if isinstance(sensitive_data_model_id, six.string_types) and len(sensitive_data_model_id.strip()) == 0: + if isinstance(sensitive_data_model_id, str) and len(sensitive_data_model_id.strip()) == 0: raise click.UsageError('Parameter --sensitive-data-model-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/data_science/src/oci_cli_data_science/datascience_cli_extended.py b/services/data_science/src/oci_cli_data_science/datascience_cli_extended.py index 2f67b1a27..ef42e0537 100644 --- a/services/data_science/src/oci_cli_data_science/datascience_cli_extended.py +++ b/services/data_science/src/oci_cli_data_science/datascience_cli_extended.py @@ -7,7 +7,6 @@ from oci_cli import json_skeleton_utils from oci_cli import custom_types from services.data_science.src.oci_cli_data_science.generated import datascience_cli -import six @cli_util.copy_params_from_generated_command(datascience_cli.list_work_request_logs, params_to_exclude=[]) @@ -85,7 +84,7 @@ def create_notebook_session_extended(ctx, **kwargs): @cli_util.wrap_exceptions def head_model_artifact(ctx, from_json, model_id): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -110,7 +109,7 @@ def create_model_artifact_extended(ctx, model_id, from_json, **kwargs): model_artifact_file = kwargs['model_artifact_file'] del kwargs['model_artifact_file'] - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') with open(model_artifact_file, 'rb') as file: @@ -127,7 +126,7 @@ def create_model_artifact_extended(ctx, model_id, from_json, **kwargs): @cli_util.wrap_exceptions def head_job_artifact(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -153,7 +152,7 @@ def create_job_artifact_extended(ctx, job_id, from_json, **kwargs): job_artifact_file = kwargs['job_artifact_file'] del kwargs['job_artifact_file'] - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') with open(job_artifact_file, 'rb') as file: @@ -234,10 +233,10 @@ def update_job_extended(ctx, **kwargs): @cli_util.wrap_exceptions def head_step_artifact(ctx, from_json, pipeline_id, step_name): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') - if isinstance(step_name, six.string_types) and len(step_name.strip()) == 0: + if isinstance(step_name, str) and len(step_name.strip()) == 0: raise click.UsageError('Parameter --step-name cannot be whitespace or empty string') kwargs = {} @@ -264,10 +263,10 @@ def create_step_artifact_extended(ctx, pipeline_id, step_name, from_json, **kwar step_artifact = kwargs['step_artifact'] del kwargs['step_artifact'] - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') - if isinstance(step_name, six.string_types) and len(step_name.strip()) == 0: + if isinstance(step_name, str) and len(step_name.strip()) == 0: raise click.UsageError('Parameter --step-name cannot be whitespace or empty string') with open(step_artifact, 'rb') as file: @@ -708,7 +707,7 @@ def put_ml_application_package_extended(ctx, ml_app_implementation_id, from_json template_file = kwargs['ml_app_package_file'] del kwargs['ml_app_package_file'] - if isinstance(ml_app_implementation_id, six.string_types) and len( + if isinstance(ml_app_implementation_id, str) and len( ml_app_implementation_id.strip()) == 0: raise click.UsageError('Parameter --ml_app_implementation_id cannot be whitespace or empty string') @@ -729,7 +728,7 @@ def put_ml_application_package_extended(ctx, ml_app_implementation_id, from_json @click.pass_context def change_ml_application_compartment(ctx, **kwargs): - if isinstance(kwargs['ml_app_id'], six.string_types) and len(kwargs['ml_app_id'].strip()) == 0: + if isinstance(kwargs['ml_app_id'], str) and len(kwargs['ml_app_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-id cannot be whitespace or empty string') if 'ml_app_id' in kwargs: @@ -747,7 +746,7 @@ def change_ml_application_compartment(ctx, **kwargs): @click.pass_context def change_ml_application_implementation_compartment(ctx, **kwargs): - if isinstance(kwargs['ml_app_implementation_id'], six.string_types) and len(kwargs['ml_app_implementation_id'].strip()) == 0: + if isinstance(kwargs['ml_app_implementation_id'], str) and len(kwargs['ml_app_implementation_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-implementation-id cannot be whitespace or empty string') if 'ml_app_implementation_id' in kwargs: @@ -765,7 +764,7 @@ def change_ml_application_implementation_compartment(ctx, **kwargs): @click.pass_context def change_ml_application_instance_compartment(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_id'], six.string_types) and len(kwargs['ml_app_instance_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_id'], str) and len(kwargs['ml_app_instance_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-id cannot be whitespace or empty string') if 'ml_app_instance_id' in kwargs: @@ -783,7 +782,7 @@ def change_ml_application_instance_compartment(ctx, **kwargs): @click.pass_context def change_ml_application_instance_view_compartment(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_view_id'], six.string_types) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_view_id'], str) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-view-id cannot be whitespace or empty string') if 'ml_app_instance_view_id' in kwargs: @@ -801,7 +800,7 @@ def change_ml_application_instance_view_compartment(ctx, **kwargs): @click.pass_context def create_ml_application_implementation(ctx, **kwargs): - if isinstance(kwargs['ml_app_id'], six.string_types) and len(kwargs['ml_app_id'].strip()) == 0: + if isinstance(kwargs['ml_app_id'], str) and len(kwargs['ml_app_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-id cannot be whitespace or empty string') if 'ml_app_id' in kwargs: @@ -820,7 +819,7 @@ def create_ml_application_implementation(ctx, **kwargs): @click.pass_context def create_ml_application_instance(ctx, **kwargs): - if isinstance(kwargs['ml_app_id'], six.string_types) and len(kwargs['ml_app_id'].strip()) == 0: + if isinstance(kwargs['ml_app_id'], str) and len(kwargs['ml_app_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-id cannot be whitespace or empty string') if 'ml_app_id' in kwargs: @@ -832,7 +831,6 @@ def create_ml_application_instance(ctx, **kwargs): ctx.invoke(datascience_cli.create_ml_application_instance, **kwargs) - # Rename oci data-science ml-app-instance create_ml_application_instance_create_iam_auth_configuration_create_details --ml-application-id --ml-application-implementation-id # to oci data-science ml-app-instance create_ml_application_instance_create_iam_auth_configuration_create_details --ml-app-id --ml-app-implementation-id @cli_util.copy_params_from_generated_command(datascience_cli.create_ml_application_instance_create_iam_auth_configuration_create_details, params_to_exclude=['ml_application_id', 'ml_application_implementation_id']) @@ -842,7 +840,7 @@ def create_ml_application_instance(ctx, **kwargs): @click.pass_context def create_ml_application_instance_create_iam_auth_configuration_create_details(ctx, **kwargs): - if isinstance(kwargs['ml_app_id'], six.string_types) and len(kwargs['ml_app_id'].strip()) == 0: + if isinstance(kwargs['ml_app_id'], str) and len(kwargs['ml_app_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-id cannot be whitespace or empty string') if 'ml_app_id' in kwargs: @@ -863,7 +861,7 @@ def create_ml_application_instance_create_iam_auth_configuration_create_details( @click.pass_context def delete_ml_application(ctx, **kwargs): - if isinstance(kwargs['ml_app_id'], six.string_types) and len(kwargs['ml_app_id'].strip()) == 0: + if isinstance(kwargs['ml_app_id'], str) and len(kwargs['ml_app_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-id cannot be whitespace or empty string') if 'ml_app_id' in kwargs: @@ -881,7 +879,7 @@ def delete_ml_application(ctx, **kwargs): @click.pass_context def delete_ml_application_implementation(ctx, **kwargs): - if isinstance(kwargs['ml_app_implementation_id'], six.string_types) and len(kwargs['ml_app_implementation_id'].strip()) == 0: + if isinstance(kwargs['ml_app_implementation_id'], str) and len(kwargs['ml_app_implementation_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-implementation-id cannot be whitespace or empty string') if 'ml_app_implementation_id' in kwargs: @@ -899,7 +897,7 @@ def delete_ml_application_implementation(ctx, **kwargs): @click.pass_context def delete_ml_application_instance(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_id'], six.string_types) and len(kwargs['ml_app_instance_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_id'], str) and len(kwargs['ml_app_instance_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-id cannot be whitespace or empty string') if 'ml_app_instance_id' in kwargs: @@ -917,7 +915,7 @@ def delete_ml_application_instance(ctx, **kwargs): @click.pass_context def disable_ml_application_instance_view_trigger(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_view_id'], six.string_types) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_view_id'], str) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-view-id cannot be whitespace or empty string') if 'ml_app_instance_view_id' in kwargs: @@ -935,7 +933,7 @@ def disable_ml_application_instance_view_trigger(ctx, **kwargs): @click.pass_context def enable_ml_application_instance_view_trigger(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_view_id'], six.string_types) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_view_id'], str) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-view-id cannot be whitespace or empty string') if 'ml_app_instance_view_id' in kwargs: @@ -953,7 +951,7 @@ def enable_ml_application_instance_view_trigger(ctx, **kwargs): @click.pass_context def get_ml_application(ctx, **kwargs): - if isinstance(kwargs['ml_app_id'], six.string_types) and len(kwargs['ml_app_id'].strip()) == 0: + if isinstance(kwargs['ml_app_id'], str) and len(kwargs['ml_app_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-id cannot be whitespace or empty string') if 'ml_app_id' in kwargs: @@ -971,7 +969,7 @@ def get_ml_application(ctx, **kwargs): @click.pass_context def get_ml_application_historical_package_content(ctx, **kwargs): - if isinstance(kwargs['ml_app_implementation_version_id'], six.string_types) and len(kwargs['ml_app_implementation_version_id'].strip()) == 0: + if isinstance(kwargs['ml_app_implementation_version_id'], str) and len(kwargs['ml_app_implementation_version_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-implementation-version-id cannot be whitespace or empty string') if 'ml_app_implementation_version_id' in kwargs: @@ -989,7 +987,7 @@ def get_ml_application_historical_package_content(ctx, **kwargs): @click.pass_context def get_ml_application_implementation(ctx, **kwargs): - if isinstance(kwargs['ml_app_implementation_id'], six.string_types) and len(kwargs['ml_app_implementation_id'].strip()) == 0: + if isinstance(kwargs['ml_app_implementation_id'], str) and len(kwargs['ml_app_implementation_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-implementation-id cannot be whitespace or empty string') if 'ml_app_implementation_id' in kwargs: @@ -1007,7 +1005,7 @@ def get_ml_application_implementation(ctx, **kwargs): @click.pass_context def get_ml_application_implementation_version(ctx, **kwargs): - if isinstance(kwargs['ml_app_implementation_version_id'], six.string_types) and len(kwargs['ml_app_implementation_version_id'].strip()) == 0: + if isinstance(kwargs['ml_app_implementation_version_id'], str) and len(kwargs['ml_app_implementation_version_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-implementation-version-id cannot be whitespace or empty string') if 'ml_app_implementation_version_id' in kwargs: @@ -1025,7 +1023,7 @@ def get_ml_application_implementation_version(ctx, **kwargs): @click.pass_context def get_ml_application_instance(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_id'], six.string_types) and len(kwargs['ml_app_instance_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_id'], str) and len(kwargs['ml_app_instance_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-id cannot be whitespace or empty string') if 'ml_app_instance_id' in kwargs: @@ -1043,7 +1041,7 @@ def get_ml_application_instance(ctx, **kwargs): @click.pass_context def get_ml_application_instance_view(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_view_id'], six.string_types) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_view_id'], str) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-view-id cannot be whitespace or empty string') if 'ml_app_instance_view_id' in kwargs: @@ -1061,7 +1059,7 @@ def get_ml_application_instance_view(ctx, **kwargs): @click.pass_context def get_ml_application_package_content(ctx, **kwargs): - if isinstance(kwargs['ml_app_implementation_id'], six.string_types) and len(kwargs['ml_app_implementation_id'].strip()) == 0: + if isinstance(kwargs['ml_app_implementation_id'], str) and len(kwargs['ml_app_implementation_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-implementation-id cannot be whitespace or empty string') if 'ml_app_implementation_id' in kwargs: @@ -1162,7 +1160,7 @@ def list_ml_applications(ctx, **kwargs): @click.pass_context def recover_ml_application_instance_view(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_view_id'], six.string_types) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_view_id'], str) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-view-id cannot be whitespace or empty string') if 'ml_app_instance_view_id' in kwargs: @@ -1180,7 +1178,7 @@ def recover_ml_application_instance_view(ctx, **kwargs): @click.pass_context def trigger_ml_application_instance_flow(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_id'], six.string_types) and len(kwargs['ml_app_instance_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_id'], str) and len(kwargs['ml_app_instance_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-id cannot be whitespace or empty string') if 'ml_app_instance_id' in kwargs: @@ -1198,7 +1196,7 @@ def trigger_ml_application_instance_flow(ctx, **kwargs): @click.pass_context def trigger_ml_application_instance_view_flow(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_view_id'], six.string_types) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_view_id'], str) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-view-id cannot be whitespace or empty string') if 'ml_app_instance_view_id' in kwargs: @@ -1216,7 +1214,7 @@ def trigger_ml_application_instance_view_flow(ctx, **kwargs): @click.pass_context def update_ml_application(ctx, **kwargs): - if isinstance(kwargs['ml_app_id'], six.string_types) and len(kwargs['ml_app_id'].strip()) == 0: + if isinstance(kwargs['ml_app_id'], str) and len(kwargs['ml_app_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-id cannot be whitespace or empty string') if 'ml_app_id' in kwargs: @@ -1234,7 +1232,7 @@ def update_ml_application(ctx, **kwargs): @click.pass_context def update_ml_application_implementation(ctx, **kwargs): - if isinstance(kwargs['ml_app_implementation_id'], six.string_types) and len(kwargs['ml_app_implementation_id'].strip()) == 0: + if isinstance(kwargs['ml_app_implementation_id'], str) and len(kwargs['ml_app_implementation_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-implementation-id cannot be whitespace or empty string') if 'ml_app_implementation_id' in kwargs: @@ -1252,7 +1250,7 @@ def update_ml_application_implementation(ctx, **kwargs): @click.pass_context def update_ml_application_implementation_version(ctx, **kwargs): - if isinstance(kwargs['ml_app_implementation_version_id'], six.string_types) and len(kwargs['ml_app_implementation_version_id'].strip()) == 0: + if isinstance(kwargs['ml_app_implementation_version_id'], str) and len(kwargs['ml_app_implementation_version_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-implementation-version-id cannot be whitespace or empty string') if 'ml_app_implementation_version_id' in kwargs: @@ -1271,7 +1269,7 @@ def update_ml_application_implementation_version(ctx, **kwargs): @click.pass_context def update_ml_application_instance(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_id'], six.string_types) and len(kwargs['ml_app_instance_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_id'], str) and len(kwargs['ml_app_instance_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-id cannot be whitespace or empty string') if 'ml_app_instance_id' in kwargs: @@ -1292,7 +1290,7 @@ def update_ml_application_instance(ctx, **kwargs): @click.pass_context def update_ml_application_instance_view(ctx, **kwargs): - if isinstance(kwargs['ml_app_instance_view_id'], six.string_types) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: + if isinstance(kwargs['ml_app_instance_view_id'], str) and len(kwargs['ml_app_instance_view_id'].strip()) == 0: raise click.UsageError('Parameter --ml-app-instance-view-id cannot be whitespace or empty string') if 'ml_app_instance_view_id' in kwargs: diff --git a/services/data_science/src/oci_cli_data_science/generated/datascience_cli.py b/services/data_science/src/oci_cli_data_science/generated/datascience_cli.py index ba9671a76..c2dd23e5d 100644 --- a/services/data_science/src/oci_cli_data_science/generated/datascience_cli.py +++ b/services/data_science/src/oci_cli_data_science/generated/datascience_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -233,7 +232,7 @@ def data_science_private_endpoint_group(): @cli_util.wrap_exceptions def activate_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -284,7 +283,7 @@ def activate_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def activate_model_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_deployment_id, if_match): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -339,7 +338,7 @@ def activate_model_deployment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def activate_model_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_group_id, if_match): - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') kwargs = {} @@ -390,7 +389,7 @@ def activate_model_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def activate_notebook_session(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, notebook_session_id, if_match): - if isinstance(notebook_session_id, six.string_types) and len(notebook_session_id.strip()) == 0: + if isinstance(notebook_session_id, str) and len(notebook_session_id.strip()) == 0: raise click.UsageError('Parameter --notebook-session-id cannot be whitespace or empty string') kwargs = {} @@ -445,7 +444,7 @@ def activate_notebook_session(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def activate_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -497,7 +496,7 @@ def activate_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def cancel_job_run(ctx, from_json, job_run_id, if_match): - if isinstance(job_run_id, six.string_types) and len(job_run_id.strip()) == 0: + if isinstance(job_run_id, str) and len(job_run_id.strip()) == 0: raise click.UsageError('Parameter --job-run-id cannot be whitespace or empty string') kwargs = {} @@ -523,7 +522,7 @@ def cancel_job_run(ctx, from_json, job_run_id, if_match): @cli_util.wrap_exceptions def cancel_pipeline_run(ctx, from_json, pipeline_run_id, if_match, terminate_gracefully): - if isinstance(pipeline_run_id, six.string_types) and len(pipeline_run_id.strip()) == 0: + if isinstance(pipeline_run_id, str) and len(pipeline_run_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-run-id cannot be whitespace or empty string') kwargs = {} @@ -551,7 +550,7 @@ def cancel_pipeline_run(ctx, from_json, pipeline_run_id, if_match, terminate_gra @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -577,7 +576,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_compute_target_compartment(ctx, from_json, compute_target_id, compartment_id, if_match): - if isinstance(compute_target_id, six.string_types) and len(compute_target_id.strip()) == 0: + if isinstance(compute_target_id, str) and len(compute_target_id.strip()) == 0: raise click.UsageError('Parameter --compute-target-id cannot be whitespace or empty string') kwargs = {} @@ -611,7 +610,7 @@ def change_compute_target_compartment(ctx, from_json, compute_target_id, compart @cli_util.wrap_exceptions def change_data_science_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, data_science_private_endpoint_id, compartment_id, if_match): - if isinstance(data_science_private_endpoint_id, six.string_types) and len(data_science_private_endpoint_id.strip()) == 0: + if isinstance(data_science_private_endpoint_id, str) and len(data_science_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --data-science-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -669,7 +668,7 @@ def change_data_science_private_endpoint_compartment(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def change_job_compartment(ctx, from_json, job_id, compartment_id, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -700,7 +699,7 @@ def change_job_compartment(ctx, from_json, job_id, compartment_id, if_match): @cli_util.wrap_exceptions def change_job_run_compartment(ctx, from_json, job_run_id, compartment_id, if_match): - if isinstance(job_run_id, six.string_types) and len(job_run_id.strip()) == 0: + if isinstance(job_run_id, str) and len(job_run_id.strip()) == 0: raise click.UsageError('Parameter --job-run-id cannot be whitespace or empty string') kwargs = {} @@ -731,7 +730,7 @@ def change_job_run_compartment(ctx, from_json, job_run_id, compartment_id, if_ma @cli_util.wrap_exceptions def change_ml_application_compartment(ctx, from_json, ml_application_id, compartment_id, if_match): - if isinstance(ml_application_id, six.string_types) and len(ml_application_id.strip()) == 0: + if isinstance(ml_application_id, str) and len(ml_application_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-id cannot be whitespace or empty string') kwargs = {} @@ -765,7 +764,7 @@ def change_ml_application_compartment(ctx, from_json, ml_application_id, compart @cli_util.wrap_exceptions def change_ml_application_implementation_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_implementation_id, compartment_id, if_match): - if isinstance(ml_application_implementation_id, six.string_types) and len(ml_application_implementation_id.strip()) == 0: + if isinstance(ml_application_implementation_id, str) and len(ml_application_implementation_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-implementation-id cannot be whitespace or empty string') kwargs = {} @@ -826,7 +825,7 @@ def change_ml_application_implementation_compartment(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def change_ml_application_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_instance_id, compartment_id, if_match): - if isinstance(ml_application_instance_id, six.string_types) and len(ml_application_instance_id.strip()) == 0: + if isinstance(ml_application_instance_id, str) and len(ml_application_instance_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-id cannot be whitespace or empty string') kwargs = {} @@ -887,7 +886,7 @@ def change_ml_application_instance_compartment(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def change_ml_application_instance_view_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_instance_view_id, compartment_id, if_match): - if isinstance(ml_application_instance_view_id, six.string_types) and len(ml_application_instance_view_id.strip()) == 0: + if isinstance(ml_application_instance_view_id, str) and len(ml_application_instance_view_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-view-id cannot be whitespace or empty string') kwargs = {} @@ -945,7 +944,7 @@ def change_ml_application_instance_view_compartment(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -976,7 +975,7 @@ def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match) @cli_util.wrap_exceptions def change_model_deployment_compartment(ctx, from_json, model_deployment_id, compartment_id, if_match): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -1007,7 +1006,7 @@ def change_model_deployment_compartment(ctx, from_json, model_deployment_id, com @cli_util.wrap_exceptions def change_model_group_compartment(ctx, from_json, model_group_id, compartment_id, if_match): - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') kwargs = {} @@ -1038,7 +1037,7 @@ def change_model_group_compartment(ctx, from_json, model_group_id, compartment_i @cli_util.wrap_exceptions def change_model_group_version_history_compartment(ctx, from_json, model_group_version_history_id, compartment_id, if_match): - if isinstance(model_group_version_history_id, six.string_types) and len(model_group_version_history_id.strip()) == 0: + if isinstance(model_group_version_history_id, str) and len(model_group_version_history_id.strip()) == 0: raise click.UsageError('Parameter --model-group-version-history-id cannot be whitespace or empty string') kwargs = {} @@ -1072,7 +1071,7 @@ def change_model_group_version_history_compartment(ctx, from_json, model_group_v @cli_util.wrap_exceptions def change_model_version_set_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_version_set_id, compartment_id, if_match): - if isinstance(model_version_set_id, six.string_types) and len(model_version_set_id.strip()) == 0: + if isinstance(model_version_set_id, str) and len(model_version_set_id.strip()) == 0: raise click.UsageError('Parameter --model-version-set-id cannot be whitespace or empty string') kwargs = {} @@ -1130,7 +1129,7 @@ def change_model_version_set_compartment(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def change_notebook_session_compartment(ctx, from_json, notebook_session_id, compartment_id, if_match): - if isinstance(notebook_session_id, six.string_types) and len(notebook_session_id.strip()) == 0: + if isinstance(notebook_session_id, str) and len(notebook_session_id.strip()) == 0: raise click.UsageError('Parameter --notebook-session-id cannot be whitespace or empty string') kwargs = {} @@ -1161,7 +1160,7 @@ def change_notebook_session_compartment(ctx, from_json, notebook_session_id, com @cli_util.wrap_exceptions def change_pipeline_compartment(ctx, from_json, pipeline_id, compartment_id, if_match): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -1192,7 +1191,7 @@ def change_pipeline_compartment(ctx, from_json, pipeline_id, compartment_id, if_ @cli_util.wrap_exceptions def change_pipeline_run_compartment(ctx, from_json, pipeline_run_id, compartment_id, if_match): - if isinstance(pipeline_run_id, six.string_types) and len(pipeline_run_id.strip()) == 0: + if isinstance(pipeline_run_id, str) and len(pipeline_run_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-run-id cannot be whitespace or empty string') kwargs = {} @@ -1223,7 +1222,7 @@ def change_pipeline_run_compartment(ctx, from_json, pipeline_run_id, compartment @cli_util.wrap_exceptions def change_project_compartment(ctx, from_json, project_id, compartment_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -1257,7 +1256,7 @@ def change_project_compartment(ctx, from_json, project_id, compartment_id, if_ma @cli_util.wrap_exceptions def change_schedule_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, compartment_id, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -2557,7 +2556,7 @@ def create_job_multi_node_job_node_configuration_details(ctx, from_json, wait_fo @cli_util.wrap_exceptions def create_job_artifact(ctx, from_json, job_id, job_artifact, content_length, content_disposition): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -4005,7 +4004,7 @@ def create_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def create_model_artifact(ctx, from_json, model_id, model_artifact, content_length, content_disposition, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -4043,10 +4042,10 @@ def create_model_artifact(ctx, from_json, model_id, model_artifact, content_leng @cli_util.wrap_exceptions def create_model_custom_metadatum_artifact(ctx, from_json, model_id, metadatum_key_name, model_custom_metadatum_artifact, content_length, content_disposition, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -4085,10 +4084,10 @@ def create_model_custom_metadatum_artifact(ctx, from_json, model_id, metadatum_k @cli_util.wrap_exceptions def create_model_defined_metadatum_artifact(ctx, from_json, model_id, metadatum_key_name, model_defined_metadatum_artifact, content_length, content_disposition, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -4672,7 +4671,7 @@ def create_model_group_create_model_group_details(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def create_model_group_artifact(ctx, from_json, model_group_id, model_group_artifact, content_length, content_disposition, if_match): - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') kwargs = {} @@ -4782,7 +4781,7 @@ def create_model_group_version_history(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def create_model_provenance(ctx, from_json, model_id, repository_url, git_branch, git_commit, script_dir, training_script, training_id): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -5884,10 +5883,10 @@ def create_schedule_schedule_http_action(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def create_step_artifact(ctx, from_json, pipeline_id, step_name, step_artifact, content_length, content_disposition): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') - if isinstance(step_name, six.string_types) and len(step_name.strip()) == 0: + if isinstance(step_name, str) and len(step_name.strip()) == 0: raise click.UsageError('Parameter --step-name cannot be whitespace or empty string') kwargs = {} @@ -5923,7 +5922,7 @@ def create_step_artifact(ctx, from_json, pipeline_id, step_name, step_artifact, @cli_util.wrap_exceptions def deactivate_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -5974,7 +5973,7 @@ def deactivate_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def deactivate_model_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_deployment_id, if_match): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -6029,7 +6028,7 @@ def deactivate_model_deployment(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def deactivate_model_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_group_id, if_match): - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') kwargs = {} @@ -6080,7 +6079,7 @@ def deactivate_model_group(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def deactivate_notebook_session(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, notebook_session_id, if_match): - if isinstance(notebook_session_id, six.string_types) and len(notebook_session_id.strip()) == 0: + if isinstance(notebook_session_id, str) and len(notebook_session_id.strip()) == 0: raise click.UsageError('Parameter --notebook-session-id cannot be whitespace or empty string') kwargs = {} @@ -6135,7 +6134,7 @@ def deactivate_notebook_session(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def deactivate_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -6191,7 +6190,7 @@ def deactivate_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_compute_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_target_id, if_match): - if isinstance(compute_target_id, six.string_types) and len(compute_target_id.strip()) == 0: + if isinstance(compute_target_id, str) and len(compute_target_id.strip()) == 0: raise click.UsageError('Parameter --compute-target-id cannot be whitespace or empty string') kwargs = {} @@ -6247,7 +6246,7 @@ def delete_compute_target(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_data_science_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, data_science_private_endpoint_id, if_match): - if isinstance(data_science_private_endpoint_id, six.string_types) and len(data_science_private_endpoint_id.strip()) == 0: + if isinstance(data_science_private_endpoint_id, str) and len(data_science_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --data-science-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -6304,7 +6303,7 @@ def delete_data_science_private_endpoint(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def delete_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, if_match, delete_related_job_runs): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -6362,7 +6361,7 @@ def delete_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_job_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_run_id, if_match): - if isinstance(job_run_id, six.string_types) and len(job_run_id.strip()) == 0: + if isinstance(job_run_id, str) and len(job_run_id.strip()) == 0: raise click.UsageError('Parameter --job-run-id cannot be whitespace or empty string') kwargs = {} @@ -6426,7 +6425,7 @@ def delete_job_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_ml_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_id, if_match): - if isinstance(ml_application_id, six.string_types) and len(ml_application_id.strip()) == 0: + if isinstance(ml_application_id, str) and len(ml_application_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-id cannot be whitespace or empty string') kwargs = {} @@ -6490,7 +6489,7 @@ def delete_ml_application(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_ml_application_implementation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_implementation_id, if_match): - if isinstance(ml_application_implementation_id, six.string_types) and len(ml_application_implementation_id.strip()) == 0: + if isinstance(ml_application_implementation_id, str) and len(ml_application_implementation_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-implementation-id cannot be whitespace or empty string') kwargs = {} @@ -6546,7 +6545,7 @@ def delete_ml_application_implementation(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def delete_ml_application_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_instance_id, if_match): - if isinstance(ml_application_instance_id, six.string_types) and len(ml_application_instance_id.strip()) == 0: + if isinstance(ml_application_instance_id, str) and len(ml_application_instance_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-id cannot be whitespace or empty string') kwargs = {} @@ -6602,7 +6601,7 @@ def delete_ml_application_instance(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -6664,10 +6663,10 @@ def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_model_custom_metadatum_artifact(ctx, from_json, model_id, metadatum_key_name, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -6695,10 +6694,10 @@ def delete_model_custom_metadatum_artifact(ctx, from_json, model_id, metadatum_k @cli_util.wrap_exceptions def delete_model_defined_metadatum_artifact(ctx, from_json, model_id, metadatum_key_name, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -6728,7 +6727,7 @@ def delete_model_defined_metadatum_artifact(ctx, from_json, model_id, metadatum_ @cli_util.wrap_exceptions def delete_model_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_deployment_id, if_match): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -6784,7 +6783,7 @@ def delete_model_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_model_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_group_id, if_match): - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') kwargs = {} @@ -6840,7 +6839,7 @@ def delete_model_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_model_group_version_history(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_group_version_history_id, if_match): - if isinstance(model_group_version_history_id, six.string_types) and len(model_group_version_history_id.strip()) == 0: + if isinstance(model_group_version_history_id, str) and len(model_group_version_history_id.strip()) == 0: raise click.UsageError('Parameter --model-group-version-history-id cannot be whitespace or empty string') kwargs = {} @@ -6897,7 +6896,7 @@ def delete_model_group_version_history(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_model_version_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_version_set_id, is_delete_related_models, if_match): - if isinstance(model_version_set_id, six.string_types) and len(model_version_set_id.strip()) == 0: + if isinstance(model_version_set_id, str) and len(model_version_set_id.strip()) == 0: raise click.UsageError('Parameter --model-version-set-id cannot be whitespace or empty string') kwargs = {} @@ -6955,7 +6954,7 @@ def delete_model_version_set(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_notebook_session(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, notebook_session_id, if_match): - if isinstance(notebook_session_id, six.string_types) and len(notebook_session_id.strip()) == 0: + if isinstance(notebook_session_id, str) and len(notebook_session_id.strip()) == 0: raise click.UsageError('Parameter --notebook-session-id cannot be whitespace or empty string') kwargs = {} @@ -7013,7 +7012,7 @@ def delete_notebook_session(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, delete_related_pipeline_runs, delete_related_job_runs, if_match): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -7074,7 +7073,7 @@ def delete_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_pipeline_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_run_id, delete_related_job_runs, if_match): - if isinstance(pipeline_run_id, six.string_types) and len(pipeline_run_id.strip()) == 0: + if isinstance(pipeline_run_id, str) and len(pipeline_run_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-run-id cannot be whitespace or empty string') kwargs = {} @@ -7140,7 +7139,7 @@ def delete_pipeline_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -7196,7 +7195,7 @@ def delete_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -7252,7 +7251,7 @@ def delete_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def disable_ml_application_instance_view_trigger(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_name, ml_application_instance_view_id, if_match): - if isinstance(ml_application_instance_view_id, six.string_types) and len(ml_application_instance_view_id.strip()) == 0: + if isinstance(ml_application_instance_view_id, str) and len(ml_application_instance_view_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-view-id cannot be whitespace or empty string') kwargs = {} @@ -7309,7 +7308,7 @@ def disable_ml_application_instance_view_trigger(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def enable_ml_application_instance_view_trigger(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_name, ml_application_instance_view_id, if_match): - if isinstance(ml_application_instance_view_id, six.string_types) and len(ml_application_instance_view_id.strip()) == 0: + if isinstance(ml_application_instance_view_id, str) and len(ml_application_instance_view_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-view-id cannot be whitespace or empty string') kwargs = {} @@ -7366,7 +7365,7 @@ def enable_ml_application_instance_view_trigger(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def export_model_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, artifact_export_details, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -7430,7 +7429,7 @@ def export_model_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def export_model_artifact_artifact_export_details_object_storage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, if_match, artifact_export_details_namespace, artifact_export_details_source_bucket, artifact_export_details_source_object_name, artifact_export_details_source_region): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -7500,7 +7499,7 @@ def export_model_artifact_artifact_export_details_object_storage(ctx, from_json, @cli_util.wrap_exceptions def get_compute_target(ctx, from_json, compute_target_id): - if isinstance(compute_target_id, six.string_types) and len(compute_target_id.strip()) == 0: + if isinstance(compute_target_id, str) and len(compute_target_id.strip()) == 0: raise click.UsageError('Parameter --compute-target-id cannot be whitespace or empty string') kwargs = {} @@ -7522,7 +7521,7 @@ def get_compute_target(ctx, from_json, compute_target_id): @cli_util.wrap_exceptions def get_data_science_private_endpoint(ctx, from_json, data_science_private_endpoint_id): - if isinstance(data_science_private_endpoint_id, six.string_types) and len(data_science_private_endpoint_id.strip()) == 0: + if isinstance(data_science_private_endpoint_id, str) and len(data_science_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --data-science-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -7544,7 +7543,7 @@ def get_data_science_private_endpoint(ctx, from_json, data_science_private_endpo @cli_util.wrap_exceptions def get_job(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -7568,7 +7567,7 @@ def get_job(ctx, from_json, job_id): @cli_util.wrap_exceptions def get_job_artifact_content(ctx, from_json, file, job_id, range): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -7614,7 +7613,7 @@ def get_job_artifact_content(ctx, from_json, file, job_id, range): @cli_util.wrap_exceptions def get_job_run(ctx, from_json, job_run_id): - if isinstance(job_run_id, six.string_types) and len(job_run_id.strip()) == 0: + if isinstance(job_run_id, str) and len(job_run_id.strip()) == 0: raise click.UsageError('Parameter --job-run-id cannot be whitespace or empty string') kwargs = {} @@ -7636,7 +7635,7 @@ def get_job_run(ctx, from_json, job_run_id): @cli_util.wrap_exceptions def get_ml_application(ctx, from_json, ml_application_id): - if isinstance(ml_application_id, six.string_types) and len(ml_application_id.strip()) == 0: + if isinstance(ml_application_id, str) and len(ml_application_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-id cannot be whitespace or empty string') kwargs = {} @@ -7659,7 +7658,7 @@ def get_ml_application(ctx, from_json, ml_application_id): @cli_util.wrap_exceptions def get_ml_application_historical_package_content(ctx, from_json, file, ml_application_implementation_version_id): - if isinstance(ml_application_implementation_version_id, six.string_types) and len(ml_application_implementation_version_id.strip()) == 0: + if isinstance(ml_application_implementation_version_id, str) and len(ml_application_implementation_version_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-implementation-version-id cannot be whitespace or empty string') kwargs = {} @@ -7703,7 +7702,7 @@ def get_ml_application_historical_package_content(ctx, from_json, file, ml_appli @cli_util.wrap_exceptions def get_ml_application_implementation(ctx, from_json, ml_application_implementation_id): - if isinstance(ml_application_implementation_id, six.string_types) and len(ml_application_implementation_id.strip()) == 0: + if isinstance(ml_application_implementation_id, str) and len(ml_application_implementation_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-implementation-id cannot be whitespace or empty string') kwargs = {} @@ -7725,7 +7724,7 @@ def get_ml_application_implementation(ctx, from_json, ml_application_implementat @cli_util.wrap_exceptions def get_ml_application_implementation_version(ctx, from_json, ml_application_implementation_version_id): - if isinstance(ml_application_implementation_version_id, six.string_types) and len(ml_application_implementation_version_id.strip()) == 0: + if isinstance(ml_application_implementation_version_id, str) and len(ml_application_implementation_version_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-implementation-version-id cannot be whitespace or empty string') kwargs = {} @@ -7747,7 +7746,7 @@ def get_ml_application_implementation_version(ctx, from_json, ml_application_imp @cli_util.wrap_exceptions def get_ml_application_instance(ctx, from_json, ml_application_instance_id): - if isinstance(ml_application_instance_id, six.string_types) and len(ml_application_instance_id.strip()) == 0: + if isinstance(ml_application_instance_id, str) and len(ml_application_instance_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-id cannot be whitespace or empty string') kwargs = {} @@ -7769,7 +7768,7 @@ def get_ml_application_instance(ctx, from_json, ml_application_instance_id): @cli_util.wrap_exceptions def get_ml_application_instance_view(ctx, from_json, ml_application_instance_view_id): - if isinstance(ml_application_instance_view_id, six.string_types) and len(ml_application_instance_view_id.strip()) == 0: + if isinstance(ml_application_instance_view_id, str) and len(ml_application_instance_view_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-view-id cannot be whitespace or empty string') kwargs = {} @@ -7792,7 +7791,7 @@ def get_ml_application_instance_view(ctx, from_json, ml_application_instance_vie @cli_util.wrap_exceptions def get_ml_application_package_content(ctx, from_json, file, ml_application_implementation_id): - if isinstance(ml_application_implementation_id, six.string_types) and len(ml_application_implementation_id.strip()) == 0: + if isinstance(ml_application_implementation_id, str) and len(ml_application_implementation_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-implementation-id cannot be whitespace or empty string') kwargs = {} @@ -7836,7 +7835,7 @@ def get_ml_application_package_content(ctx, from_json, file, ml_application_impl @cli_util.wrap_exceptions def get_model(ctx, from_json, model_id): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -7860,7 +7859,7 @@ def get_model(ctx, from_json, model_id): @cli_util.wrap_exceptions def get_model_artifact_content(ctx, from_json, file, model_id, range): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -7909,10 +7908,10 @@ def get_model_artifact_content(ctx, from_json, file, model_id, range): @cli_util.wrap_exceptions def get_model_custom_metadatum_artifact_content(ctx, from_json, file, model_id, metadatum_key_name, range): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -7962,10 +7961,10 @@ def get_model_custom_metadatum_artifact_content(ctx, from_json, file, model_id, @cli_util.wrap_exceptions def get_model_defined_metadatum_artifact_content(ctx, from_json, file, model_id, metadatum_key_name, range): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -8012,7 +8011,7 @@ def get_model_defined_metadatum_artifact_content(ctx, from_json, file, model_id, @cli_util.wrap_exceptions def get_model_deployment(ctx, from_json, model_deployment_id): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8034,7 +8033,7 @@ def get_model_deployment(ctx, from_json, model_deployment_id): @cli_util.wrap_exceptions def get_model_group(ctx, from_json, model_group_id): - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') kwargs = {} @@ -8058,7 +8057,7 @@ def get_model_group(ctx, from_json, model_group_id): @cli_util.wrap_exceptions def get_model_group_artifact_content(ctx, from_json, file, model_group_id, range): - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') kwargs = {} @@ -8104,7 +8103,7 @@ def get_model_group_artifact_content(ctx, from_json, file, model_group_id, range @cli_util.wrap_exceptions def get_model_group_version_history(ctx, from_json, model_group_version_history_id): - if isinstance(model_group_version_history_id, six.string_types) and len(model_group_version_history_id.strip()) == 0: + if isinstance(model_group_version_history_id, str) and len(model_group_version_history_id.strip()) == 0: raise click.UsageError('Parameter --model-group-version-history-id cannot be whitespace or empty string') kwargs = {} @@ -8126,7 +8125,7 @@ def get_model_group_version_history(ctx, from_json, model_group_version_history_ @cli_util.wrap_exceptions def get_model_provenance(ctx, from_json, model_id): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -8148,7 +8147,7 @@ def get_model_provenance(ctx, from_json, model_id): @cli_util.wrap_exceptions def get_model_version_set(ctx, from_json, model_version_set_id): - if isinstance(model_version_set_id, six.string_types) and len(model_version_set_id.strip()) == 0: + if isinstance(model_version_set_id, str) and len(model_version_set_id.strip()) == 0: raise click.UsageError('Parameter --model-version-set-id cannot be whitespace or empty string') kwargs = {} @@ -8170,7 +8169,7 @@ def get_model_version_set(ctx, from_json, model_version_set_id): @cli_util.wrap_exceptions def get_notebook_session(ctx, from_json, notebook_session_id): - if isinstance(notebook_session_id, six.string_types) and len(notebook_session_id.strip()) == 0: + if isinstance(notebook_session_id, str) and len(notebook_session_id.strip()) == 0: raise click.UsageError('Parameter --notebook-session-id cannot be whitespace or empty string') kwargs = {} @@ -8192,7 +8191,7 @@ def get_notebook_session(ctx, from_json, notebook_session_id): @cli_util.wrap_exceptions def get_pipeline(ctx, from_json, pipeline_id): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -8214,7 +8213,7 @@ def get_pipeline(ctx, from_json, pipeline_id): @cli_util.wrap_exceptions def get_pipeline_run(ctx, from_json, pipeline_run_id): - if isinstance(pipeline_run_id, six.string_types) and len(pipeline_run_id.strip()) == 0: + if isinstance(pipeline_run_id, str) and len(pipeline_run_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-run-id cannot be whitespace or empty string') kwargs = {} @@ -8236,7 +8235,7 @@ def get_pipeline_run(ctx, from_json, pipeline_run_id): @cli_util.wrap_exceptions def get_project(ctx, from_json, project_id): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -8258,7 +8257,7 @@ def get_project(ctx, from_json, project_id): @cli_util.wrap_exceptions def get_schedule(ctx, from_json, schedule_id): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -8283,10 +8282,10 @@ def get_schedule(ctx, from_json, schedule_id): @cli_util.wrap_exceptions def get_step_artifact_content(ctx, from_json, file, pipeline_id, step_name, range): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') - if isinstance(step_name, six.string_types) and len(step_name.strip()) == 0: + if isinstance(step_name, str) and len(step_name.strip()) == 0: raise click.UsageError('Parameter --step-name cannot be whitespace or empty string') kwargs = {} @@ -8333,7 +8332,7 @@ def get_step_artifact_content(ctx, from_json, file, pipeline_id, step_name, rang @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -8355,7 +8354,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def head_job_artifact(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -8377,7 +8376,7 @@ def head_job_artifact(ctx, from_json, job_id): @cli_util.wrap_exceptions def head_model_artifact(ctx, from_json, model_id): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -8400,10 +8399,10 @@ def head_model_artifact(ctx, from_json, model_id): @cli_util.wrap_exceptions def head_model_custom_metadatum_artifact(ctx, from_json, model_id, metadatum_key_name): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -8427,10 +8426,10 @@ def head_model_custom_metadatum_artifact(ctx, from_json, model_id, metadatum_key @cli_util.wrap_exceptions def head_model_defined_metadatum_artifact(ctx, from_json, model_id, metadatum_key_name): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -8453,7 +8452,7 @@ def head_model_defined_metadatum_artifact(ctx, from_json, model_id, metadatum_ke @cli_util.wrap_exceptions def head_model_group_artifact(ctx, from_json, model_group_id): - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') kwargs = {} @@ -8476,10 +8475,10 @@ def head_model_group_artifact(ctx, from_json, model_group_id): @cli_util.wrap_exceptions def head_step_artifact(ctx, from_json, pipeline_id, step_name): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') - if isinstance(step_name, six.string_types) and len(step_name.strip()) == 0: + if isinstance(step_name, str) and len(step_name.strip()) == 0: raise click.UsageError('Parameter --step-name cannot be whitespace or empty string') kwargs = {} @@ -8507,7 +8506,7 @@ def head_step_artifact(ctx, from_json, pipeline_id, step_name): @cli_util.wrap_exceptions def import_model_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, artifact_import_details, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -8571,7 +8570,7 @@ def import_model_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def import_model_artifact_artifact_import_details_object_storage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, if_match, artifact_import_details_namespace, artifact_import_details_destination_bucket, artifact_import_details_destination_object_name, artifact_import_details_destination_region): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -9511,7 +9510,7 @@ def list_model_deployment_model_states(ctx, from_json, all_pages, page_size, mod if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -9713,7 +9712,7 @@ def list_model_group_models(ctx, from_json, all_pages, page_size, model_group_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') kwargs = {} @@ -10501,7 +10500,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -10556,7 +10555,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -10677,7 +10676,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, id, @cli_util.wrap_exceptions def put_ml_application_package(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_implementation_id, put_ml_application_package, content_length, content_disposition, opc_ml_app_package_args): - if isinstance(ml_application_implementation_id, six.string_types) and len(ml_application_implementation_id.strip()) == 0: + if isinstance(ml_application_implementation_id, str) and len(ml_application_implementation_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-implementation-id cannot be whitespace or empty string') kwargs = {} @@ -10741,7 +10740,7 @@ def put_ml_application_package(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def recover_ml_application_instance_view(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_instance_view_id, if_match): - if isinstance(ml_application_instance_view_id, six.string_types) and len(ml_application_instance_view_id.strip()) == 0: + if isinstance(ml_application_instance_view_id, str) and len(ml_application_instance_view_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-view-id cannot be whitespace or empty string') kwargs = {} @@ -10797,7 +10796,7 @@ def recover_ml_application_instance_view(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def register_model_artifact_reference(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_artifact_references, model_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -10858,7 +10857,7 @@ def register_model_artifact_reference(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def restore_archived_model_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, restore_model_for_hours_specified, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -10915,7 +10914,7 @@ def restore_archived_model_artifact(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def trigger_ml_application_instance_flow(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_name, ml_application_instance_id): - if isinstance(ml_application_instance_id, six.string_types) and len(ml_application_instance_id.strip()) == 0: + if isinstance(ml_application_instance_id, str) and len(ml_application_instance_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-id cannot be whitespace or empty string') kwargs = {} @@ -10976,7 +10975,7 @@ def trigger_ml_application_instance_flow(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def trigger_ml_application_instance_view_flow(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_name, ml_application_instance_view_id, parameters): - if isinstance(ml_application_instance_view_id, six.string_types) and len(ml_application_instance_view_id.strip()) == 0: + if isinstance(ml_application_instance_view_id, str) and len(ml_application_instance_view_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-view-id cannot be whitespace or empty string') kwargs = {} @@ -11044,7 +11043,7 @@ def trigger_ml_application_instance_view_flow(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def update_compute_target(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_target_id, display_name, description, metadata, compute_configuration_details, freeform_tags, defined_tags, if_match): - if isinstance(compute_target_id, six.string_types) and len(compute_target_id.strip()) == 0: + if isinstance(compute_target_id, str) and len(compute_target_id.strip()) == 0: raise click.UsageError('Parameter --compute-target-id cannot be whitespace or empty string') if not force: if metadata or compute_configuration_details or freeform_tags or defined_tags: @@ -11133,7 +11132,7 @@ def update_compute_target(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_compute_target_update_managed_compute_cluster_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compute_target_id, display_name, description, metadata, freeform_tags, defined_tags, if_match, compute_configuration_details_instance_configuration, compute_configuration_details_scaling_policy): - if isinstance(compute_target_id, six.string_types) and len(compute_target_id.strip()) == 0: + if isinstance(compute_target_id, str) and len(compute_target_id.strip()) == 0: raise click.UsageError('Parameter --compute-target-id cannot be whitespace or empty string') if not force: if metadata or freeform_tags or defined_tags: @@ -11226,7 +11225,7 @@ def update_compute_target_update_managed_compute_cluster_configuration_details(c @cli_util.wrap_exceptions def update_data_science_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_science_private_endpoint_id, freeform_tags, defined_tags, description, display_name, nsg_ids, if_match): - if isinstance(data_science_private_endpoint_id, six.string_types) and len(data_science_private_endpoint_id.strip()) == 0: + if isinstance(data_science_private_endpoint_id, str) and len(data_science_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --data-science-private-endpoint-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids: @@ -11313,7 +11312,7 @@ def update_data_science_private_endpoint(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, display_name, description, job_infrastructure_configuration_details, job_storage_mount_configuration_details_list, freeform_tags, defined_tags, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if job_infrastructure_configuration_details or job_storage_mount_configuration_details_list or freeform_tags or defined_tags: @@ -11401,7 +11400,7 @@ def update_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_job_multi_node_job_infrastructure_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, job_infrastructure_configuration_details_shape_name, job_infrastructure_configuration_details_block_storage_size_in_gbs, display_name, description, job_storage_mount_configuration_details_list, freeform_tags, defined_tags, if_match, job_infrastructure_configuration_details_job_shape_config_details): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if job_storage_mount_configuration_details_list or freeform_tags or defined_tags: @@ -11491,7 +11490,7 @@ def update_job_multi_node_job_infrastructure_configuration_details(ctx, from_jso @cli_util.wrap_exceptions def update_job_empty_job_infrastructure_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, display_name, description, job_storage_mount_configuration_details_list, freeform_tags, defined_tags, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if job_storage_mount_configuration_details_list or freeform_tags or defined_tags: @@ -11579,7 +11578,7 @@ def update_job_empty_job_infrastructure_configuration_details(ctx, from_json, fo @cli_util.wrap_exceptions def update_job_managed_egress_standalone_job_infrastructure_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, job_infrastructure_configuration_details_shape_name, job_infrastructure_configuration_details_block_storage_size_in_gbs, display_name, description, job_storage_mount_configuration_details_list, freeform_tags, defined_tags, if_match, job_infrastructure_configuration_details_job_shape_config_details): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if job_storage_mount_configuration_details_list or freeform_tags or defined_tags: @@ -11671,7 +11670,7 @@ def update_job_managed_egress_standalone_job_infrastructure_configuration_detail @cli_util.wrap_exceptions def update_job_managed_compute_cluster_job_infrastructure_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, job_infrastructure_configuration_details_compute_target_id, job_infrastructure_configuration_details_resource_configuration, display_name, description, job_storage_mount_configuration_details_list, freeform_tags, defined_tags, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if job_storage_mount_configuration_details_list or freeform_tags or defined_tags: @@ -11762,7 +11761,7 @@ def update_job_managed_compute_cluster_job_infrastructure_configuration_details( @cli_util.wrap_exceptions def update_job_standalone_job_infrastructure_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, job_infrastructure_configuration_details_shape_name, job_infrastructure_configuration_details_subnet_id, job_infrastructure_configuration_details_block_storage_size_in_gbs, display_name, description, job_storage_mount_configuration_details_list, freeform_tags, defined_tags, if_match, job_infrastructure_configuration_details_job_shape_config_details): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if job_storage_mount_configuration_details_list or freeform_tags or defined_tags: @@ -11849,7 +11848,7 @@ def update_job_standalone_job_infrastructure_configuration_details(ctx, from_jso @cli_util.wrap_exceptions def update_job_run(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_run_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(job_run_id, six.string_types) and len(job_run_id.strip()) == 0: + if isinstance(job_run_id, str) and len(job_run_id.strip()) == 0: raise click.UsageError('Parameter --job-run-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -11921,7 +11920,7 @@ def update_job_run(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_ml_application(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_id, description, freeform_tags, defined_tags, if_match): - if isinstance(ml_application_id, six.string_types) and len(ml_application_id.strip()) == 0: + if isinstance(ml_application_id, str) and len(ml_application_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -11994,7 +11993,7 @@ def update_ml_application(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_ml_application_implementation(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_implementation_id, allowed_migration_destinations, logging, freeform_tags, defined_tags, if_match): - if isinstance(ml_application_implementation_id, six.string_types) and len(ml_application_implementation_id.strip()) == 0: + if isinstance(ml_application_implementation_id, str) and len(ml_application_implementation_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-implementation-id cannot be whitespace or empty string') if not force: if allowed_migration_destinations or logging or freeform_tags or defined_tags: @@ -12072,7 +12071,7 @@ def update_ml_application_implementation(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_ml_application_implementation_version(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_implementation_version_id, freeform_tags, defined_tags, if_match): - if isinstance(ml_application_implementation_version_id, six.string_types) and len(ml_application_implementation_version_id.strip()) == 0: + if isinstance(ml_application_implementation_version_id, str) and len(ml_application_implementation_version_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-implementation-version-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -12145,7 +12144,7 @@ def update_ml_application_implementation_version(ctx, from_json, force, wait_for @cli_util.wrap_exceptions def update_ml_application_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_instance_id, configuration, ml_application_implementation_id, is_enabled, freeform_tags, defined_tags, if_match): - if isinstance(ml_application_instance_id, six.string_types) and len(ml_application_instance_id.strip()) == 0: + if isinstance(ml_application_instance_id, str) and len(ml_application_instance_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-id cannot be whitespace or empty string') if not force: if configuration or freeform_tags or defined_tags: @@ -12226,7 +12225,7 @@ def update_ml_application_instance(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_ml_application_instance_view(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ml_application_instance_view_id, freeform_tags, defined_tags, if_match): - if isinstance(ml_application_instance_view_id, six.string_types) and len(ml_application_instance_view_id.strip()) == 0: + if isinstance(ml_application_instance_view_id, str) and len(ml_application_instance_view_id.strip()) == 0: raise click.UsageError('Parameter --ml-application-instance-view-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -12306,7 +12305,7 @@ def update_ml_application_instance_view(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, display_name, description, freeform_tags, defined_tags, custom_metadata_list, defined_metadata_list, model_version_set_id, version_label, retention_setting, backup_setting, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or custom_metadata_list or defined_metadata_list or retention_setting or backup_setting: @@ -12396,10 +12395,10 @@ def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_model_custom_metadatum_artifact(ctx, from_json, model_id, metadatum_key_name, model_custom_metadatum_artifact, content_length, content_disposition, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -12438,10 +12437,10 @@ def update_model_custom_metadatum_artifact(ctx, from_json, model_id, metadatum_k @cli_util.wrap_exceptions def update_model_defined_metadatum_artifact(ctx, from_json, model_id, metadatum_key_name, model_defined_metadatum_artifact, content_length, content_disposition, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') - if isinstance(metadatum_key_name, six.string_types) and len(metadatum_key_name.strip()) == 0: + if isinstance(metadatum_key_name, str) and len(metadatum_key_name.strip()) == 0: raise click.UsageError('Parameter --metadatum-key-name cannot be whitespace or empty string') kwargs = {} @@ -12486,7 +12485,7 @@ def update_model_defined_metadatum_artifact(ctx, from_json, model_id, metadatum_ @cli_util.wrap_exceptions def update_model_deployment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_deployment_id, display_name, description, model_deployment_configuration_details, category_log_details, freeform_tags, defined_tags, if_match): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') if not force: if model_deployment_configuration_details or category_log_details or freeform_tags or defined_tags: @@ -12577,7 +12576,7 @@ def update_model_deployment(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_model_deployment_update_model_group_deployment_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_deployment_id, display_name, description, category_log_details, freeform_tags, defined_tags, if_match, model_deployment_configuration_details_update_type, model_deployment_configuration_details_model_group_configuration_details, model_deployment_configuration_details_infrastructure_configuration_details, model_deployment_configuration_details_environment_configuration_details): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') if not force: if category_log_details or freeform_tags or defined_tags: @@ -12678,7 +12677,7 @@ def update_model_deployment_update_model_group_deployment_configuration_details( @cli_util.wrap_exceptions def update_model_deployment_update_single_model_deployment_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_deployment_id, display_name, description, category_log_details, freeform_tags, defined_tags, if_match, model_deployment_configuration_details_model_configuration_details, model_deployment_configuration_details_environment_configuration_details): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') if not force: if category_log_details or freeform_tags or defined_tags: @@ -12774,7 +12773,7 @@ def update_model_deployment_update_single_model_deployment_configuration_details @cli_util.wrap_exceptions def update_model_deployment_update_single_model_deployment_flex_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_deployment_id, display_name, description, category_log_details, freeform_tags, defined_tags, if_match, model_deployment_configuration_details_model_configuration_details, model_deployment_configuration_details_infrastructure_configuration_details, model_deployment_configuration_details_environment_configuration_details): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') if not force: if category_log_details or freeform_tags or defined_tags: @@ -12871,7 +12870,7 @@ def update_model_deployment_update_single_model_deployment_flex_configuration_de @cli_util.wrap_exceptions def update_model_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_group_id, display_name, description, version_label, model_group_version_history_id, freeform_tags, defined_tags, if_match): - if isinstance(model_group_id, six.string_types) and len(model_group_id.strip()) == 0: + if isinstance(model_group_id, str) and len(model_group_id.strip()) == 0: raise click.UsageError('Parameter --model-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -12954,7 +12953,7 @@ def update_model_group(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_model_group_version_history(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_group_version_history_id, display_name, description, latest_model_group_id, freeform_tags, defined_tags, if_match): - if isinstance(model_group_version_history_id, six.string_types) and len(model_group_version_history_id.strip()) == 0: + if isinstance(model_group_version_history_id, str) and len(model_group_version_history_id.strip()) == 0: raise click.UsageError('Parameter --model-group-version-history-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -13031,7 +13030,7 @@ def update_model_group_version_history(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_model_provenance(ctx, from_json, model_id, repository_url, git_branch, git_commit, script_dir, training_script, training_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -13085,7 +13084,7 @@ def update_model_provenance(ctx, from_json, model_id, repository_url, git_branch @cli_util.wrap_exceptions def update_model_version_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_version_set_id, description, freeform_tags, defined_tags, if_match): - if isinstance(model_version_set_id, six.string_types) and len(model_version_set_id.strip()) == 0: + if isinstance(model_version_set_id, str) and len(model_version_set_id.strip()) == 0: raise click.UsageError('Parameter --model-version-set-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -13162,7 +13161,7 @@ def update_model_version_set(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_notebook_session(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, notebook_session_id, display_name, notebook_session_configuration_details, freeform_tags, defined_tags, notebook_session_runtime_config_details, notebook_session_storage_mount_configuration_details_list, if_match): - if isinstance(notebook_session_id, six.string_types) and len(notebook_session_id.strip()) == 0: + if isinstance(notebook_session_id, str) and len(notebook_session_id.strip()) == 0: raise click.UsageError('Parameter --notebook-session-id cannot be whitespace or empty string') if not force: if notebook_session_configuration_details or freeform_tags or defined_tags or notebook_session_runtime_config_details or notebook_session_storage_mount_configuration_details_list: @@ -13254,7 +13253,7 @@ def update_notebook_session(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_pipeline(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, display_name, description, configuration_details, infrastructure_configuration_details, log_configuration_details, storage_mount_configuration_details_list, step_details, parameters, freeform_tags, defined_tags, if_match): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') if not force: if configuration_details or infrastructure_configuration_details or log_configuration_details or storage_mount_configuration_details_list or step_details or parameters or freeform_tags or defined_tags: @@ -13360,7 +13359,7 @@ def update_pipeline(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_pipeline_pipeline_default_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, display_name, description, infrastructure_configuration_details, log_configuration_details, storage_mount_configuration_details_list, step_details, parameters, freeform_tags, defined_tags, if_match, configuration_details_maximum_runtime_in_minutes, configuration_details_environment_variables, configuration_details_command_line_arguments): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') if not force: if infrastructure_configuration_details or log_configuration_details or storage_mount_configuration_details_list or step_details or parameters or freeform_tags or defined_tags: @@ -13462,7 +13461,7 @@ def update_pipeline_pipeline_default_configuration_details(ctx, from_json, force @cli_util.wrap_exceptions def update_pipeline_run(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_run_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(pipeline_run_id, six.string_types) and len(pipeline_run_id.strip()) == 0: + if isinstance(pipeline_run_id, str) and len(pipeline_run_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-run-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -13535,7 +13534,7 @@ def update_pipeline_run(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_project(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -13614,7 +13613,7 @@ def update_project(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, display_name, description, trigger, action, log_details, freeform_tags, defined_tags, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') if not force: if trigger or action or log_details or freeform_tags or defined_tags: @@ -13708,7 +13707,7 @@ def update_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_schedule_schedule_i_cal_trigger(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, trigger_recurrence, display_name, description, action, log_details, freeform_tags, defined_tags, if_match, trigger_time_start, trigger_time_end): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') if not force: if action or log_details or freeform_tags or defined_tags: @@ -13812,7 +13811,7 @@ def update_schedule_schedule_i_cal_trigger(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_schedule_schedule_interval_trigger(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, trigger_frequency, trigger_interval, display_name, description, action, log_details, freeform_tags, defined_tags, if_match, trigger_time_start, trigger_time_end, trigger_initial_jitter_in_minutes, trigger_is_random_start_time): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') if not force: if action or log_details or freeform_tags or defined_tags: @@ -13920,7 +13919,7 @@ def update_schedule_schedule_interval_trigger(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_schedule_schedule_cron_trigger(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, trigger_cron_expression, display_name, description, action, log_details, freeform_tags, defined_tags, if_match, trigger_time_start, trigger_time_end): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') if not force: if action or log_details or freeform_tags or defined_tags: @@ -14019,7 +14018,7 @@ def update_schedule_schedule_cron_trigger(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_schedule_schedule_http_action(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, action_action_details, display_name, description, trigger, log_details, freeform_tags, defined_tags, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') if not force: if trigger or log_details or freeform_tags or defined_tags: diff --git a/services/database/src/oci_cli_database/database_cli_extended.py b/services/database/src/oci_cli_database/database_cli_extended.py index 55e8effd1..a5196032f 100644 --- a/services/database/src/oci_cli_database/database_cli_extended.py +++ b/services/database/src/oci_cli_database/database_cli_extended.py @@ -6,7 +6,6 @@ import click import json import oci -import six # noqa: F401 from oci_cli import cli_util from oci_cli import json_skeleton_utils @@ -3599,10 +3598,10 @@ def modify_pluggable_database_management_extended(ctx, **kwargs): @cli_util.wrap_exceptions def failover_data_guard_association_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, data_guard_association_id, database_admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -3652,10 +3651,10 @@ def failover_data_guard_association_extended(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def reinstate_data_guard_association_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, data_guard_association_id, database_admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -3705,10 +3704,10 @@ def reinstate_data_guard_association_extended(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def switchover_data_guard_association_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, data_guard_association_id, database_admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -3758,10 +3757,10 @@ def switchover_data_guard_association_extended(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def update_data_guard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, data_guard_association_id, database_admin_password, protection_mode, transport_type, is_active_data_guard_enabled, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -3822,7 +3821,7 @@ def update_data_guard_association(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_autonomous_database_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, must_delete_associated_long_term_backups, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/database/src/oci_cli_database/generated/database_cli.py b/services/database/src/oci_cli_database/generated/database_cli.py index 640df6cb2..fc2683909 100644 --- a/services/database/src/oci_cli_database/generated/database_cli.py +++ b/services/database/src/oci_cli_database/generated/database_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -686,7 +685,7 @@ def system_version_minor_version_collection_group(): @cli_util.wrap_exceptions def activate_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, activation_file): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -743,7 +742,7 @@ def activate_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def add_dbnode_snapshots_for_exadb_vm_cluster(ctx, from_json, name, source_dbnode_ids, exadb_vm_cluster_id, freeform_tags, defined_tags, if_match): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -793,7 +792,7 @@ def add_dbnode_snapshots_for_exadb_vm_cluster(ctx, from_json, name, source_dbnod @cli_util.wrap_exceptions def add_standby_autonomous_container_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, fast_start_fail_over_lag_limit_in_seconds, is_automatic_failover_enabled, peer_autonomous_container_database_backup_config, peer_autonomous_container_database_compartment_id, peer_autonomous_container_database_display_name, peer_cloud_autonomous_vm_cluster_id, peer_autonomous_vm_cluster_id, peer_db_unique_name, protection_mode, standby_maintenance_buffer_in_days, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -878,7 +877,7 @@ def add_standby_autonomous_container_database(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def add_storage_capacity_cloud_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -929,7 +928,7 @@ def add_storage_capacity_cloud_exadata_infrastructure(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def add_storage_capacity_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, if_match): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -981,7 +980,7 @@ def add_storage_capacity_exadata_infrastructure(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def add_virtual_machine_to_cloud_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_servers, cloud_vm_cluster_id, if_match): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1038,7 +1037,7 @@ def add_virtual_machine_to_cloud_vm_cluster(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def add_virtual_machine_to_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_servers, vm_cluster_id, if_match): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1096,7 +1095,7 @@ def add_virtual_machine_to_vm_cluster(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def autonomous_database_manual_refresh(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, time_refresh_cutoff, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1156,7 +1155,7 @@ def autonomous_database_manual_refresh(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def cancel_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -1222,7 +1221,7 @@ def cancel_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def cancel_execution_window(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, execution_window_id, time_scheduled_of_new_window, window_duration_in_mins_of_new_window, is_enforced_duration_of_new_window, if_match): - if isinstance(execution_window_id, six.string_types) and len(execution_window_id.strip()) == 0: + if isinstance(execution_window_id, str) and len(execution_window_id.strip()) == 0: raise click.UsageError('Parameter --execution-window-id cannot be whitespace or empty string') kwargs = {} @@ -1282,7 +1281,7 @@ def cancel_execution_window(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def cascading_delete_scheduling_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduling_plan_id, if_match): - if isinstance(scheduling_plan_id, six.string_types) and len(scheduling_plan_id.strip()) == 0: + if isinstance(scheduling_plan_id, str) and len(scheduling_plan_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-plan-id cannot be whitespace or empty string') kwargs = {} @@ -1346,7 +1345,7 @@ def cascading_delete_scheduling_plan(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def change_autonomous_container_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, autonomous_container_database_id, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -1416,7 +1415,7 @@ def change_autonomous_container_database_compartment(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def change_autonomous_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, autonomous_database_id, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1487,7 +1486,7 @@ def change_autonomous_database_compartment(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def change_autonomous_database_software_image_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, autonomous_database_software_image_id, if_match): - if isinstance(autonomous_database_software_image_id, six.string_types) and len(autonomous_database_software_image_id.strip()) == 0: + if isinstance(autonomous_database_software_image_id, str) and len(autonomous_database_software_image_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-software-image-id cannot be whitespace or empty string') kwargs = {} @@ -1558,7 +1557,7 @@ def change_autonomous_database_software_image_compartment(ctx, from_json, wait_f @cli_util.wrap_exceptions def change_autonomous_database_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, subscription_id, is_default, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1634,7 +1633,7 @@ def change_autonomous_database_subscription(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def change_autonomous_exadata_infrastructure_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, autonomous_exadata_infrastructure_id, if_match): - if isinstance(autonomous_exadata_infrastructure_id, six.string_types) and len(autonomous_exadata_infrastructure_id.strip()) == 0: + if isinstance(autonomous_exadata_infrastructure_id, str) and len(autonomous_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -1703,7 +1702,7 @@ def change_autonomous_exadata_infrastructure_compartment(ctx, from_json, wait_fo @cli_util.wrap_exceptions def change_autonomous_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, autonomous_vm_cluster_id, if_match): - if isinstance(autonomous_vm_cluster_id, six.string_types) and len(autonomous_vm_cluster_id.strip()) == 0: + if isinstance(autonomous_vm_cluster_id, str) and len(autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1772,7 +1771,7 @@ def change_autonomous_vm_cluster_compartment(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def change_backup_destination_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, backup_destination_id, if_match): - if isinstance(backup_destination_id, six.string_types) and len(backup_destination_id.strip()) == 0: + if isinstance(backup_destination_id, str) and len(backup_destination_id.strip()) == 0: raise click.UsageError('Parameter --backup-destination-id cannot be whitespace or empty string') kwargs = {} @@ -1841,7 +1840,7 @@ def change_backup_destination_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_basecc_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, basecc_vm_cluster_id, if_match): - if isinstance(basecc_vm_cluster_id, six.string_types) and len(basecc_vm_cluster_id.strip()) == 0: + if isinstance(basecc_vm_cluster_id, str) and len(basecc_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --basecc-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1910,7 +1909,7 @@ def change_basecc_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def change_cloud_autonomous_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, cloud_autonomous_vm_cluster_id, if_match): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1980,7 +1979,7 @@ def change_cloud_autonomous_vm_cluster_compartment(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def change_cloud_autonomous_vm_cluster_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_autonomous_vm_cluster_id, subscription_id, is_default, if_match): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -2055,7 +2054,7 @@ def change_cloud_autonomous_vm_cluster_subscription(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def change_cloud_db_system_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, subscription_id, is_default, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2129,7 +2128,7 @@ def change_cloud_db_system_subscription(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def change_cloud_exadata_infrastructure_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, cloud_exadata_infrastructure_id, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -2199,7 +2198,7 @@ def change_cloud_exadata_infrastructure_compartment(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def change_cloud_exadata_infrastructure_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, subscription_id, is_default, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -2273,7 +2272,7 @@ def change_cloud_exadata_infrastructure_subscription(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def change_cloud_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, cloud_vm_cluster_id, if_match): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -2343,7 +2342,7 @@ def change_cloud_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def change_cloud_vm_cluster_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_vm_cluster_id, subscription_id, is_default, if_match): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -2417,7 +2416,7 @@ def change_cloud_vm_cluster_subscription(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def change_database_software_image_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, database_software_image_id, if_match): - if isinstance(database_software_image_id, six.string_types) and len(database_software_image_id.strip()) == 0: + if isinstance(database_software_image_id, str) and len(database_software_image_id.strip()) == 0: raise click.UsageError('Parameter --database-software-image-id cannot be whitespace or empty string') kwargs = {} @@ -2488,7 +2487,7 @@ def change_database_software_image_compartment(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def change_dataguard_role(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, role, autonomous_container_database_dataguard_association_id, autonomous_container_database_id, connection_strings_type, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -2549,7 +2548,7 @@ def change_dataguard_role(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def change_db_system_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2622,7 +2621,7 @@ def change_db_system_compartment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def change_disaster_recovery_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, disaster_recovery_type, time_snapshot_standby_enabled_till, is_snapshot_standby, is_replicate_automatic_backups, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -2692,7 +2691,7 @@ def change_disaster_recovery_configuration(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def change_encryption_key_location(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, provider_type, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -2761,7 +2760,7 @@ def change_encryption_key_location(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def change_encryption_key_location_external_hsm_encryption_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, hsm_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -2832,7 +2831,7 @@ def change_encryption_key_location_external_hsm_encryption_details(ctx, from_jso @cli_util.wrap_exceptions def change_encryption_key_location_google_cloud_provider_encryption_key_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, google_cloud_provider_encryption_key_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -2903,7 +2902,7 @@ def change_encryption_key_location_google_cloud_provider_encryption_key_details( @cli_util.wrap_exceptions def change_encryption_key_location_azure_encryption_key_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, azure_encryption_key_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -2974,7 +2973,7 @@ def change_encryption_key_location_azure_encryption_key_details(ctx, from_json, @cli_util.wrap_exceptions def change_encryption_key_location_aws_encryption_key_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, aws_encryption_key_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -3045,7 +3044,7 @@ def change_encryption_key_location_aws_encryption_key_details(ctx, from_json, wa @cli_util.wrap_exceptions def change_exadata_infrastructure_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, exadata_infrastructure_id, if_match): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -3114,7 +3113,7 @@ def change_exadata_infrastructure_compartment(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def change_exadb_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, exadb_vm_cluster_id, if_match): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -3184,7 +3183,7 @@ def change_exadb_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def change_exadb_vm_cluster_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadb_vm_cluster_id, subscription_id, is_default, if_match): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -3258,7 +3257,7 @@ def change_exadb_vm_cluster_subscription(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def change_exascale_db_storage_vault_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, exascale_db_storage_vault_id, if_match): - if isinstance(exascale_db_storage_vault_id, six.string_types) and len(exascale_db_storage_vault_id.strip()) == 0: + if isinstance(exascale_db_storage_vault_id, str) and len(exascale_db_storage_vault_id.strip()) == 0: raise click.UsageError('Parameter --exascale-db-storage-vault-id cannot be whitespace or empty string') kwargs = {} @@ -3328,7 +3327,7 @@ def change_exascale_db_storage_vault_compartment(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_exascale_db_storage_vault_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exascale_db_storage_vault_id, subscription_id, is_default, if_match): - if isinstance(exascale_db_storage_vault_id, six.string_types) and len(exascale_db_storage_vault_id.strip()) == 0: + if isinstance(exascale_db_storage_vault_id, str) and len(exascale_db_storage_vault_id.strip()) == 0: raise click.UsageError('Parameter --exascale-db-storage-vault-id cannot be whitespace or empty string') kwargs = {} @@ -3402,7 +3401,7 @@ def change_exascale_db_storage_vault_subscription(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def change_external_container_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, external_container_database_id, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -3471,7 +3470,7 @@ def change_external_container_database_compartment(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def change_external_non_container_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, external_non_container_database_id, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -3540,7 +3539,7 @@ def change_external_non_container_database_compartment(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def change_external_pluggable_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, external_pluggable_database_id, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -3609,7 +3608,7 @@ def change_external_pluggable_database_compartment(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def change_key_store_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, key_store_id, if_match): - if isinstance(key_store_id, six.string_types) and len(key_store_id.strip()) == 0: + if isinstance(key_store_id, str) and len(key_store_id.strip()) == 0: raise click.UsageError('Parameter --key-store-id cannot be whitespace or empty string') kwargs = {} @@ -3678,7 +3677,7 @@ def change_key_store_compartment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def change_key_store_type(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, key_store_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -3747,7 +3746,7 @@ def change_key_store_type(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def change_oneoff_patch_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, oneoff_patch_id, if_match): - if isinstance(oneoff_patch_id, six.string_types) and len(oneoff_patch_id.strip()) == 0: + if isinstance(oneoff_patch_id, str) and len(oneoff_patch_id.strip()) == 0: raise click.UsageError('Parameter --oneoff-patch-id cannot be whitespace or empty string') kwargs = {} @@ -3816,7 +3815,7 @@ def change_oneoff_patch_compartment(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def change_scheduling_plan_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, scheduling_plan_id, if_match): - if isinstance(scheduling_plan_id, six.string_types) and len(scheduling_plan_id.strip()) == 0: + if isinstance(scheduling_plan_id, str) and len(scheduling_plan_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-plan-id cannot be whitespace or empty string') kwargs = {} @@ -3885,7 +3884,7 @@ def change_scheduling_plan_compartment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def change_scheduling_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, scheduling_policy_id, if_match): - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3954,7 +3953,7 @@ def change_scheduling_policy_compartment(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def change_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, vm_cluster_id, if_match): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -4022,7 +4021,7 @@ def change_vm_cluster_compartment(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def check_external_database_connector_connection_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_database_connector_id, if_match): - if isinstance(external_database_connector_id, six.string_types) and len(external_database_connector_id.strip()) == 0: + if isinstance(external_database_connector_id, str) and len(external_database_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-database-connector-id cannot be whitespace or empty string') kwargs = {} @@ -4090,7 +4089,7 @@ def check_external_database_connector_connection_status(ctx, from_json, wait_for @cli_util.wrap_exceptions def complete_external_backup_job(ctx, from_json, backup_id, tde_wallet_path, cf_backup_handle, spf_backup_handle, sql_patches, data_size, redo_size, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -4143,7 +4142,7 @@ def complete_external_backup_job(ctx, from_json, backup_id, tde_wallet_path, cf_ @cli_util.wrap_exceptions def configure_autonomous_database_vault_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, kms_key_id, vault_id, is_using_oracle_managed_keys, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -4223,7 +4222,7 @@ def configure_autonomous_database_vault_key(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def configure_exascale_cloud_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, total_storage_in_gbs, total_vm_storage_in_gbs, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -4284,7 +4283,7 @@ def configure_exascale_cloud_exadata_infrastructure(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def configure_exascale_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, total_storage_in_gbs, total_vm_storage_in_gbs, if_match): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -4351,7 +4350,7 @@ def configure_exascale_exadata_infrastructure(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def configure_saas_admin_user(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, password, secret_id, secret_version_number, duration, is_enabled, access_type, time_saas_admin_user_enabled, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -4429,7 +4428,7 @@ def configure_saas_admin_user(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def confirm_key_store_details_are_correct(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_store_id, if_match): - if isinstance(key_store_id, six.string_types) and len(key_store_id.strip()) == 0: + if isinstance(key_store_id, str) and len(key_store_id.strip()) == 0: raise click.UsageError('Parameter --key-store-id cannot be whitespace or empty string') kwargs = {} @@ -4494,7 +4493,7 @@ def confirm_key_store_details_are_correct(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def convert_standby_autonomous_container_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, role, autonomous_container_database_id, connection_strings_type, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -4564,7 +4563,7 @@ def convert_standby_autonomous_container_database(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def convert_standby_database_type(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, standby_conversion_type, snapshot_duration_in_days, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -4626,7 +4625,7 @@ def convert_standby_database_type(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def convert_to_pdb(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, action, convert_to_pdb_target_details, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -4692,7 +4691,7 @@ def convert_to_pdb(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def convert_to_pdb_pdb_conversion_to_new_database_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, action, convert_to_pdb_target_details_cdb_name, convert_to_pdb_target_details_cdb_admin_password, convert_to_pdb_target_details_non_cdb_tde_wallet_password, if_match, convert_to_pdb_target_details_pdb_admin_password, convert_to_pdb_target_details_cdb_tde_wallet_password, convert_to_pdb_target_details_additional_cdb_params): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -4766,7 +4765,7 @@ def convert_to_pdb_pdb_conversion_to_new_database_details(ctx, from_json, wait_f @cli_util.wrap_exceptions def convert_to_regular_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, should_create_pdb_backup, container_database_admin_password, tde_wallet_password, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -4837,7 +4836,7 @@ def convert_to_regular_pluggable_database(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def convert_to_standalone(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -6698,7 +6697,7 @@ def create_autonomous_container_database_aws_encryption_key_details(ctx, from_js @cli_util.wrap_exceptions def create_autonomous_container_database_dataguard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, peer_autonomous_container_database_display_name, protection_mode, peer_autonomous_container_database_compartment_id, peer_cloud_autonomous_vm_cluster_id, peer_autonomous_vm_cluster_id, peer_db_unique_name, peer_autonomous_container_database_backup_config, is_automatic_failover_enabled, fast_start_fail_over_lag_limit_in_seconds, standby_maintenance_buffer_in_days): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -13428,7 +13427,7 @@ def create_cloud_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def create_console_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, public_key, db_node_id, freeform_tags, defined_tags): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') kwargs = {} @@ -13491,7 +13490,7 @@ def create_console_connection(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def create_console_history(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, display_name, db_node_id, freeform_tags, defined_tags): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') kwargs = {} @@ -13581,7 +13580,7 @@ def create_console_history(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def create_data_guard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, creation_type, database_software_image_id, source_encryption_key_location_details, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -13723,7 +13722,7 @@ def create_data_guard_association(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def create_data_guard_association_create_data_guard_association_with_new_db_system_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, database_software_image_id, source_encryption_key_location_details, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix, display_name, availability_domain, shape, cpu_core_count, storage_volume_performance_mode, compute_model, compute_count, node_count, subnet_id, nsg_ids, backup_network_nsg_ids, hostname, domain, time_zone, fault_domains, private_ip, private_ip_v6, license_model, db_system_freeform_tags, db_system_defined_tags, db_system_security_attributes, database_freeform_tags, database_defined_tags, data_collection_options, cluster_placement_group_id, subscription_id): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -13904,7 +13903,7 @@ def create_data_guard_association_create_data_guard_association_with_new_db_syst @cli_util.wrap_exceptions def create_data_guard_association_create_data_guard_association_to_existing_vm_cluster_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, database_software_image_id, source_encryption_key_location_details, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix, peer_vm_cluster_id, peer_db_home_id): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -14013,7 +14012,7 @@ def create_data_guard_association_create_data_guard_association_to_existing_vm_c @cli_util.wrap_exceptions def create_data_guard_association_create_data_guard_association_to_existing_db_system_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, database_software_image_id, source_encryption_key_location_details, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix, peer_db_system_id, peer_db_home_id): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -14120,7 +14119,7 @@ def create_data_guard_association_create_data_guard_association_to_existing_db_s @cli_util.wrap_exceptions def create_data_guard_association_external_hsm_encryption_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, source_encryption_key_location_details_hsm_password, database_software_image_id, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -14220,7 +14219,7 @@ def create_data_guard_association_external_hsm_encryption_details(ctx, from_json @cli_util.wrap_exceptions def create_data_guard_association_google_cloud_provider_encryption_key_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, source_encryption_key_location_details_google_cloud_provider_encryption_key_id, database_software_image_id, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -14320,7 +14319,7 @@ def create_data_guard_association_google_cloud_provider_encryption_key_details(c @cli_util.wrap_exceptions def create_data_guard_association_azure_encryption_key_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, source_encryption_key_location_details_azure_encryption_key_id, database_software_image_id, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -14420,7 +14419,7 @@ def create_data_guard_association_azure_encryption_key_details(ctx, from_json, w @cli_util.wrap_exceptions def create_data_guard_association_aws_encryption_key_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, source_encryption_key_location_details_aws_encryption_key_id, database_software_image_id, is_active_data_guard_enabled, peer_db_unique_name, peer_sid_prefix): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -17386,7 +17385,7 @@ def create_scheduling_policy(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def create_scheduling_window(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduling_policy_id, window_preference, compartment_id, freeform_tags, defined_tags): - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') kwargs = {} @@ -17618,7 +17617,7 @@ def create_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def create_vm_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, compartment_id, display_name, scans, vm_networks, dns, ntp, dr_scans, freeform_tags, defined_tags): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -17693,7 +17692,7 @@ def create_vm_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def db_node_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_node_id, action, if_match): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') kwargs = {} @@ -17745,7 +17744,7 @@ def db_node_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_advanced_cluster_file_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, advanced_cluster_file_system_id, if_match): - if isinstance(advanced_cluster_file_system_id, six.string_types) and len(advanced_cluster_file_system_id.strip()) == 0: + if isinstance(advanced_cluster_file_system_id, str) and len(advanced_cluster_file_system_id.strip()) == 0: raise click.UsageError('Parameter --advanced-cluster-file-system-id cannot be whitespace or empty string') kwargs = {} @@ -17802,7 +17801,7 @@ def delete_advanced_cluster_file_system(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_application_vip(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, application_vip_id, if_match): - if isinstance(application_vip_id, six.string_types) and len(application_vip_id.strip()) == 0: + if isinstance(application_vip_id, str) and len(application_vip_id.strip()) == 0: raise click.UsageError('Parameter --application-vip-id cannot be whitespace or empty string') kwargs = {} @@ -17861,7 +17860,7 @@ def delete_application_vip(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, must_delete_associated_long_term_backups, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -17923,7 +17922,7 @@ def delete_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_autonomous_database_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_backup_id, if_match, opc_dry_run): - if isinstance(autonomous_database_backup_id, six.string_types) and len(autonomous_database_backup_id.strip()) == 0: + if isinstance(autonomous_database_backup_id, str) and len(autonomous_database_backup_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-backup-id cannot be whitespace or empty string') kwargs = {} @@ -17982,7 +17981,7 @@ def delete_autonomous_database_backup(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_autonomous_database_software_image(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_software_image_id, if_match): - if isinstance(autonomous_database_software_image_id, six.string_types) and len(autonomous_database_software_image_id.strip()) == 0: + if isinstance(autonomous_database_software_image_id, str) and len(autonomous_database_software_image_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-software-image-id cannot be whitespace or empty string') kwargs = {} @@ -18039,7 +18038,7 @@ def delete_autonomous_database_software_image(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def delete_autonomous_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_vm_cluster_id, if_match): - if isinstance(autonomous_vm_cluster_id, six.string_types) and len(autonomous_vm_cluster_id.strip()) == 0: + if isinstance(autonomous_vm_cluster_id, str) and len(autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -18096,7 +18095,7 @@ def delete_autonomous_vm_cluster(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -18152,7 +18151,7 @@ def delete_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_backup_destination(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_destination_id, if_match): - if isinstance(backup_destination_id, six.string_types) and len(backup_destination_id.strip()) == 0: + if isinstance(backup_destination_id, str) and len(backup_destination_id.strip()) == 0: raise click.UsageError('Parameter --backup-destination-id cannot be whitespace or empty string') kwargs = {} @@ -18216,7 +18215,7 @@ def delete_backup_destination(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_basecc_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, basecc_vm_cluster_id, if_match): - if isinstance(basecc_vm_cluster_id, six.string_types) and len(basecc_vm_cluster_id.strip()) == 0: + if isinstance(basecc_vm_cluster_id, str) and len(basecc_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --basecc-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -18273,7 +18272,7 @@ def delete_basecc_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_cloud_autonomous_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_autonomous_vm_cluster_id, if_match): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -18331,7 +18330,7 @@ def delete_cloud_autonomous_vm_cluster(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_cloud_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, if_match, is_delete_vm_clusters): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -18390,7 +18389,7 @@ def delete_cloud_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_cloud_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_vm_cluster_id, if_match): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -18448,10 +18447,10 @@ def delete_cloud_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_console_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_node_id, console_connection_id, if_match): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') - if isinstance(console_connection_id, six.string_types) and len(console_connection_id.strip()) == 0: + if isinstance(console_connection_id, str) and len(console_connection_id.strip()) == 0: raise click.UsageError('Parameter --console-connection-id cannot be whitespace or empty string') kwargs = {} @@ -18509,10 +18508,10 @@ def delete_console_connection(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_console_history(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_node_id, console_history_id, if_match): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') - if isinstance(console_history_id, six.string_types) and len(console_history_id.strip()) == 0: + if isinstance(console_history_id, str) and len(console_history_id.strip()) == 0: raise click.UsageError('Parameter --console-history-id cannot be whitespace or empty string') kwargs = {} @@ -18577,7 +18576,7 @@ def delete_console_history(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, if_match, perform_final_backup): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -18636,7 +18635,7 @@ def delete_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_database_software_image(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_software_image_id, if_match): - if isinstance(database_software_image_id, six.string_types) and len(database_software_image_id.strip()) == 0: + if isinstance(database_software_image_id, str) and len(database_software_image_id.strip()) == 0: raise click.UsageError('Parameter --database-software-image-id cannot be whitespace or empty string') kwargs = {} @@ -18699,7 +18698,7 @@ def delete_database_software_image(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_db_home(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_home_id, if_match, perform_final_backup): - if isinstance(db_home_id, six.string_types) and len(db_home_id.strip()) == 0: + if isinstance(db_home_id, str) and len(db_home_id.strip()) == 0: raise click.UsageError('Parameter --db-home-id cannot be whitespace or empty string') kwargs = {} @@ -18757,7 +18756,7 @@ def delete_db_home(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_dbnode_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dbnode_snapshot_id, if_match): - if isinstance(dbnode_snapshot_id, six.string_types) and len(dbnode_snapshot_id.strip()) == 0: + if isinstance(dbnode_snapshot_id, str) and len(dbnode_snapshot_id.strip()) == 0: raise click.UsageError('Parameter --dbnode-snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -18814,7 +18813,7 @@ def delete_dbnode_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, if_match): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -18871,7 +18870,7 @@ def delete_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_exadb_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadb_vm_cluster_id, if_match): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -18928,7 +18927,7 @@ def delete_exadb_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_exascale_db_storage_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exascale_db_storage_vault_id, if_match): - if isinstance(exascale_db_storage_vault_id, six.string_types) and len(exascale_db_storage_vault_id.strip()) == 0: + if isinstance(exascale_db_storage_vault_id, str) and len(exascale_db_storage_vault_id.strip()) == 0: raise click.UsageError('Parameter --exascale-db-storage-vault-id cannot be whitespace or empty string') kwargs = {} @@ -18985,7 +18984,7 @@ def delete_exascale_db_storage_vault(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_execution_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, execution_action_id, if_match): - if isinstance(execution_action_id, six.string_types) and len(execution_action_id.strip()) == 0: + if isinstance(execution_action_id, str) and len(execution_action_id.strip()) == 0: raise click.UsageError('Parameter --execution-action-id cannot be whitespace or empty string') kwargs = {} @@ -19042,7 +19041,7 @@ def delete_execution_action(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_execution_window(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, execution_window_id, if_match): - if isinstance(execution_window_id, six.string_types) and len(execution_window_id.strip()) == 0: + if isinstance(execution_window_id, str) and len(execution_window_id.strip()) == 0: raise click.UsageError('Parameter --execution-window-id cannot be whitespace or empty string') kwargs = {} @@ -19106,7 +19105,7 @@ def delete_execution_window(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_external_container_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -19163,7 +19162,7 @@ def delete_external_container_database(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_external_database_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_database_connector_id, if_match): - if isinstance(external_database_connector_id, six.string_types) and len(external_database_connector_id.strip()) == 0: + if isinstance(external_database_connector_id, str) and len(external_database_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-database-connector-id cannot be whitespace or empty string') kwargs = {} @@ -19220,7 +19219,7 @@ def delete_external_database_connector(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_external_non_container_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -19277,7 +19276,7 @@ def delete_external_non_container_database(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_external_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -19334,7 +19333,7 @@ def delete_external_pluggable_database(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_key_store(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_store_id, if_match): - if isinstance(key_store_id, six.string_types) and len(key_store_id.strip()) == 0: + if isinstance(key_store_id, str) and len(key_store_id.strip()) == 0: raise click.UsageError('Parameter --key-store-id cannot be whitespace or empty string') kwargs = {} @@ -19398,7 +19397,7 @@ def delete_key_store(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_oneoff_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oneoff_patch_id, if_match): - if isinstance(oneoff_patch_id, six.string_types) and len(oneoff_patch_id.strip()) == 0: + if isinstance(oneoff_patch_id, str) and len(oneoff_patch_id.strip()) == 0: raise click.UsageError('Parameter --oneoff-patch-id cannot be whitespace or empty string') kwargs = {} @@ -19455,7 +19454,7 @@ def delete_oneoff_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -19512,7 +19511,7 @@ def delete_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_pluggable_database_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_snapshot_id, if_match): - if isinstance(pluggable_database_snapshot_id, six.string_types) and len(pluggable_database_snapshot_id.strip()) == 0: + if isinstance(pluggable_database_snapshot_id, str) and len(pluggable_database_snapshot_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -19569,7 +19568,7 @@ def delete_pluggable_database_snapshot(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_scheduled_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduled_action_id, if_match): - if isinstance(scheduled_action_id, six.string_types) and len(scheduled_action_id.strip()) == 0: + if isinstance(scheduled_action_id, str) and len(scheduled_action_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-action-id cannot be whitespace or empty string') kwargs = {} @@ -19626,7 +19625,7 @@ def delete_scheduled_action(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_scheduling_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduling_plan_id, if_match): - if isinstance(scheduling_plan_id, six.string_types) and len(scheduling_plan_id.strip()) == 0: + if isinstance(scheduling_plan_id, str) and len(scheduling_plan_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-plan-id cannot be whitespace or empty string') kwargs = {} @@ -19683,7 +19682,7 @@ def delete_scheduling_plan(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_scheduling_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduling_policy_id, if_match): - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') kwargs = {} @@ -19745,10 +19744,10 @@ def delete_scheduling_policy(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_scheduling_window(ctx, from_json, scheduling_policy_id, scheduling_window_id, if_match): - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') - if isinstance(scheduling_window_id, six.string_types) and len(scheduling_window_id.strip()) == 0: + if isinstance(scheduling_window_id, str) and len(scheduling_window_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-window-id cannot be whitespace or empty string') kwargs = {} @@ -19778,7 +19777,7 @@ def delete_scheduling_window(ctx, from_json, scheduling_policy_id, scheduling_wi @cli_util.wrap_exceptions def delete_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_cluster_id, if_match): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -19836,10 +19835,10 @@ def delete_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_vm_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, vm_cluster_network_id, if_match): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -19897,7 +19896,7 @@ def delete_vm_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def deregister_autonomous_database_data_safe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, pdb_admin_password, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -19965,7 +19964,7 @@ def deregister_autonomous_database_data_safe(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def disable_autonomous_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -20028,7 +20027,7 @@ def disable_autonomous_database_management(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def disable_autonomous_database_operations_insights(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -20091,7 +20090,7 @@ def disable_autonomous_database_operations_insights(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def disable_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -20142,7 +20141,7 @@ def disable_database_management(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def disable_external_container_database_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -20205,7 +20204,7 @@ def disable_external_container_database_database_management(ctx, from_json, wait @cli_util.wrap_exceptions def disable_external_container_database_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -20268,7 +20267,7 @@ def disable_external_container_database_stack_monitoring(ctx, from_json, wait_fo @cli_util.wrap_exceptions def disable_external_non_container_database_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -20331,7 +20330,7 @@ def disable_external_non_container_database_database_management(ctx, from_json, @cli_util.wrap_exceptions def disable_external_non_container_database_operations_insights(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -20394,7 +20393,7 @@ def disable_external_non_container_database_operations_insights(ctx, from_json, @cli_util.wrap_exceptions def disable_external_non_container_database_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -20457,7 +20456,7 @@ def disable_external_non_container_database_stack_monitoring(ctx, from_json, wai @cli_util.wrap_exceptions def disable_external_pluggable_database_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -20520,7 +20519,7 @@ def disable_external_pluggable_database_database_management(ctx, from_json, wait @cli_util.wrap_exceptions def disable_external_pluggable_database_operations_insights(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -20583,7 +20582,7 @@ def disable_external_pluggable_database_operations_insights(ctx, from_json, wait @cli_util.wrap_exceptions def disable_external_pluggable_database_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -20646,7 +20645,7 @@ def disable_external_pluggable_database_stack_monitoring(ctx, from_json, wait_fo @cli_util.wrap_exceptions def disable_pluggable_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -20696,7 +20695,7 @@ def disable_pluggable_database_management(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def download_db_connection_bundle(ctx, from_json, file, db_connection_bundle_id, password, if_match): - if isinstance(db_connection_bundle_id, six.string_types) and len(db_connection_bundle_id.strip()) == 0: + if isinstance(db_connection_bundle_id, str) and len(db_connection_bundle_id.strip()) == 0: raise click.UsageError('Parameter --db-connection-bundle-id cannot be whitespace or empty string') kwargs = {} @@ -20748,7 +20747,7 @@ def download_db_connection_bundle(ctx, from_json, file, db_connection_bundle_id, @cli_util.wrap_exceptions def download_exadata_infrastructure_config_file(ctx, from_json, file, exadata_infrastructure_id): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -20793,7 +20792,7 @@ def download_exadata_infrastructure_config_file(ctx, from_json, file, exadata_in @cli_util.wrap_exceptions def download_oneoff_patch(ctx, from_json, oneoff_patch_id, if_match): - if isinstance(oneoff_patch_id, six.string_types) and len(oneoff_patch_id.strip()) == 0: + if isinstance(oneoff_patch_id, str) and len(oneoff_patch_id.strip()) == 0: raise click.UsageError('Parameter --oneoff-patch-id cannot be whitespace or empty string') kwargs = {} @@ -20819,10 +20818,10 @@ def download_oneoff_patch(ctx, from_json, oneoff_patch_id, if_match): @cli_util.wrap_exceptions def download_validation_report(ctx, from_json, file, exadata_infrastructure_id, vm_cluster_network_id): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -20869,10 +20868,10 @@ def download_validation_report(ctx, from_json, file, exadata_infrastructure_id, @cli_util.wrap_exceptions def download_vm_cluster_network_config_file(ctx, from_json, file, exadata_infrastructure_id, vm_cluster_network_id): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -20924,7 +20923,7 @@ def download_vm_cluster_network_config_file(ctx, from_json, file, exadata_infras @cli_util.wrap_exceptions def edit_autonomous_container_database_dataguard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, is_automatic_failover_enabled, protection_mode, fast_start_fail_over_lag_limit_in_seconds, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -20988,7 +20987,7 @@ def edit_autonomous_container_database_dataguard(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def enable_autonomous_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -21051,7 +21050,7 @@ def enable_autonomous_database_management(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def enable_autonomous_database_operations_insights(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -21122,7 +21121,7 @@ def enable_autonomous_database_operations_insights(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def enable_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, credential_details, private_end_point_id, service_name, management_type, protocol, port, ssl_secret_id, role, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -21197,7 +21196,7 @@ def enable_database_management(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def enable_external_container_database_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, license_model, external_database_connector_id, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -21267,7 +21266,7 @@ def enable_external_container_database_database_management(ctx, from_json, wait_ @cli_util.wrap_exceptions def enable_external_container_database_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, external_database_connector_id, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -21337,7 +21336,7 @@ def enable_external_container_database_stack_monitoring(ctx, from_json, wait_for @cli_util.wrap_exceptions def enable_external_non_container_database_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, license_model, external_database_connector_id, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -21407,7 +21406,7 @@ def enable_external_non_container_database_database_management(ctx, from_json, w @cli_util.wrap_exceptions def enable_external_non_container_database_operations_insights(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, external_database_connector_id, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -21476,7 +21475,7 @@ def enable_external_non_container_database_operations_insights(ctx, from_json, w @cli_util.wrap_exceptions def enable_external_non_container_database_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, external_database_connector_id, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -21545,7 +21544,7 @@ def enable_external_non_container_database_stack_monitoring(ctx, from_json, wait @cli_util.wrap_exceptions def enable_external_pluggable_database_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, external_database_connector_id, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -21614,7 +21613,7 @@ def enable_external_pluggable_database_database_management(ctx, from_json, wait_ @cli_util.wrap_exceptions def enable_external_pluggable_database_operations_insights(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, external_database_connector_id, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -21683,7 +21682,7 @@ def enable_external_pluggable_database_operations_insights(ctx, from_json, wait_ @cli_util.wrap_exceptions def enable_external_pluggable_database_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, external_database_connector_id, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -21758,7 +21757,7 @@ def enable_external_pluggable_database_stack_monitoring(ctx, from_json, wait_for @cli_util.wrap_exceptions def enable_pluggable_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, credential_details, private_end_point_id, service_name, protocol, port, ssl_secret_id, role, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -21830,7 +21829,7 @@ def enable_pluggable_database_management(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def execute_db_system_os_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, action, db_system_id, db_node_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -21903,7 +21902,7 @@ def execute_db_system_os_patch(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def fail_over_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, peer_db_id, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -21958,7 +21957,7 @@ def fail_over_autonomous_database(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def failover_autonomous_container_database_dataguard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -22012,10 +22011,10 @@ def failover_autonomous_container_database_dataguard(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def failover_autonomous_container_database_dataguard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') - if isinstance(autonomous_container_database_dataguard_association_id, six.string_types) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: + if isinstance(autonomous_container_database_dataguard_association_id, str) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-dataguard-association-id cannot be whitespace or empty string') kwargs = {} @@ -22073,7 +22072,7 @@ def failover_autonomous_container_database_dataguard_association(ctx, from_json, @cli_util.wrap_exceptions def failover_data_guard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -22133,10 +22132,10 @@ def failover_data_guard(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def failover_data_guard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, data_guard_association_id, database_admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -22197,7 +22196,7 @@ def failover_data_guard_association(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def generate_autonomous_database_wallet(ctx, from_json, file, autonomous_database_id, password, generate_type, is_regional, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -22268,7 +22267,7 @@ def generate_autonomous_database_wallet(ctx, from_json, file, autonomous_databas @cli_util.wrap_exceptions def generate_recommended_vm_cluster_network(ctx, from_json, exadata_infrastructure_id, compartment_id, display_name, networks, db_servers, scan_listener_port_tcp, scan_listener_port_tcp_ssl, dr_scan_listener_port_tcp, dr_scan_listener_port_tcp_ssl, dns, ntp, freeform_tags, defined_tags): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -22324,7 +22323,7 @@ def generate_recommended_vm_cluster_network(ctx, from_json, exadata_infrastructu @cli_util.wrap_exceptions def get_advanced_cluster_file_system(ctx, from_json, advanced_cluster_file_system_id): - if isinstance(advanced_cluster_file_system_id, six.string_types) and len(advanced_cluster_file_system_id.strip()) == 0: + if isinstance(advanced_cluster_file_system_id, str) and len(advanced_cluster_file_system_id.strip()) == 0: raise click.UsageError('Parameter --advanced-cluster-file-system-id cannot be whitespace or empty string') kwargs = {} @@ -22346,7 +22345,7 @@ def get_advanced_cluster_file_system(ctx, from_json, advanced_cluster_file_syste @cli_util.wrap_exceptions def get_application_vip(ctx, from_json, application_vip_id): - if isinstance(application_vip_id, six.string_types) and len(application_vip_id.strip()) == 0: + if isinstance(application_vip_id, str) and len(application_vip_id.strip()) == 0: raise click.UsageError('Parameter --application-vip-id cannot be whitespace or empty string') kwargs = {} @@ -22368,7 +22367,7 @@ def get_application_vip(ctx, from_json, application_vip_id): @cli_util.wrap_exceptions def get_autonomous_container_database(ctx, from_json, autonomous_container_database_id): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -22389,7 +22388,7 @@ def get_autonomous_container_database(ctx, from_json, autonomous_container_datab @cli_util.wrap_exceptions def get_autonomous_container_database_backup(ctx, from_json, autonomous_container_database_backup_id): - if isinstance(autonomous_container_database_backup_id, six.string_types) and len(autonomous_container_database_backup_id.strip()) == 0: + if isinstance(autonomous_container_database_backup_id, str) and len(autonomous_container_database_backup_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-backup-id cannot be whitespace or empty string') kwargs = {} @@ -22412,10 +22411,10 @@ def get_autonomous_container_database_backup(ctx, from_json, autonomous_containe @cli_util.wrap_exceptions def get_autonomous_container_database_dataguard_association(ctx, from_json, autonomous_container_database_id, autonomous_container_database_dataguard_association_id): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') - if isinstance(autonomous_container_database_dataguard_association_id, six.string_types) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: + if isinstance(autonomous_container_database_dataguard_association_id, str) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-dataguard-association-id cannot be whitespace or empty string') kwargs = {} @@ -22437,7 +22436,7 @@ def get_autonomous_container_database_dataguard_association(ctx, from_json, auto @cli_util.wrap_exceptions def get_autonomous_container_database_resource_usage(ctx, from_json, autonomous_container_database_id): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -22459,7 +22458,7 @@ def get_autonomous_container_database_resource_usage(ctx, from_json, autonomous_ @cli_util.wrap_exceptions def get_autonomous_database(ctx, from_json, autonomous_database_id): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -22481,7 +22480,7 @@ def get_autonomous_database(ctx, from_json, autonomous_database_id): @cli_util.wrap_exceptions def get_autonomous_database_backup(ctx, from_json, autonomous_database_backup_id): - if isinstance(autonomous_database_backup_id, six.string_types) and len(autonomous_database_backup_id.strip()) == 0: + if isinstance(autonomous_database_backup_id, str) and len(autonomous_database_backup_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-backup-id cannot be whitespace or empty string') kwargs = {} @@ -22504,10 +22503,10 @@ def get_autonomous_database_backup(ctx, from_json, autonomous_database_backup_id @cli_util.wrap_exceptions def get_autonomous_database_dataguard_association(ctx, from_json, autonomous_database_id, autonomous_database_dataguard_association_id): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') - if isinstance(autonomous_database_dataguard_association_id, six.string_types) and len(autonomous_database_dataguard_association_id.strip()) == 0: + if isinstance(autonomous_database_dataguard_association_id, str) and len(autonomous_database_dataguard_association_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-dataguard-association-id cannot be whitespace or empty string') kwargs = {} @@ -22547,7 +22546,7 @@ def get_autonomous_database_regional_wallet(ctx, from_json, ): @cli_util.wrap_exceptions def get_autonomous_database_software_image(ctx, from_json, autonomous_database_software_image_id): - if isinstance(autonomous_database_software_image_id, six.string_types) and len(autonomous_database_software_image_id.strip()) == 0: + if isinstance(autonomous_database_software_image_id, str) and len(autonomous_database_software_image_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-software-image-id cannot be whitespace or empty string') kwargs = {} @@ -22569,7 +22568,7 @@ def get_autonomous_database_software_image(ctx, from_json, autonomous_database_s @cli_util.wrap_exceptions def get_autonomous_database_wallet(ctx, from_json, autonomous_database_id): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -22591,7 +22590,7 @@ def get_autonomous_database_wallet(ctx, from_json, autonomous_database_id): @cli_util.wrap_exceptions def get_autonomous_exadata_infrastructure(ctx, from_json, autonomous_exadata_infrastructure_id): - if isinstance(autonomous_exadata_infrastructure_id, six.string_types) and len(autonomous_exadata_infrastructure_id.strip()) == 0: + if isinstance(autonomous_exadata_infrastructure_id, str) and len(autonomous_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -22612,7 +22611,7 @@ def get_autonomous_exadata_infrastructure(ctx, from_json, autonomous_exadata_inf @cli_util.wrap_exceptions def get_autonomous_patch(ctx, from_json, autonomous_patch_id): - if isinstance(autonomous_patch_id, six.string_types) and len(autonomous_patch_id.strip()) == 0: + if isinstance(autonomous_patch_id, str) and len(autonomous_patch_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-patch-id cannot be whitespace or empty string') kwargs = {} @@ -22633,7 +22632,7 @@ def get_autonomous_patch(ctx, from_json, autonomous_patch_id): @cli_util.wrap_exceptions def get_autonomous_virtual_machine(ctx, from_json, autonomous_virtual_machine_id): - if isinstance(autonomous_virtual_machine_id, six.string_types) and len(autonomous_virtual_machine_id.strip()) == 0: + if isinstance(autonomous_virtual_machine_id, str) and len(autonomous_virtual_machine_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-virtual-machine-id cannot be whitespace or empty string') kwargs = {} @@ -22655,7 +22654,7 @@ def get_autonomous_virtual_machine(ctx, from_json, autonomous_virtual_machine_id @cli_util.wrap_exceptions def get_autonomous_vm_cluster(ctx, from_json, autonomous_vm_cluster_id): - if isinstance(autonomous_vm_cluster_id, six.string_types) and len(autonomous_vm_cluster_id.strip()) == 0: + if isinstance(autonomous_vm_cluster_id, str) and len(autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -22677,7 +22676,7 @@ def get_autonomous_vm_cluster(ctx, from_json, autonomous_vm_cluster_id): @cli_util.wrap_exceptions def get_autonomous_vm_cluster_resource_usage(ctx, from_json, autonomous_vm_cluster_id): - if isinstance(autonomous_vm_cluster_id, six.string_types) and len(autonomous_vm_cluster_id.strip()) == 0: + if isinstance(autonomous_vm_cluster_id, str) and len(autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -22699,7 +22698,7 @@ def get_autonomous_vm_cluster_resource_usage(ctx, from_json, autonomous_vm_clust @cli_util.wrap_exceptions def get_backup(ctx, from_json, backup_id): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -22720,7 +22719,7 @@ def get_backup(ctx, from_json, backup_id): @cli_util.wrap_exceptions def get_backup_destination(ctx, from_json, backup_destination_id): - if isinstance(backup_destination_id, six.string_types) and len(backup_destination_id.strip()) == 0: + if isinstance(backup_destination_id, str) and len(backup_destination_id.strip()) == 0: raise click.UsageError('Parameter --backup-destination-id cannot be whitespace or empty string') kwargs = {} @@ -22742,7 +22741,7 @@ def get_backup_destination(ctx, from_json, backup_destination_id): @cli_util.wrap_exceptions def get_basecc_vm_cluster(ctx, from_json, basecc_vm_cluster_id): - if isinstance(basecc_vm_cluster_id, six.string_types) and len(basecc_vm_cluster_id.strip()) == 0: + if isinstance(basecc_vm_cluster_id, str) and len(basecc_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --basecc-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -22765,10 +22764,10 @@ def get_basecc_vm_cluster(ctx, from_json, basecc_vm_cluster_id): @cli_util.wrap_exceptions def get_basecc_vm_cluster_update(ctx, from_json, basecc_vm_cluster_id, update_id): - if isinstance(basecc_vm_cluster_id, six.string_types) and len(basecc_vm_cluster_id.strip()) == 0: + if isinstance(basecc_vm_cluster_id, str) and len(basecc_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --basecc-vm-cluster-id cannot be whitespace or empty string') - if isinstance(update_id, six.string_types) and len(update_id.strip()) == 0: + if isinstance(update_id, str) and len(update_id.strip()) == 0: raise click.UsageError('Parameter --update-id cannot be whitespace or empty string') kwargs = {} @@ -22792,10 +22791,10 @@ def get_basecc_vm_cluster_update(ctx, from_json, basecc_vm_cluster_id, update_id @cli_util.wrap_exceptions def get_basecc_vm_cluster_update_history_entry(ctx, from_json, basecc_vm_cluster_id, update_history_entry_id): - if isinstance(basecc_vm_cluster_id, six.string_types) and len(basecc_vm_cluster_id.strip()) == 0: + if isinstance(basecc_vm_cluster_id, str) and len(basecc_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --basecc-vm-cluster-id cannot be whitespace or empty string') - if isinstance(update_history_entry_id, six.string_types) and len(update_history_entry_id.strip()) == 0: + if isinstance(update_history_entry_id, str) and len(update_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --update-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -22818,7 +22817,7 @@ def get_basecc_vm_cluster_update_history_entry(ctx, from_json, basecc_vm_cluster @cli_util.wrap_exceptions def get_cloud_autonomous_vm_cluster(ctx, from_json, cloud_autonomous_vm_cluster_id): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -22840,7 +22839,7 @@ def get_cloud_autonomous_vm_cluster(ctx, from_json, cloud_autonomous_vm_cluster_ @cli_util.wrap_exceptions def get_cloud_autonomous_vm_cluster_resource_usage(ctx, from_json, cloud_autonomous_vm_cluster_id): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -22862,7 +22861,7 @@ def get_cloud_autonomous_vm_cluster_resource_usage(ctx, from_json, cloud_autonom @cli_util.wrap_exceptions def get_cloud_exadata_infrastructure(ctx, from_json, cloud_exadata_infrastructure_id): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -22885,7 +22884,7 @@ def get_cloud_exadata_infrastructure(ctx, from_json, cloud_exadata_infrastructur @cli_util.wrap_exceptions def get_cloud_exadata_infrastructure_unallocated_resources(ctx, from_json, cloud_exadata_infrastructure_id, db_servers): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -22909,7 +22908,7 @@ def get_cloud_exadata_infrastructure_unallocated_resources(ctx, from_json, cloud @cli_util.wrap_exceptions def get_cloud_vm_cluster(ctx, from_json, cloud_vm_cluster_id): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -22931,7 +22930,7 @@ def get_cloud_vm_cluster(ctx, from_json, cloud_vm_cluster_id): @cli_util.wrap_exceptions def get_cloud_vm_cluster_iorm_config(ctx, from_json, cloud_vm_cluster_id): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -22954,10 +22953,10 @@ def get_cloud_vm_cluster_iorm_config(ctx, from_json, cloud_vm_cluster_id): @cli_util.wrap_exceptions def get_cloud_vm_cluster_update(ctx, from_json, cloud_vm_cluster_id, update_id): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') - if isinstance(update_id, six.string_types) and len(update_id.strip()) == 0: + if isinstance(update_id, str) and len(update_id.strip()) == 0: raise click.UsageError('Parameter --update-id cannot be whitespace or empty string') kwargs = {} @@ -22981,10 +22980,10 @@ def get_cloud_vm_cluster_update(ctx, from_json, cloud_vm_cluster_id, update_id): @cli_util.wrap_exceptions def get_cloud_vm_cluster_update_history_entry(ctx, from_json, cloud_vm_cluster_id, update_history_entry_id): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') - if isinstance(update_history_entry_id, six.string_types) and len(update_history_entry_id.strip()) == 0: + if isinstance(update_history_entry_id, str) and len(update_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --update-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -23008,10 +23007,10 @@ def get_cloud_vm_cluster_update_history_entry(ctx, from_json, cloud_vm_cluster_i @cli_util.wrap_exceptions def get_console_connection(ctx, from_json, db_node_id, console_connection_id): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') - if isinstance(console_connection_id, six.string_types) and len(console_connection_id.strip()) == 0: + if isinstance(console_connection_id, str) and len(console_connection_id.strip()) == 0: raise click.UsageError('Parameter --console-connection-id cannot be whitespace or empty string') kwargs = {} @@ -23034,10 +23033,10 @@ def get_console_connection(ctx, from_json, db_node_id, console_connection_id): @cli_util.wrap_exceptions def get_console_history(ctx, from_json, db_node_id, console_history_id): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') - if isinstance(console_history_id, six.string_types) and len(console_history_id.strip()) == 0: + if isinstance(console_history_id, str) and len(console_history_id.strip()) == 0: raise click.UsageError('Parameter --console-history-id cannot be whitespace or empty string') kwargs = {} @@ -23062,10 +23061,10 @@ def get_console_history(ctx, from_json, db_node_id, console_history_id): @cli_util.wrap_exceptions def get_console_history_content(ctx, from_json, file, db_node_id, console_history_id): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') - if isinstance(console_history_id, six.string_types) and len(console_history_id.strip()) == 0: + if isinstance(console_history_id, str) and len(console_history_id.strip()) == 0: raise click.UsageError('Parameter --console-history-id cannot be whitespace or empty string') kwargs = {} @@ -23111,10 +23110,10 @@ def get_console_history_content(ctx, from_json, file, db_node_id, console_histor @cli_util.wrap_exceptions def get_data_guard_association(ctx, from_json, database_id, data_guard_association_id): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -23136,7 +23135,7 @@ def get_data_guard_association(ctx, from_json, database_id, data_guard_associati @cli_util.wrap_exceptions def get_database(ctx, from_json, database_id): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -23157,7 +23156,7 @@ def get_database(ctx, from_json, database_id): @cli_util.wrap_exceptions def get_database_software_image(ctx, from_json, database_software_image_id): - if isinstance(database_software_image_id, six.string_types) and len(database_software_image_id.strip()) == 0: + if isinstance(database_software_image_id, str) and len(database_software_image_id.strip()) == 0: raise click.UsageError('Parameter --database-software-image-id cannot be whitespace or empty string') kwargs = {} @@ -23179,10 +23178,10 @@ def get_database_software_image(ctx, from_json, database_software_image_id): @cli_util.wrap_exceptions def get_database_upgrade_history_entry(ctx, from_json, database_id, upgrade_history_entry_id): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(upgrade_history_entry_id, six.string_types) and len(upgrade_history_entry_id.strip()) == 0: + if isinstance(upgrade_history_entry_id, str) and len(upgrade_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --upgrade-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -23205,7 +23204,7 @@ def get_database_upgrade_history_entry(ctx, from_json, database_id, upgrade_hist @cli_util.wrap_exceptions def get_db_connection_bundle(ctx, from_json, db_connection_bundle_id): - if isinstance(db_connection_bundle_id, six.string_types) and len(db_connection_bundle_id.strip()) == 0: + if isinstance(db_connection_bundle_id, str) and len(db_connection_bundle_id.strip()) == 0: raise click.UsageError('Parameter --db-connection-bundle-id cannot be whitespace or empty string') kwargs = {} @@ -23227,7 +23226,7 @@ def get_db_connection_bundle(ctx, from_json, db_connection_bundle_id): @cli_util.wrap_exceptions def get_db_home(ctx, from_json, db_home_id): - if isinstance(db_home_id, six.string_types) and len(db_home_id.strip()) == 0: + if isinstance(db_home_id, str) and len(db_home_id.strip()) == 0: raise click.UsageError('Parameter --db-home-id cannot be whitespace or empty string') kwargs = {} @@ -23249,10 +23248,10 @@ def get_db_home(ctx, from_json, db_home_id): @cli_util.wrap_exceptions def get_db_home_patch(ctx, from_json, db_home_id, patch_id): - if isinstance(db_home_id, six.string_types) and len(db_home_id.strip()) == 0: + if isinstance(db_home_id, str) and len(db_home_id.strip()) == 0: raise click.UsageError('Parameter --db-home-id cannot be whitespace or empty string') - if isinstance(patch_id, six.string_types) and len(patch_id.strip()) == 0: + if isinstance(patch_id, str) and len(patch_id.strip()) == 0: raise click.UsageError('Parameter --patch-id cannot be whitespace or empty string') kwargs = {} @@ -23275,10 +23274,10 @@ def get_db_home_patch(ctx, from_json, db_home_id, patch_id): @cli_util.wrap_exceptions def get_db_home_patch_history_entry(ctx, from_json, db_home_id, patch_history_entry_id): - if isinstance(db_home_id, six.string_types) and len(db_home_id.strip()) == 0: + if isinstance(db_home_id, str) and len(db_home_id.strip()) == 0: raise click.UsageError('Parameter --db-home-id cannot be whitespace or empty string') - if isinstance(patch_history_entry_id, six.string_types) and len(patch_history_entry_id.strip()) == 0: + if isinstance(patch_history_entry_id, str) and len(patch_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --patch-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -23300,7 +23299,7 @@ def get_db_home_patch_history_entry(ctx, from_json, db_home_id, patch_history_en @cli_util.wrap_exceptions def get_db_node(ctx, from_json, db_node_id): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') kwargs = {} @@ -23322,7 +23321,7 @@ def get_db_node(ctx, from_json, db_node_id): @cli_util.wrap_exceptions def get_db_server(ctx, from_json, exadata_infrastructure_id, db_server_id): - if isinstance(db_server_id, six.string_types) and len(db_server_id.strip()) == 0: + if isinstance(db_server_id, str) and len(db_server_id.strip()) == 0: raise click.UsageError('Parameter --db-server-id cannot be whitespace or empty string') kwargs = {} @@ -23349,7 +23348,7 @@ def get_db_server(ctx, from_json, exadata_infrastructure_id, db_server_id): @cli_util.wrap_exceptions def get_db_system(ctx, from_json, db_system_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -23371,10 +23370,10 @@ def get_db_system(ctx, from_json, db_system_id): @cli_util.wrap_exceptions def get_db_system_os_patch_history_entry(ctx, from_json, db_system_id, os_patch_history_entry_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') - if isinstance(os_patch_history_entry_id, six.string_types) and len(os_patch_history_entry_id.strip()) == 0: + if isinstance(os_patch_history_entry_id, str) and len(os_patch_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --os-patch-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -23398,10 +23397,10 @@ def get_db_system_os_patch_history_entry(ctx, from_json, db_system_id, os_patch_ @cli_util.wrap_exceptions def get_db_system_patch(ctx, from_json, db_system_id, patch_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') - if isinstance(patch_id, six.string_types) and len(patch_id.strip()) == 0: + if isinstance(patch_id, str) and len(patch_id.strip()) == 0: raise click.UsageError('Parameter --patch-id cannot be whitespace or empty string') kwargs = {} @@ -23424,10 +23423,10 @@ def get_db_system_patch(ctx, from_json, db_system_id, patch_id): @cli_util.wrap_exceptions def get_db_system_patch_history_entry(ctx, from_json, db_system_id, patch_history_entry_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') - if isinstance(patch_history_entry_id, six.string_types) and len(patch_history_entry_id.strip()) == 0: + if isinstance(patch_history_entry_id, str) and len(patch_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --patch-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -23450,10 +23449,10 @@ def get_db_system_patch_history_entry(ctx, from_json, db_system_id, patch_histor @cli_util.wrap_exceptions def get_db_system_upgrade_history_entry(ctx, from_json, db_system_id, upgrade_history_entry_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') - if isinstance(upgrade_history_entry_id, six.string_types) and len(upgrade_history_entry_id.strip()) == 0: + if isinstance(upgrade_history_entry_id, str) and len(upgrade_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --upgrade-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -23476,7 +23475,7 @@ def get_db_system_upgrade_history_entry(ctx, from_json, db_system_id, upgrade_hi @cli_util.wrap_exceptions def get_dbnode_snapshot(ctx, from_json, dbnode_snapshot_id): - if isinstance(dbnode_snapshot_id, six.string_types) and len(dbnode_snapshot_id.strip()) == 0: + if isinstance(dbnode_snapshot_id, str) and len(dbnode_snapshot_id.strip()) == 0: raise click.UsageError('Parameter --dbnode-snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -23499,7 +23498,7 @@ def get_dbnode_snapshot(ctx, from_json, dbnode_snapshot_id): @cli_util.wrap_exceptions def get_exadata_infrastructure(ctx, from_json, exadata_infrastructure_id, excluded_fields): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -23523,7 +23522,7 @@ def get_exadata_infrastructure(ctx, from_json, exadata_infrastructure_id, exclud @cli_util.wrap_exceptions def get_exadata_infrastructure_ocpus(ctx, from_json, autonomous_exadata_infrastructure_id): - if isinstance(autonomous_exadata_infrastructure_id, six.string_types) and len(autonomous_exadata_infrastructure_id.strip()) == 0: + if isinstance(autonomous_exadata_infrastructure_id, str) and len(autonomous_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -23546,7 +23545,7 @@ def get_exadata_infrastructure_ocpus(ctx, from_json, autonomous_exadata_infrastr @cli_util.wrap_exceptions def get_exadata_infrastructure_un_allocated_resources(ctx, from_json, exadata_infrastructure_id, db_servers): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -23576,7 +23575,7 @@ def get_exadata_infrastructure_un_allocated_resources(ctx, from_json, exadata_in @cli_util.wrap_exceptions def get_exadata_iorm_config(ctx, from_json, db_system_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -23598,7 +23597,7 @@ def get_exadata_iorm_config(ctx, from_json, db_system_id): @cli_util.wrap_exceptions def get_exadb_vm_cluster(ctx, from_json, exadb_vm_cluster_id): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -23621,10 +23620,10 @@ def get_exadb_vm_cluster(ctx, from_json, exadb_vm_cluster_id): @cli_util.wrap_exceptions def get_exadb_vm_cluster_update(ctx, from_json, exadb_vm_cluster_id, update_id): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') - if isinstance(update_id, six.string_types) and len(update_id.strip()) == 0: + if isinstance(update_id, str) and len(update_id.strip()) == 0: raise click.UsageError('Parameter --update-id cannot be whitespace or empty string') kwargs = {} @@ -23648,10 +23647,10 @@ def get_exadb_vm_cluster_update(ctx, from_json, exadb_vm_cluster_id, update_id): @cli_util.wrap_exceptions def get_exadb_vm_cluster_update_history_entry(ctx, from_json, exadb_vm_cluster_id, update_history_entry_id): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') - if isinstance(update_history_entry_id, six.string_types) and len(update_history_entry_id.strip()) == 0: + if isinstance(update_history_entry_id, str) and len(update_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --update-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -23674,7 +23673,7 @@ def get_exadb_vm_cluster_update_history_entry(ctx, from_json, exadb_vm_cluster_i @cli_util.wrap_exceptions def get_exascale_db_storage_vault(ctx, from_json, exascale_db_storage_vault_id): - if isinstance(exascale_db_storage_vault_id, six.string_types) and len(exascale_db_storage_vault_id.strip()) == 0: + if isinstance(exascale_db_storage_vault_id, str) and len(exascale_db_storage_vault_id.strip()) == 0: raise click.UsageError('Parameter --exascale-db-storage-vault-id cannot be whitespace or empty string') kwargs = {} @@ -23696,7 +23695,7 @@ def get_exascale_db_storage_vault(ctx, from_json, exascale_db_storage_vault_id): @cli_util.wrap_exceptions def get_execution_action(ctx, from_json, execution_action_id): - if isinstance(execution_action_id, six.string_types) and len(execution_action_id.strip()) == 0: + if isinstance(execution_action_id, str) and len(execution_action_id.strip()) == 0: raise click.UsageError('Parameter --execution-action-id cannot be whitespace or empty string') kwargs = {} @@ -23718,7 +23717,7 @@ def get_execution_action(ctx, from_json, execution_action_id): @cli_util.wrap_exceptions def get_execution_window(ctx, from_json, execution_window_id): - if isinstance(execution_window_id, six.string_types) and len(execution_window_id.strip()) == 0: + if isinstance(execution_window_id, str) and len(execution_window_id.strip()) == 0: raise click.UsageError('Parameter --execution-window-id cannot be whitespace or empty string') kwargs = {} @@ -23742,7 +23741,7 @@ def get_execution_window(ctx, from_json, execution_window_id): @cli_util.wrap_exceptions def get_external_backup_job(ctx, from_json, backup_id): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -23763,7 +23762,7 @@ def get_external_backup_job(ctx, from_json, backup_id): @cli_util.wrap_exceptions def get_external_container_database(ctx, from_json, external_container_database_id): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -23785,7 +23784,7 @@ def get_external_container_database(ctx, from_json, external_container_database_ @cli_util.wrap_exceptions def get_external_database_connector(ctx, from_json, external_database_connector_id): - if isinstance(external_database_connector_id, six.string_types) and len(external_database_connector_id.strip()) == 0: + if isinstance(external_database_connector_id, str) and len(external_database_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-database-connector-id cannot be whitespace or empty string') kwargs = {} @@ -23807,7 +23806,7 @@ def get_external_database_connector(ctx, from_json, external_database_connector_ @cli_util.wrap_exceptions def get_external_non_container_database(ctx, from_json, external_non_container_database_id): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -23829,7 +23828,7 @@ def get_external_non_container_database(ctx, from_json, external_non_container_d @cli_util.wrap_exceptions def get_external_pluggable_database(ctx, from_json, external_pluggable_database_id): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -23876,7 +23875,7 @@ def get_infrastructure_target_versions(ctx, from_json, compartment_id, target_re @cli_util.wrap_exceptions def get_key_store(ctx, from_json, key_store_id): - if isinstance(key_store_id, six.string_types) and len(key_store_id.strip()) == 0: + if isinstance(key_store_id, str) and len(key_store_id.strip()) == 0: raise click.UsageError('Parameter --key-store-id cannot be whitespace or empty string') kwargs = {} @@ -23898,7 +23897,7 @@ def get_key_store(ctx, from_json, key_store_id): @cli_util.wrap_exceptions def get_maintenance_run(ctx, from_json, maintenance_run_id): - if isinstance(maintenance_run_id, six.string_types) and len(maintenance_run_id.strip()) == 0: + if isinstance(maintenance_run_id, str) and len(maintenance_run_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-run-id cannot be whitespace or empty string') kwargs = {} @@ -23919,7 +23918,7 @@ def get_maintenance_run(ctx, from_json, maintenance_run_id): @cli_util.wrap_exceptions def get_maintenance_run_history(ctx, from_json, maintenance_run_history_id): - if isinstance(maintenance_run_history_id, six.string_types) and len(maintenance_run_history_id.strip()) == 0: + if isinstance(maintenance_run_history_id, str) and len(maintenance_run_history_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-run-history-id cannot be whitespace or empty string') kwargs = {} @@ -23940,7 +23939,7 @@ def get_maintenance_run_history(ctx, from_json, maintenance_run_history_id): @cli_util.wrap_exceptions def get_oneoff_patch(ctx, from_json, oneoff_patch_id): - if isinstance(oneoff_patch_id, six.string_types) and len(oneoff_patch_id.strip()) == 0: + if isinstance(oneoff_patch_id, str) and len(oneoff_patch_id.strip()) == 0: raise click.UsageError('Parameter --oneoff-patch-id cannot be whitespace or empty string') kwargs = {} @@ -23963,10 +23962,10 @@ def get_oneoff_patch(ctx, from_json, oneoff_patch_id): @cli_util.wrap_exceptions def get_pdb_conversion_history_entry(ctx, from_json, database_id, pdb_conversion_history_entry_id): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(pdb_conversion_history_entry_id, six.string_types) and len(pdb_conversion_history_entry_id.strip()) == 0: + if isinstance(pdb_conversion_history_entry_id, str) and len(pdb_conversion_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --pdb-conversion-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -23989,7 +23988,7 @@ def get_pdb_conversion_history_entry(ctx, from_json, database_id, pdb_conversion @cli_util.wrap_exceptions def get_pluggable_database(ctx, from_json, pluggable_database_id): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -24010,7 +24009,7 @@ def get_pluggable_database(ctx, from_json, pluggable_database_id): @cli_util.wrap_exceptions def get_pluggable_database_snapshot(ctx, from_json, pluggable_database_snapshot_id): - if isinstance(pluggable_database_snapshot_id, six.string_types) and len(pluggable_database_snapshot_id.strip()) == 0: + if isinstance(pluggable_database_snapshot_id, str) and len(pluggable_database_snapshot_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -24032,7 +24031,7 @@ def get_pluggable_database_snapshot(ctx, from_json, pluggable_database_snapshot_ @cli_util.wrap_exceptions def get_scheduled_action(ctx, from_json, scheduled_action_id): - if isinstance(scheduled_action_id, six.string_types) and len(scheduled_action_id.strip()) == 0: + if isinstance(scheduled_action_id, str) and len(scheduled_action_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-action-id cannot be whitespace or empty string') kwargs = {} @@ -24054,7 +24053,7 @@ def get_scheduled_action(ctx, from_json, scheduled_action_id): @cli_util.wrap_exceptions def get_scheduling_plan(ctx, from_json, scheduling_plan_id): - if isinstance(scheduling_plan_id, six.string_types) and len(scheduling_plan_id.strip()) == 0: + if isinstance(scheduling_plan_id, str) and len(scheduling_plan_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-plan-id cannot be whitespace or empty string') kwargs = {} @@ -24076,7 +24075,7 @@ def get_scheduling_plan(ctx, from_json, scheduling_plan_id): @cli_util.wrap_exceptions def get_scheduling_policy(ctx, from_json, scheduling_policy_id): - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') kwargs = {} @@ -24099,10 +24098,10 @@ def get_scheduling_policy(ctx, from_json, scheduling_policy_id): @cli_util.wrap_exceptions def get_scheduling_window(ctx, from_json, scheduling_policy_id, scheduling_window_id): - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') - if isinstance(scheduling_window_id, six.string_types) and len(scheduling_window_id.strip()) == 0: + if isinstance(scheduling_window_id, str) and len(scheduling_window_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-window-id cannot be whitespace or empty string') kwargs = {} @@ -24125,7 +24124,7 @@ def get_scheduling_window(ctx, from_json, scheduling_policy_id, scheduling_windo @cli_util.wrap_exceptions def get_vm_cluster(ctx, from_json, vm_cluster_id): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -24148,10 +24147,10 @@ def get_vm_cluster(ctx, from_json, vm_cluster_id): @cli_util.wrap_exceptions def get_vm_cluster_network(ctx, from_json, exadata_infrastructure_id, vm_cluster_network_id): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -24175,10 +24174,10 @@ def get_vm_cluster_network(ctx, from_json, exadata_infrastructure_id, vm_cluster @cli_util.wrap_exceptions def get_vm_cluster_patch(ctx, from_json, vm_cluster_id, patch_id): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') - if isinstance(patch_id, six.string_types) and len(patch_id.strip()) == 0: + if isinstance(patch_id, str) and len(patch_id.strip()) == 0: raise click.UsageError('Parameter --patch-id cannot be whitespace or empty string') kwargs = {} @@ -24201,10 +24200,10 @@ def get_vm_cluster_patch(ctx, from_json, vm_cluster_id, patch_id): @cli_util.wrap_exceptions def get_vm_cluster_patch_history_entry(ctx, from_json, vm_cluster_id, patch_history_entry_id): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') - if isinstance(patch_history_entry_id, six.string_types) and len(patch_history_entry_id.strip()) == 0: + if isinstance(patch_history_entry_id, str) and len(patch_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --patch-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -24227,10 +24226,10 @@ def get_vm_cluster_patch_history_entry(ctx, from_json, vm_cluster_id, patch_hist @cli_util.wrap_exceptions def get_vm_cluster_update(ctx, from_json, vm_cluster_id, update_id): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') - if isinstance(update_id, six.string_types) and len(update_id.strip()) == 0: + if isinstance(update_id, str) and len(update_id.strip()) == 0: raise click.UsageError('Parameter --update-id cannot be whitespace or empty string') kwargs = {} @@ -24254,10 +24253,10 @@ def get_vm_cluster_update(ctx, from_json, vm_cluster_id, update_id): @cli_util.wrap_exceptions def get_vm_cluster_update_history_entry(ctx, from_json, vm_cluster_id, update_history_entry_id): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') - if isinstance(update_history_entry_id, six.string_types) and len(update_history_entry_id.strip()) == 0: + if isinstance(update_history_entry_id, str) and len(update_history_entry_id.strip()) == 0: raise click.UsageError('Parameter --update-history-entry-id cannot be whitespace or empty string') kwargs = {} @@ -24286,7 +24285,7 @@ def get_vm_cluster_update_history_entry(ctx, from_json, vm_cluster_id, update_hi @cli_util.wrap_exceptions def import_transportable_tablespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, tts_bundle_url, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -25932,7 +25931,7 @@ def list_autonomous_container_database_dataguard_associations(ctx, from_json, al if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -26232,7 +26231,7 @@ def list_autonomous_database_clones(ctx, from_json, all_pages, page_size, compar if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -26296,7 +26295,7 @@ def list_autonomous_database_dataguard_associations(ctx, from_json, all_pages, p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -26346,7 +26345,7 @@ def list_autonomous_database_peers(ctx, from_json, all_pages, page_size, autonom if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -26397,7 +26396,7 @@ def list_autonomous_database_refreshable_clones(ctx, from_json, all_pages, page_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -26943,7 +26942,7 @@ def list_autonomous_vm_cluster_acd_resource_usage(ctx, from_json, all_pages, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_vm_cluster_id, six.string_types) and len(autonomous_vm_cluster_id.strip()) == 0: + if isinstance(autonomous_vm_cluster_id, str) and len(autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -27059,7 +27058,7 @@ def list_available_maintenance_windows(ctx, from_json, all_pages, page_size, aut if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -27233,7 +27232,7 @@ def list_basecc_vm_cluster_update_history_entries(ctx, from_json, all_pages, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(basecc_vm_cluster_id, six.string_types) and len(basecc_vm_cluster_id.strip()) == 0: + if isinstance(basecc_vm_cluster_id, str) and len(basecc_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --basecc-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -27290,7 +27289,7 @@ def list_basecc_vm_cluster_updates(ctx, from_json, all_pages, page_size, basecc_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(basecc_vm_cluster_id, six.string_types) and len(basecc_vm_cluster_id.strip()) == 0: + if isinstance(basecc_vm_cluster_id, str) and len(basecc_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --basecc-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -27417,7 +27416,7 @@ def list_cloud_autonomous_vm_cluster_acd_resource_usage(ctx, from_json, all_page if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -27602,7 +27601,7 @@ def list_cloud_vm_cluster_update_history_entries(ctx, from_json, all_pages, page if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -27656,7 +27655,7 @@ def list_cloud_vm_cluster_updates(ctx, from_json, all_pages, page_size, cloud_vm if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -27769,7 +27768,7 @@ def list_cloud_vm_clusters(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def list_console_connections(ctx, from_json, all_pages, db_node_id): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') kwargs = {} @@ -27801,7 +27800,7 @@ def list_console_histories(ctx, from_json, all_pages, page_size, db_node_id, lim if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') kwargs = {} @@ -27862,7 +27861,7 @@ def list_container_database_patches(ctx, from_json, all_pages, page_size, autono if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -27917,7 +27916,7 @@ def list_data_guard_associations(ctx, from_json, all_pages, page_size, database_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -28045,7 +28044,7 @@ def list_database_upgrade_history_entries(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -28241,7 +28240,7 @@ def list_db_home_patch_history_entries(ctx, from_json, all_pages, page_size, db_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_home_id, six.string_types) and len(db_home_id.strip()) == 0: + if isinstance(db_home_id, str) and len(db_home_id.strip()) == 0: raise click.UsageError('Parameter --db-home-id cannot be whitespace or empty string') kwargs = {} @@ -28291,7 +28290,7 @@ def list_db_home_patches(ctx, from_json, all_pages, page_size, db_home_id, limit if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_home_id, six.string_types) and len(db_home_id.strip()) == 0: + if isinstance(db_home_id, str) and len(db_home_id.strip()) == 0: raise click.UsageError('Parameter --db-home-id cannot be whitespace or empty string') kwargs = {} @@ -28569,7 +28568,7 @@ def list_db_system_os_patch_history_entries(ctx, from_json, all_pages, page_size if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -28628,7 +28627,7 @@ def list_db_system_patch_history_entries(ctx, from_json, all_pages, page_size, d if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -28678,7 +28677,7 @@ def list_db_system_patches(ctx, from_json, all_pages, page_size, db_system_id, l if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -28814,7 +28813,7 @@ def list_db_system_upgrade_history_entries(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -28873,7 +28872,7 @@ def list_db_system_upgrades(ctx, from_json, all_pages, page_size, db_system_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -29128,7 +29127,7 @@ def list_estimate_cost_savings(ctx, from_json, all_pages, page_size, is_cpu_auto if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -29246,7 +29245,7 @@ def list_exadb_vm_cluster_update_history_entries(ctx, from_json, all_pages, page if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -29301,7 +29300,7 @@ def list_exadb_vm_cluster_updates(ctx, from_json, all_pages, page_size, exadb_vm if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -29942,7 +29941,7 @@ def list_gi_version_minor_versions(ctx, from_json, all_pages, page_size, version if sort_by and not availability_domain and not all_pages: raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter') - if isinstance(version_parameterconflict, six.string_types) and len(version_parameterconflict.strip()) == 0: + if isinstance(version_parameterconflict, str) and len(version_parameterconflict.strip()) == 0: raise click.UsageError('Parameter --version-parameterconflict cannot be whitespace or empty string') kwargs = {} @@ -30387,7 +30386,7 @@ def list_pdb_conversion_history_entries(ctx, from_json, all_pages, page_size, da if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -30574,7 +30573,7 @@ def list_recommended_scheduled_actions(ctx, from_json, all_pages, page_size, sch if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') kwargs = {} @@ -30631,7 +30630,7 @@ def list_resource_pool_members(ctx, from_json, all_pages, page_size, autonomous_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -30891,7 +30890,7 @@ def list_scheduling_windows(ctx, from_json, all_pages, page_size, scheduling_pol if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') kwargs = {} @@ -30958,7 +30957,7 @@ def list_system_version_minor_versions(ctx, from_json, all_pages, page_size, maj if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(major_version, six.string_types) and len(major_version.strip()) == 0: + if isinstance(major_version, str) and len(major_version.strip()) == 0: raise click.UsageError('Parameter --major-version cannot be whitespace or empty string') kwargs = {} @@ -31092,7 +31091,7 @@ def list_vm_cluster_networks(ctx, from_json, all_pages, page_size, exadata_infra if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -31154,7 +31153,7 @@ def list_vm_cluster_patch_history_entries(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -31204,7 +31203,7 @@ def list_vm_cluster_patches(ctx, from_json, all_pages, page_size, vm_cluster_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -31256,7 +31255,7 @@ def list_vm_cluster_update_history_entries(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -31313,7 +31312,7 @@ def list_vm_cluster_updates(ctx, from_json, all_pages, page_size, vm_cluster_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -31435,7 +31434,7 @@ def list_vm_clusters(ctx, from_json, all_pages, page_size, compartment_id, exada @cli_util.wrap_exceptions def local_clone_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloned_pdb_name, pluggable_database_id, pdb_admin_password, target_tde_wallet_password, should_pdb_admin_account_be_locked, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -31501,10 +31500,10 @@ def local_clone_pluggable_database(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def migrate_autonomous_container_database_dataguard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') - if isinstance(autonomous_container_database_dataguard_association_id, six.string_types) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: + if isinstance(autonomous_container_database_dataguard_association_id, str) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-dataguard-association-id cannot be whitespace or empty string') kwargs = {} @@ -31559,10 +31558,10 @@ def migrate_autonomous_container_database_dataguard_association(ctx, from_json, @cli_util.wrap_exceptions def migrate_data_guard_association_to_multi_data_guards(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, data_guard_association_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -31611,7 +31610,7 @@ def migrate_data_guard_association_to_multi_data_guards(ctx, from_json, wait_for @cli_util.wrap_exceptions def migrate_exadata_db_system_resource_model(ctx, from_json, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -31644,7 +31643,7 @@ def migrate_exadata_db_system_resource_model(ctx, from_json, db_system_id, if_ma @cli_util.wrap_exceptions def migrate_vault_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, kms_key_id, kms_key_version_id, vault_id, tde_wallet_password, admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -31720,7 +31719,7 @@ def migrate_vault_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def modify_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, credential_details, private_end_point_id, management_type, service_name, protocol, port, ssl_secret_id, role, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -31806,7 +31805,7 @@ def modify_database_management(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def modify_pluggable_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, credential_details, private_end_point_id, service_name, protocol, port, ssl_secret_id, role, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -31882,7 +31881,7 @@ def modify_pluggable_database_management(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def mount_advanced_cluster_file_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, advanced_cluster_file_system_id, if_match): - if isinstance(advanced_cluster_file_system_id, six.string_types) and len(advanced_cluster_file_system_id.strip()) == 0: + if isinstance(advanced_cluster_file_system_id, str) and len(advanced_cluster_file_system_id.strip()) == 0: raise click.UsageError('Parameter --advanced-cluster-file-system-id cannot be whitespace or empty string') kwargs = {} @@ -31934,7 +31933,7 @@ def mount_advanced_cluster_file_system(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def mount_dbnode_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_node_id, dbnode_snapshot_id, if_match): - if isinstance(dbnode_snapshot_id, six.string_types) and len(dbnode_snapshot_id.strip()) == 0: + if isinstance(dbnode_snapshot_id, str) and len(dbnode_snapshot_id.strip()) == 0: raise click.UsageError('Parameter --dbnode-snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -31997,7 +31996,7 @@ def mount_dbnode_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def move_execution_action_member(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, execution_action_id, source_execution_action_id, execution_action_member_id, execution_action_member_count, freeform_tags, defined_tags, if_match): - if isinstance(execution_action_id, six.string_types) and len(execution_action_id.strip()) == 0: + if isinstance(execution_action_id, str) and len(execution_action_id.strip()) == 0: raise click.UsageError('Parameter --execution-action-id cannot be whitespace or empty string') kwargs = {} @@ -32067,7 +32066,7 @@ def move_execution_action_member(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def refresh_data_guard_health_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -32118,7 +32117,7 @@ def refresh_data_guard_health_status(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def refresh_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -32170,7 +32169,7 @@ def refresh_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def register_autonomous_database_data_safe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, pdb_admin_password, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -32239,7 +32238,7 @@ def register_autonomous_database_data_safe(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def register_cloud_autonomous_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_autonomous_vm_cluster_id, tde_key_store_type, if_match): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -32308,7 +32307,7 @@ def register_cloud_autonomous_vm_cluster_pkcs(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def register_cloud_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_vm_cluster_id, tde_key_store_type, if_match): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -32377,7 +32376,7 @@ def register_cloud_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def register_exadb_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadb_vm_cluster_id, tde_key_store_type, if_match): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -32445,7 +32444,7 @@ def register_exadb_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def reinstate_autonomous_container_database_dataguard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -32497,10 +32496,10 @@ def reinstate_autonomous_container_database_dataguard(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def reinstate_autonomous_container_database_dataguard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') - if isinstance(autonomous_container_database_dataguard_association_id, six.string_types) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: + if isinstance(autonomous_container_database_dataguard_association_id, str) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-dataguard-association-id cannot be whitespace or empty string') kwargs = {} @@ -32557,7 +32556,7 @@ def reinstate_autonomous_container_database_dataguard_association(ctx, from_json @cli_util.wrap_exceptions def reinstate_data_guard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, source_database_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -32616,10 +32615,10 @@ def reinstate_data_guard(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def reinstate_data_guard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, data_guard_association_id, database_admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -32681,7 +32680,7 @@ def reinstate_data_guard_association(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def remote_clone_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, target_container_database_id, source_container_db_admin_password, cloned_pdb_name, pluggable_database_id, pdb_admin_password, target_tde_wallet_password, should_pdb_admin_account_be_locked, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -32749,7 +32748,7 @@ def remote_clone_pluggable_database(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def remove_virtual_machine_from_cloud_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_servers, cloud_vm_cluster_id, if_match): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -32806,7 +32805,7 @@ def remove_virtual_machine_from_cloud_vm_cluster(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def remove_virtual_machine_from_exadb_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_nodes, exadb_vm_cluster_id, if_match): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -32863,7 +32862,7 @@ def remove_virtual_machine_from_exadb_vm_cluster(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def remove_virtual_machine_from_vm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_servers, vm_cluster_id, if_match): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -32926,7 +32925,7 @@ def remove_virtual_machine_from_vm_cluster(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def reorder_execution_actions(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, execution_window_id, execution_action_order_list, freeform_tags, defined_tags, if_match): - if isinstance(execution_window_id, six.string_types) and len(execution_window_id.strip()) == 0: + if isinstance(execution_window_id, str) and len(execution_window_id.strip()) == 0: raise click.UsageError('Parameter --execution-window-id cannot be whitespace or empty string') kwargs = {} @@ -32992,7 +32991,7 @@ def reorder_execution_actions(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def reorder_scheduled_actions(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduling_window_id, scheduled_action_id_orders, scheduling_plan_id, if_match): - if isinstance(scheduling_plan_id, six.string_types) and len(scheduling_plan_id.strip()) == 0: + if isinstance(scheduling_plan_id, str) and len(scheduling_plan_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-plan-id cannot be whitespace or empty string') kwargs = {} @@ -33049,7 +33048,7 @@ def reorder_scheduled_actions(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def reschedule_managed_db_software_update(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -33103,10 +33102,10 @@ def reschedule_managed_db_software_update(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def resize_vm_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, vm_cluster_network_id, action, vm_networks, if_match): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -33191,7 +33190,7 @@ def resource_pool_shapes(ctx, from_json, if_match, limit, page): @cli_util.wrap_exceptions def restart_autonomous_container_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, if_match, is_force_restart): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -33252,7 +33251,7 @@ def restart_autonomous_container_database(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def restart_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, is_online_restart, is_force_restart, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -33313,7 +33312,7 @@ def restart_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def restart_autonomous_vm_cluster_ords(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_vm_cluster_id, if_match): - if isinstance(autonomous_vm_cluster_id, six.string_types) and len(autonomous_vm_cluster_id.strip()) == 0: + if isinstance(autonomous_vm_cluster_id, str) and len(autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -33376,7 +33375,7 @@ def restart_autonomous_vm_cluster_ords(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def restart_cloud_autonomous_vm_cluster_ords(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_autonomous_vm_cluster_id, if_match): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -33443,7 +33442,7 @@ def restart_cloud_autonomous_vm_cluster_ords(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def restore_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, timestamp, database_scn, latest, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -33512,7 +33511,7 @@ def restore_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def restore_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_scn, timestamp, latest, pluggable_database_name, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -33579,7 +33578,7 @@ def restore_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def rotate_autonomous_container_database_encryption_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, if_match, key_version_id): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -33638,7 +33637,7 @@ def rotate_autonomous_container_database_encryption_key(ctx, from_json, wait_for @cli_util.wrap_exceptions def rotate_autonomous_database_encryption_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, key_version_id): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -33700,7 +33699,7 @@ def rotate_autonomous_database_encryption_key(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def rotate_autonomous_vm_cluster_ords_certs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_generation_type, autonomous_vm_cluster_id, certificate_id, certificate_authority_id, ca_bundle_id, if_match): - if isinstance(autonomous_vm_cluster_id, six.string_types) and len(autonomous_vm_cluster_id.strip()) == 0: + if isinstance(autonomous_vm_cluster_id, str) and len(autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -33781,7 +33780,7 @@ def rotate_autonomous_vm_cluster_ords_certs(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def rotate_autonomous_vm_cluster_ssl_certs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_generation_type, autonomous_vm_cluster_id, certificate_id, certificate_authority_id, ca_bundle_id, if_match): - if isinstance(autonomous_vm_cluster_id, six.string_types) and len(autonomous_vm_cluster_id.strip()) == 0: + if isinstance(autonomous_vm_cluster_id, str) and len(autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -33862,7 +33861,7 @@ def rotate_autonomous_vm_cluster_ssl_certs(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def rotate_cloud_autonomous_vm_cluster_ords_certs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_autonomous_vm_cluster_id, certificate_generation_type, certificate_id, certificate_authority_id, ca_bundle_id, if_match): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -33943,7 +33942,7 @@ def rotate_cloud_autonomous_vm_cluster_ords_certs(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def rotate_cloud_autonomous_vm_cluster_ssl_certs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_autonomous_vm_cluster_id, certificate_generation_type, certificate_id, certificate_authority_id, ca_bundle_id, if_match): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -34020,7 +34019,7 @@ def rotate_cloud_autonomous_vm_cluster_ssl_certs(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def rotate_ords_certs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_exadata_infrastructure_id, if_match): - if isinstance(autonomous_exadata_infrastructure_id, six.string_types) and len(autonomous_exadata_infrastructure_id.strip()) == 0: + if isinstance(autonomous_exadata_infrastructure_id, str) and len(autonomous_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -34083,7 +34082,7 @@ def rotate_ords_certs(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def rotate_pluggable_database_encryption_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -34146,7 +34145,7 @@ def rotate_pluggable_database_encryption_key(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def rotate_ssl_certs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_exadata_infrastructure_id, if_match): - if isinstance(autonomous_exadata_infrastructure_id, six.string_types) and len(autonomous_exadata_infrastructure_id.strip()) == 0: + if isinstance(autonomous_exadata_infrastructure_id, str) and len(autonomous_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -34209,7 +34208,7 @@ def rotate_ssl_certs(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def rotate_vault_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -34263,7 +34262,7 @@ def rotate_vault_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def run_data_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, pluggable_databases, data_patch_options, action, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -34323,7 +34322,7 @@ def run_data_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def saas_admin_user_status(ctx, from_json, autonomous_database_id): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -34349,7 +34348,7 @@ def saas_admin_user_status(ctx, from_json, autonomous_database_id): @cli_util.wrap_exceptions def scan_external_container_database_pluggable_databases(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, external_database_connector_id): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -34412,7 +34411,7 @@ def scan_external_container_database_pluggable_databases(ctx, from_json, wait_fo @cli_util.wrap_exceptions def set_db_key_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, provider, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -34469,7 +34468,7 @@ def set_db_key_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def set_db_key_version_oci_provider_set_key_version_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, kms_key_version_id, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -34528,7 +34527,7 @@ def set_db_key_version_oci_provider_set_key_version_details(ctx, from_json, wait @cli_util.wrap_exceptions def set_pdb_key_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, provider, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -34585,7 +34584,7 @@ def set_pdb_key_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def set_pdb_key_version_oci_provider_set_key_version_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, kms_key_version_id, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -34644,7 +34643,7 @@ def set_pdb_key_version_oci_provider_set_key_version_details(ctx, from_json, wai @cli_util.wrap_exceptions def shrink_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -34697,7 +34696,7 @@ def shrink_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def start_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -34749,7 +34748,7 @@ def start_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def start_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -34802,7 +34801,7 @@ def start_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def stop_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, is_force_stop, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -34862,7 +34861,7 @@ def stop_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def stop_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -34920,7 +34919,7 @@ def stop_pluggable_database(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def switch_over_data_guard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -34976,7 +34975,7 @@ def switch_over_data_guard(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def switchover_autonomous_container_database_dataguard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -35030,10 +35029,10 @@ def switchover_autonomous_container_database_dataguard(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def switchover_autonomous_container_database_dataguard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') - if isinstance(autonomous_container_database_dataguard_association_id, six.string_types) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: + if isinstance(autonomous_container_database_dataguard_association_id, str) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-dataguard-association-id cannot be whitespace or empty string') kwargs = {} @@ -35086,7 +35085,7 @@ def switchover_autonomous_container_database_dataguard_association(ctx, from_jso @cli_util.wrap_exceptions def switchover_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, if_match, peer_db_id, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -35145,10 +35144,10 @@ def switchover_autonomous_database(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def switchover_data_guard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, data_guard_association_id, database_admin_password, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -35205,7 +35204,7 @@ def switchover_data_guard_association(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def terminate_autonomous_container_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -35261,7 +35260,7 @@ def terminate_autonomous_container_database(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def terminate_autonomous_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_exadata_infrastructure_id, if_match): - if isinstance(autonomous_exadata_infrastructure_id, six.string_types) and len(autonomous_exadata_infrastructure_id.strip()) == 0: + if isinstance(autonomous_exadata_infrastructure_id, str) and len(autonomous_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -35321,7 +35320,7 @@ def terminate_autonomous_exadata_infrastructure(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def terminate_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -35376,7 +35375,7 @@ def terminate_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def unmount_advanced_cluster_file_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, advanced_cluster_file_system_id, if_match): - if isinstance(advanced_cluster_file_system_id, six.string_types) and len(advanced_cluster_file_system_id.strip()) == 0: + if isinstance(advanced_cluster_file_system_id, str) and len(advanced_cluster_file_system_id.strip()) == 0: raise click.UsageError('Parameter --advanced-cluster-file-system-id cannot be whitespace or empty string') kwargs = {} @@ -35428,7 +35427,7 @@ def unmount_advanced_cluster_file_system(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def unmount_dbnode_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_node_id, dbnode_snapshot_id, if_match): - if isinstance(dbnode_snapshot_id, six.string_types) and len(dbnode_snapshot_id.strip()) == 0: + if isinstance(dbnode_snapshot_id, str) and len(dbnode_snapshot_id.strip()) == 0: raise click.UsageError('Parameter --dbnode-snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -35485,7 +35484,7 @@ def unmount_dbnode_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def unregister_cloud_autonomous_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_autonomous_vm_cluster_id, tde_key_store_type, if_match): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -35554,7 +35553,7 @@ def unregister_cloud_autonomous_vm_cluster_pkcs(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def unregister_cloud_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_vm_cluster_id, tde_key_store_type, if_match): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -35623,7 +35622,7 @@ def unregister_cloud_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def unregister_exadb_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadb_vm_cluster_id, tde_key_store_type, if_match): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -35698,7 +35697,7 @@ def unregister_exadb_vm_cluster_pkcs(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_advanced_cluster_file_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, advanced_cluster_file_system_id, storage_in_gbs, vm_cluster_id, freeform_tags, defined_tags, if_match): - if isinstance(advanced_cluster_file_system_id, six.string_types) and len(advanced_cluster_file_system_id.strip()) == 0: + if isinstance(advanced_cluster_file_system_id, str) and len(advanced_cluster_file_system_id.strip()) == 0: raise click.UsageError('Parameter --advanced-cluster-file-system-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -35789,7 +35788,7 @@ def update_advanced_cluster_file_system(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_autonomous_container_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, display_name, customer_contacts, okv_end_point_group_name, patch_model, maintenance_window_details, standby_maintenance_buffer_in_days, version_preference, is_dst_file_update_enabled, freeform_tags, defined_tags, backup_config, db_split_threshold, vm_failover_reservation, distribution_affinity, net_services_architecture, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') if not force: if customer_contacts or maintenance_window_details or freeform_tags or defined_tags or backup_config: @@ -35896,10 +35895,10 @@ def update_autonomous_container_database(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_autonomous_container_database_dataguard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, is_automatic_failover_enabled, protection_mode, fast_start_fail_over_lag_limit_in_seconds, if_match): - if isinstance(autonomous_container_database_id, six.string_types) and len(autonomous_container_database_id.strip()) == 0: + if isinstance(autonomous_container_database_id, str) and len(autonomous_container_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-id cannot be whitespace or empty string') - if isinstance(autonomous_container_database_dataguard_association_id, six.string_types) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: + if isinstance(autonomous_container_database_dataguard_association_id, str) and len(autonomous_container_database_dataguard_association_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-container-database-dataguard-association-id cannot be whitespace or empty string') kwargs = {} @@ -36136,7 +36135,7 @@ def update_autonomous_container_database_dataguard_association(ctx, from_json, w @cli_util.wrap_exceptions def update_autonomous_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, backup_retention_period_in_days, compute_model, in_memory_percentage, local_adg_auto_failover_max_data_loss_limit, cpu_core_count, long_term_backup_schedule, is_dev_tier, compute_count, ocpu_count, data_storage_size_in_tbs, data_storage_size_in_gbs, display_name, is_free_tier, availability_domain, time_scheduled_ad_update, is_disable_ad_update_schedule, is_schedule_ad_update_to_earliest, admin_password, db_name, freeform_tags, defined_tags, security_attributes, db_workload, license_model, byol_compute_count_limit, is_access_control_enabled, whitelisted_ips, are_primary_whitelisted_ips_used, standby_whitelisted_ips, is_auto_scaling_enabled, is_refreshable_clone, refreshable_mode, is_local_data_guard_enabled, is_data_guard_enabled, peer_db_id, db_version, open_mode, permission_level, subnet_id, private_endpoint_label, private_endpoint_ip, nsg_ids, auto_refresh_frequency_in_seconds, auto_refresh_point_lag_in_seconds, time_of_auto_refresh_start, customer_contacts, is_mtls_connection_required, resource_pool_leader_id, resource_pool_summary, autonomous_maintenance_schedule_type, autonomous_database_maintenance_window, time_maintenance_pause_until, scheduled_maintenance_window, time_scheduled_maintenance_window_update, is_backup_retention_locked, time_scheduled_db_version_upgrade, is_disable_db_version_upgrade_schedule, is_schedule_db_version_upgrade_to_earliest, scheduled_operations, is_auto_scaling_for_storage_enabled, database_edition, db_tools_details, vanity_url_details, secret_id, secret_version_number, encryption_key, is_disconnect_peer, local_adg_resource_pool_leader_id, if_match, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') if not force: if long_term_backup_schedule or freeform_tags or defined_tags or security_attributes or whitelisted_ips or standby_whitelisted_ips or nsg_ids or customer_contacts or resource_pool_summary or autonomous_database_maintenance_window or scheduled_maintenance_window or scheduled_operations or db_tools_details or vanity_url_details or encryption_key: @@ -36403,7 +36402,7 @@ def update_autonomous_database(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_autonomous_database_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_backup_id, retention_period_in_days, if_match, opc_dry_run): - if isinstance(autonomous_database_backup_id, six.string_types) and len(autonomous_database_backup_id.strip()) == 0: + if isinstance(autonomous_database_backup_id, str) and len(autonomous_database_backup_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-backup-id cannot be whitespace or empty string') kwargs = {} @@ -36538,7 +36537,7 @@ def update_autonomous_database_regional_wallet(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def update_autonomous_database_software_image(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_software_image_id, freeform_tags, defined_tags, if_match): - if isinstance(autonomous_database_software_image_id, six.string_types) and len(autonomous_database_software_image_id.strip()) == 0: + if isinstance(autonomous_database_software_image_id, str) and len(autonomous_database_software_image_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-software-image-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -36605,7 +36604,7 @@ def update_autonomous_database_software_image(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_autonomous_database_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, should_rotate, grace_period, opc_dry_run): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -36686,7 +36685,7 @@ def update_autonomous_database_wallet(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_autonomous_exadata_infrastructure(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_exadata_infrastructure_id, display_name, maintenance_window_details, nsg_ids, freeform_tags, defined_tags, if_match): - if isinstance(autonomous_exadata_infrastructure_id, six.string_types) and len(autonomous_exadata_infrastructure_id.strip()) == 0: + if isinstance(autonomous_exadata_infrastructure_id, str) and len(autonomous_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-exadata-infrastructure-id cannot be whitespace or empty string') if not force: if maintenance_window_details or nsg_ids or freeform_tags or defined_tags: @@ -36774,7 +36773,7 @@ def update_autonomous_exadata_infrastructure(ctx, from_json, force, wait_for_sta @cli_util.wrap_exceptions def update_autonomous_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_vm_cluster_id, maintenance_window_details, license_model, freeform_tags, defined_tags, autonomous_data_storage_size_in_tbs, cpu_core_count_per_node, total_container_databases, time_zone, scan_listener_port_tls, scan_listener_port_non_tls, is_mtls_enabled, distribution_algorithm, if_match): - if isinstance(autonomous_vm_cluster_id, six.string_types) and len(autonomous_vm_cluster_id.strip()) == 0: + if isinstance(autonomous_vm_cluster_id, str) and len(autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-vm-cluster-id cannot be whitespace or empty string') if not force: if maintenance_window_details or freeform_tags or defined_tags: @@ -36871,7 +36870,7 @@ def update_autonomous_vm_cluster(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, retention_period_in_days, retention_period_in_years, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -36943,7 +36942,7 @@ def update_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def update_backup_destination(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_destination_id, vpc_users, connection_string, local_mount_point_path, nfs_mount_type, nfs_server, nfs_server_export, freeform_tags, defined_tags, if_match): - if isinstance(backup_destination_id, six.string_types) and len(backup_destination_id.strip()) == 0: + if isinstance(backup_destination_id, str) and len(backup_destination_id.strip()) == 0: raise click.UsageError('Parameter --backup-destination-id cannot be whitespace or empty string') if not force: if vpc_users or nfs_server or freeform_tags or defined_tags: @@ -37042,7 +37041,7 @@ def update_backup_destination(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_basecc_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, basecc_vm_cluster_id, cpu_core_count, memory_size_in_gbs, data_storage_size_in_gbs, reco_storage_size_in_gbs, license_model, ssh_public_keys, display_name, additional_vm_storage_size_in_gbs, update_details, freeform_tags, defined_tags, data_collection_options, cloud_automation_update_details, if_match): - if isinstance(basecc_vm_cluster_id, six.string_types) and len(basecc_vm_cluster_id.strip()) == 0: + if isinstance(basecc_vm_cluster_id, str) and len(basecc_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --basecc-vm-cluster-id cannot be whitespace or empty string') if not force: if ssh_public_keys or update_details or freeform_tags or defined_tags or data_collection_options or cloud_automation_update_details: @@ -37162,7 +37161,7 @@ def update_basecc_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_cloud_autonomous_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_autonomous_vm_cluster_id, description, display_name, maintenance_window_details, autonomous_data_storage_size_in_tbs, cpu_core_count_per_node, total_container_databases, license_model, nsg_ids, freeform_tags, defined_tags, cluster_time_zone, scan_listener_port_tls, scan_listener_port_non_tls, is_mtls_enabled_vm_cluster, distribution_algorithm, security_attributes, if_match, opc_dry_run): - if isinstance(cloud_autonomous_vm_cluster_id, six.string_types) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: + if isinstance(cloud_autonomous_vm_cluster_id, str) and len(cloud_autonomous_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-autonomous-vm-cluster-id cannot be whitespace or empty string') if not force: if maintenance_window_details or nsg_ids or freeform_tags or defined_tags or security_attributes: @@ -37284,7 +37283,7 @@ def update_cloud_autonomous_vm_cluster(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_cloud_exadata_infrastructure(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, display_name, maintenance_window, maintenance_version_preferences, compute_count, storage_count, freeform_tags, defined_tags, customer_contacts, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') if not force: if maintenance_window or maintenance_version_preferences or freeform_tags or defined_tags or customer_contacts: @@ -37411,7 +37410,7 @@ def update_cloud_exadata_infrastructure(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_cloud_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_vm_cluster_id, display_name, cpu_core_count, ocpu_count, memory_size_in_gbs, db_node_storage_size_in_gbs, data_storage_size_in_tbs, license_model, ssh_public_keys, update_details, nsg_ids, backup_network_nsg_ids, compute_nodes, storage_size_in_gbs, freeform_tags, defined_tags, security_attributes, data_collection_options, file_system_configuration_details, cloud_automation_update_details, vm_backup_storage_type, data_storage_percentage, reco_storage_percentage, sparse_storage_percentage, is_local_backup_enabled, is_sparse_diskgroup_enabled, if_match): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') if not force: if ssh_public_keys or update_details or nsg_ids or backup_network_nsg_ids or compute_nodes or freeform_tags or defined_tags or security_attributes or data_collection_options or file_system_configuration_details or cloud_automation_update_details: @@ -37547,7 +37546,7 @@ def update_cloud_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_cloud_vm_cluster_iorm_config(ctx, from_json, force, cloud_vm_cluster_id, objective, db_plans, if_match): - if isinstance(cloud_vm_cluster_id, six.string_types) and len(cloud_vm_cluster_id.strip()) == 0: + if isinstance(cloud_vm_cluster_id, str) and len(cloud_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-vm-cluster-id cannot be whitespace or empty string') if not force: if db_plans: @@ -37595,10 +37594,10 @@ def update_cloud_vm_cluster_iorm_config(ctx, from_json, force, cloud_vm_cluster_ @cli_util.wrap_exceptions def update_console_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_node_id, console_connection_id, freeform_tags, defined_tags, if_match): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') - if isinstance(console_connection_id, six.string_types) and len(console_connection_id.strip()) == 0: + if isinstance(console_connection_id, str) and len(console_connection_id.strip()) == 0: raise click.UsageError('Parameter --console-connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -37671,10 +37670,10 @@ def update_console_connection(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_console_history(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_node_id, console_history_id, freeform_tags, defined_tags, display_name, if_match): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') - if isinstance(console_history_id, six.string_types) and len(console_history_id.strip()) == 0: + if isinstance(console_history_id, str) and len(console_history_id.strip()) == 0: raise click.UsageError('Parameter --console-history-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -37755,7 +37754,7 @@ def update_console_history(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_data_guard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, database_admin_password, protection_mode, transport_type, is_active_data_guard_enabled, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -37841,10 +37840,10 @@ def update_data_guard(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_data_guard_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, data_guard_association_id, database_admin_password, protection_mode, transport_type, is_active_data_guard_enabled, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') - if isinstance(data_guard_association_id, six.string_types) and len(data_guard_association_id.strip()) == 0: + if isinstance(data_guard_association_id, str) and len(data_guard_association_id.strip()) == 0: raise click.UsageError('Parameter --data-guard-association-id cannot be whitespace or empty string') kwargs = {} @@ -37938,7 +37937,7 @@ def update_data_guard_association(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, db_backup_config, db_home_id, new_admin_password, old_tde_wallet_password, new_tde_wallet_password, storage_size_details, freeform_tags, defined_tags, managed_software_update_details, patch_options, database_admin_password, protection_mode, transport_type, is_active_data_guard_enabled, auto_failover_configuration, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') if not force: if db_backup_config or storage_size_details or freeform_tags or defined_tags or managed_software_update_details or patch_options or auto_failover_configuration: @@ -38047,7 +38046,7 @@ def update_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_database_software_image(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_software_image_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(database_software_image_id, six.string_types) and len(database_software_image_id.strip()) == 0: + if isinstance(database_software_image_id, str) and len(database_software_image_id.strip()) == 0: raise click.UsageError('Parameter --database-software-image-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -38121,7 +38120,7 @@ def update_database_software_image(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_db_home(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_home_id, db_version, one_off_patches, freeform_tags, defined_tags, if_match): - if isinstance(db_home_id, six.string_types) and len(db_home_id.strip()) == 0: + if isinstance(db_home_id, str) and len(db_home_id.strip()) == 0: raise click.UsageError('Parameter --db-home-id cannot be whitespace or empty string') if not force: if db_version or one_off_patches or freeform_tags or defined_tags: @@ -38196,7 +38195,7 @@ def update_db_home(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_db_node(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_node_id, freeform_tags, defined_tags, if_match): - if isinstance(db_node_id, six.string_types) and len(db_node_id.strip()) == 0: + if isinstance(db_node_id, str) and len(db_node_id.strip()) == 0: raise click.UsageError('Parameter --db-node-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -38287,7 +38286,7 @@ def update_db_node(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, cpu_core_count, version_parameterconflict, ssh_public_keys, data_storage_size_in_gbs, reco_storage_size_in_gbs, freeform_tags, defined_tags, security_attributes, shape, nsg_ids, backup_network_nsg_ids, license_model, maintenance_window_details, data_collection_options, compute_model, compute_count, if_match, opc_dry_run): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') if not force: if version_parameterconflict or ssh_public_keys or freeform_tags or defined_tags or security_attributes or nsg_ids or backup_network_nsg_ids or maintenance_window_details or data_collection_options: @@ -38422,7 +38421,7 @@ def update_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_exadata_infrastructure(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, cloud_control_plane_server1, cloud_control_plane_server2, netmask, gateway, admin_network_cidr, infini_band_network_cidr, corporate_proxy, contacts, maintenance_window, maintenance_version_preferences, additional_storage_count, is_multi_rack_deployment, multi_rack_configuration_file, additional_compute_count, additional_compute_system_model, dns_server, ntp_server, time_zone, is_cps_offline_report_enabled, network_bonding_mode_details, freeform_tags, defined_tags, if_match): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') if not force: if contacts or maintenance_window or maintenance_version_preferences or dns_server or ntp_server or network_bonding_mode_details or freeform_tags or defined_tags: @@ -38558,7 +38557,7 @@ def update_exadata_infrastructure(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_exadata_iorm_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, objective, db_plans, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') if not force: if db_plans: @@ -38644,7 +38643,7 @@ def update_exadata_iorm_config(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_exadb_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, exadb_vm_cluster_id, display_name, total_e_cpu_count, enabled_e_cpu_count, vm_file_system_storage, node_count, license_model, ssh_public_keys, nsg_ids, backup_network_nsg_ids, freeform_tags, defined_tags, security_attributes, data_collection_options, system_version, grid_image_id, update_action, if_match): - if isinstance(exadb_vm_cluster_id, six.string_types) and len(exadb_vm_cluster_id.strip()) == 0: + if isinstance(exadb_vm_cluster_id, str) and len(exadb_vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --exadb-vm-cluster-id cannot be whitespace or empty string') if not force: if vm_file_system_storage or ssh_public_keys or nsg_ids or backup_network_nsg_ids or freeform_tags or defined_tags or security_attributes or data_collection_options: @@ -38762,7 +38761,7 @@ def update_exadb_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_exascale_db_storage_vault(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, exascale_db_storage_vault_id, display_name, description, high_capacity_database_storage, additional_flash_cache_in_percent, freeform_tags, defined_tags, is_autoscale_enabled, autoscale_limit_in_gbs, if_match): - if isinstance(exascale_db_storage_vault_id, six.string_types) and len(exascale_db_storage_vault_id.strip()) == 0: + if isinstance(exascale_db_storage_vault_id, str) and len(exascale_db_storage_vault_id.strip()) == 0: raise click.UsageError('Parameter --exascale-db-storage-vault-id cannot be whitespace or empty string') if not force: if high_capacity_database_storage or freeform_tags or defined_tags: @@ -38855,7 +38854,7 @@ def update_exascale_db_storage_vault(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_execution_action(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, execution_action_id, execution_window_id, action_params, action_members, freeform_tags, defined_tags, if_match): - if isinstance(execution_action_id, six.string_types) and len(execution_action_id.strip()) == 0: + if isinstance(execution_action_id, str) and len(execution_action_id.strip()) == 0: raise click.UsageError('Parameter --execution-action-id cannot be whitespace or empty string') if not force: if action_params or action_members or freeform_tags or defined_tags: @@ -38937,7 +38936,7 @@ def update_execution_action(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_execution_window(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, execution_window_id, time_scheduled, window_duration_in_mins, is_enforced_duration, freeform_tags, defined_tags, if_match): - if isinstance(execution_window_id, six.string_types) and len(execution_window_id.strip()) == 0: + if isinstance(execution_window_id, str) and len(execution_window_id.strip()) == 0: raise click.UsageError('Parameter --execution-window-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -39017,7 +39016,7 @@ def update_execution_window(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_external_container_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -39090,7 +39089,7 @@ def update_external_container_database(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_external_database_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_database_connector_id, freeform_tags, defined_tags, display_name, connector_type, if_match): - if isinstance(external_database_connector_id, six.string_types) and len(external_database_connector_id.strip()) == 0: + if isinstance(external_database_connector_id, str) and len(external_database_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-database-connector-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -39169,7 +39168,7 @@ def update_external_database_connector(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_external_database_connector_update_external_macs_connector_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_database_connector_id, freeform_tags, defined_tags, display_name, connection_string, connection_credentials, if_match): - if isinstance(external_database_connector_id, six.string_types) and len(external_database_connector_id.strip()) == 0: + if isinstance(external_database_connector_id, str) and len(external_database_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-database-connector-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or connection_string or connection_credentials: @@ -39251,7 +39250,7 @@ def update_external_database_connector_update_external_macs_connector_details(ct @cli_util.wrap_exceptions def update_external_non_container_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -39323,7 +39322,7 @@ def update_external_non_container_database(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_external_pluggable_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -39395,7 +39394,7 @@ def update_external_pluggable_database(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_key_store(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, key_store_id, type_details, freeform_tags, defined_tags, if_match): - if isinstance(key_store_id, six.string_types) and len(key_store_id.strip()) == 0: + if isinstance(key_store_id, str) and len(key_store_id.strip()) == 0: raise click.UsageError('Parameter --key-store-id cannot be whitespace or empty string') if not force: if type_details or freeform_tags or defined_tags: @@ -39472,7 +39471,7 @@ def update_key_store(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_key_store_key_store_type_from_oracle_key_vault_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, key_store_id, type_details_connection_ips, type_details_admin_username, type_details_vault_id, type_details_secret_id, freeform_tags, defined_tags, if_match): - if isinstance(key_store_id, six.string_types) and len(key_store_id.strip()) == 0: + if isinstance(key_store_id, str) and len(key_store_id.strip()) == 0: raise click.UsageError('Parameter --key-store-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -39557,7 +39556,7 @@ def update_key_store_key_store_type_from_oracle_key_vault_details(ctx, from_json @cli_util.wrap_exceptions def update_maintenance_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_run_id, is_enabled, time_scheduled, is_patch_now_enabled, patch_id, patching_mode, is_custom_action_timeout_enabled, custom_action_timeout_in_mins, current_custom_action_timeout_in_mins, is_resume_patching, target_db_server_version, target_storage_server_version, if_match): - if isinstance(maintenance_run_id, six.string_types) and len(maintenance_run_id.strip()) == 0: + if isinstance(maintenance_run_id, str) and len(maintenance_run_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-run-id cannot be whitespace or empty string') kwargs = {} @@ -39649,7 +39648,7 @@ def update_maintenance_run(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_oneoff_patch(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oneoff_patch_id, freeform_tags, defined_tags, if_match): - if isinstance(oneoff_patch_id, six.string_types) and len(oneoff_patch_id.strip()) == 0: + if isinstance(oneoff_patch_id, str) and len(oneoff_patch_id.strip()) == 0: raise click.UsageError('Parameter --oneoff-patch-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -39719,7 +39718,7 @@ def update_oneoff_patch(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_pluggable_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, freeform_tags, defined_tags, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -39789,7 +39788,7 @@ def update_pluggable_database(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_scheduled_action(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduled_action_id, action_params, action_members, scheduling_window_id, if_match): - if isinstance(scheduled_action_id, six.string_types) and len(scheduled_action_id.strip()) == 0: + if isinstance(scheduled_action_id, str) and len(scheduled_action_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-action-id cannot be whitespace or empty string') if not force: if action_params or action_members: @@ -39865,7 +39864,7 @@ def update_scheduled_action(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_scheduling_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduling_policy_id, display_name, cadence, cadence_start_month, freeform_tags, defined_tags, if_match): - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') if not force: if cadence_start_month or freeform_tags or defined_tags: @@ -39946,10 +39945,10 @@ def update_scheduling_policy(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_scheduling_window(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduling_policy_id, scheduling_window_id, window_preference, freeform_tags, defined_tags, if_match): - if isinstance(scheduling_policy_id, six.string_types) and len(scheduling_policy_id.strip()) == 0: + if isinstance(scheduling_policy_id, str) and len(scheduling_policy_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-policy-id cannot be whitespace or empty string') - if isinstance(scheduling_window_id, six.string_types) and len(scheduling_window_id.strip()) == 0: + if isinstance(scheduling_window_id, str) and len(scheduling_window_id.strip()) == 0: raise click.UsageError('Parameter --scheduling-window-id cannot be whitespace or empty string') if not force: if window_preference or freeform_tags or defined_tags: @@ -40044,7 +40043,7 @@ def update_scheduling_window(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_cluster_id, cpu_core_count, ocpu_count, memory_size_in_gbs, db_node_storage_size_in_gbs, data_storage_size_in_tbs, data_storage_size_in_gbs, data_storage_percentage, reco_storage_percentage, sparse_storage_percentage, is_local_backup_enabled, is_sparse_diskgroup_enabled, license_model, ssh_public_keys, version_parameterconflict, update_details, freeform_tags, defined_tags, data_collection_options, file_system_configuration_details, cloud_automation_update_details, vm_backup_storage_type, if_match): - if isinstance(vm_cluster_id, six.string_types) and len(vm_cluster_id.strip()) == 0: + if isinstance(vm_cluster_id, str) and len(vm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-id cannot be whitespace or empty string') if not force: if ssh_public_keys or version_parameterconflict or update_details or freeform_tags or defined_tags or data_collection_options or file_system_configuration_details or cloud_automation_update_details: @@ -40183,10 +40182,10 @@ def update_vm_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_vm_cluster_network(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, vm_cluster_network_id, scans, dns, ntp, vm_networks, dr_scans, freeform_tags, defined_tags, if_match): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') if not force: if scans or dns or ntp or vm_networks or dr_scans or freeform_tags or defined_tags: @@ -40269,7 +40268,7 @@ def update_vm_cluster_network(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def upgrade_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, action, database_upgrade_source_details, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -40331,7 +40330,7 @@ def upgrade_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def upgrade_database_database_upgrade_with_db_home_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, action, database_upgrade_source_details_db_home_id, if_match, database_upgrade_source_details_options): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -40397,7 +40396,7 @@ def upgrade_database_database_upgrade_with_db_home_details(ctx, from_json, wait_ @cli_util.wrap_exceptions def upgrade_database_database_upgrade_with_database_software_image_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, action, database_upgrade_source_details_database_software_image_id, if_match, database_upgrade_source_details_options): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -40465,7 +40464,7 @@ def upgrade_database_database_upgrade_with_database_software_image_details(ctx, @cli_util.wrap_exceptions def upgrade_database_database_upgrade_with_db_version_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, action, database_upgrade_source_details_db_version, if_match, database_upgrade_source_details_options): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -40533,7 +40532,7 @@ def upgrade_database_database_upgrade_with_db_version_details(ctx, from_json, wa @cli_util.wrap_exceptions def upgrade_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, action, snapshot_retention_period_in_days, new_gi_version, new_os_version, is_snapshot_retention_days_force_updated, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -40601,10 +40600,10 @@ def upgrade_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def validate_vm_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_infrastructure_id, vm_cluster_network_id): - if isinstance(exadata_infrastructure_id, six.string_types) and len(exadata_infrastructure_id.strip()) == 0: + if isinstance(exadata_infrastructure_id, str) and len(exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --exadata-infrastructure-id cannot be whitespace or empty string') - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/database_management/src/oci_cli_db_management/dbmanagement_cli_extended.py b/services/database_management/src/oci_cli_db_management/dbmanagement_cli_extended.py index 008bd191d..c93c4a66c 100644 --- a/services/database_management/src/oci_cli_db_management/dbmanagement_cli_extended.py +++ b/services/database_management/src/oci_cli_db_management/dbmanagement_cli_extended.py @@ -4,7 +4,6 @@ import click # noqa: F401 import json # noqa: F401 -import six from services.database_management.src.oci_cli_db_management.generated import dbmanagement_cli from services.database_management.src.oci_cli_database_management.generated import database_management_service_cli from oci_cli import cli_util # noqa: F401 @@ -54,10 +53,10 @@ @cli_util.wrap_exceptions def get_awr_db_report(ctx, from_json, managed_database_id, awr_db_id, inst_nums, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, report_type, container_id, report_format): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/database_management/src/oci_cli_db_management/generated/dbmanagement_cli.py b/services/database_management/src/oci_cli_db_management/generated/dbmanagement_cli.py index 27d2552e6..4262ea247 100644 --- a/services/database_management/src/oci_cli_db_management/generated/dbmanagement_cli.py +++ b/services/database_management/src/oci_cli_db_management/generated/dbmanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -482,10 +481,10 @@ def preferred_credential_group(): @cli_util.wrap_exceptions def add_data_files(ctx, from_json, managed_database_id, tablespace_name, file_type, credential_details, database_credential, data_files, file_count, file_size, is_reusable, is_auto_extensible, auto_extend_next_size, auto_extend_max_size, is_max_size_unlimited): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -544,7 +543,7 @@ def add_data_files(ctx, from_json, managed_database_id, tablespace_name, file_ty @cli_util.wrap_exceptions def add_managed_database_to_managed_database_group(ctx, from_json, managed_database_group_id, managed_database_id): - if isinstance(managed_database_group_id, six.string_types) and len(managed_database_group_id.strip()) == 0: + if isinstance(managed_database_group_id, str) and len(managed_database_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-group-id cannot be whitespace or empty string') kwargs = {} @@ -578,7 +577,7 @@ def add_managed_database_to_managed_database_group(ctx, from_json, managed_datab @cli_util.wrap_exceptions def addm_tasks(ctx, from_json, managed_database_id, time_start, time_end, page, limit, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -617,7 +616,7 @@ def addm_tasks(ctx, from_json, managed_database_id, time_start, time_end, page, @cli_util.wrap_exceptions def change_cloud_exadata_infrastructure_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, compartment_id, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -683,7 +682,7 @@ def change_cloud_exadata_infrastructure_compartment(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def change_database_parameters(ctx, from_json, managed_database_id, scope, parameters, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -729,7 +728,7 @@ def change_database_parameters(ctx, from_json, managed_database_id, scope, param @cli_util.wrap_exceptions def change_database_parameters_database_secret_credential_details(ctx, from_json, managed_database_id, scope, parameters, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -780,7 +779,7 @@ def change_database_parameters_database_secret_credential_details(ctx, from_json @cli_util.wrap_exceptions def change_database_parameters_database_named_credential_details(ctx, from_json, managed_database_id, scope, parameters, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -827,7 +826,7 @@ def change_database_parameters_database_named_credential_details(ctx, from_json, @cli_util.wrap_exceptions def change_database_parameters_database_password_credential_details(ctx, from_json, managed_database_id, scope, parameters, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -870,7 +869,7 @@ def change_database_parameters_database_password_credential_details(ctx, from_js @cli_util.wrap_exceptions def change_db_management_private_endpoint_compartment(ctx, from_json, db_management_private_endpoint_id, compartment_id, if_match): - if isinstance(db_management_private_endpoint_id, six.string_types) and len(db_management_private_endpoint_id.strip()) == 0: + if isinstance(db_management_private_endpoint_id, str) and len(db_management_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --db-management-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -906,7 +905,7 @@ def change_db_management_private_endpoint_compartment(ctx, from_json, db_managem @cli_util.wrap_exceptions def change_external_db_system_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_id, compartment_id, if_match): - if isinstance(external_db_system_id, six.string_types) and len(external_db_system_id.strip()) == 0: + if isinstance(external_db_system_id, str) and len(external_db_system_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -967,7 +966,7 @@ def change_external_db_system_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_external_exadata_infrastructure_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_exadata_infrastructure_id, compartment_id, if_match): - if isinstance(external_exadata_infrastructure_id, six.string_types) and len(external_exadata_infrastructure_id.strip()) == 0: + if isinstance(external_exadata_infrastructure_id, str) and len(external_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -1025,7 +1024,7 @@ def change_external_exadata_infrastructure_compartment(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def change_job_compartment(ctx, from_json, job_id, compartment_id, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -1056,7 +1055,7 @@ def change_job_compartment(ctx, from_json, job_id, compartment_id, if_match): @cli_util.wrap_exceptions def change_managed_database_group_compartment(ctx, from_json, managed_database_group_id, compartment_id, if_match): - if isinstance(managed_database_group_id, six.string_types) and len(managed_database_group_id.strip()) == 0: + if isinstance(managed_database_group_id, str) and len(managed_database_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-group-id cannot be whitespace or empty string') kwargs = {} @@ -1087,7 +1086,7 @@ def change_managed_database_group_compartment(ctx, from_json, managed_database_g @cli_util.wrap_exceptions def change_named_credential_compartment(ctx, from_json, named_credential_id, compartment_id, if_match): - if isinstance(named_credential_id, six.string_types) and len(named_credential_id.strip()) == 0: + if isinstance(named_credential_id, str) and len(named_credential_id.strip()) == 0: raise click.UsageError('Parameter --named-credential-id cannot be whitespace or empty string') kwargs = {} @@ -1121,7 +1120,7 @@ def change_named_credential_compartment(ctx, from_json, named_credential_id, com @cli_util.wrap_exceptions def change_plan_retention(ctx, from_json, managed_database_id, retention_weeks, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1161,7 +1160,7 @@ def change_plan_retention(ctx, from_json, managed_database_id, retention_weeks, @cli_util.wrap_exceptions def change_plan_retention_managed_database_password_credential(ctx, from_json, managed_database_id, retention_weeks, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1204,7 +1203,7 @@ def change_plan_retention_managed_database_password_credential(ctx, from_json, m @cli_util.wrap_exceptions def change_plan_retention_managed_database_secret_credential(ctx, from_json, managed_database_id, retention_weeks, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1247,7 +1246,7 @@ def change_plan_retention_managed_database_secret_credential(ctx, from_json, man @cli_util.wrap_exceptions def change_plan_retention_database_secret_credential_details(ctx, from_json, managed_database_id, retention_weeks, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1292,7 +1291,7 @@ def change_plan_retention_database_secret_credential_details(ctx, from_json, man @cli_util.wrap_exceptions def change_plan_retention_database_named_credential_details(ctx, from_json, managed_database_id, retention_weeks, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1333,7 +1332,7 @@ def change_plan_retention_database_named_credential_details(ctx, from_json, mana @cli_util.wrap_exceptions def change_plan_retention_database_password_credential_details(ctx, from_json, managed_database_id, retention_weeks, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1376,7 +1375,7 @@ def change_plan_retention_database_password_credential_details(ctx, from_json, m @cli_util.wrap_exceptions def change_space_budget(ctx, from_json, managed_database_id, space_budget_percent, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1414,7 +1413,7 @@ def change_space_budget(ctx, from_json, managed_database_id, space_budget_percen @cli_util.wrap_exceptions def change_space_budget_managed_database_password_credential(ctx, from_json, managed_database_id, space_budget_percent, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1455,7 +1454,7 @@ def change_space_budget_managed_database_password_credential(ctx, from_json, man @cli_util.wrap_exceptions def change_space_budget_managed_database_secret_credential(ctx, from_json, managed_database_id, space_budget_percent, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1496,7 +1495,7 @@ def change_space_budget_managed_database_secret_credential(ctx, from_json, manag @cli_util.wrap_exceptions def change_space_budget_database_secret_credential_details(ctx, from_json, managed_database_id, space_budget_percent, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1539,7 +1538,7 @@ def change_space_budget_database_secret_credential_details(ctx, from_json, manag @cli_util.wrap_exceptions def change_space_budget_database_named_credential_details(ctx, from_json, managed_database_id, space_budget_percent, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1578,7 +1577,7 @@ def change_space_budget_database_named_credential_details(ctx, from_json, manage @cli_util.wrap_exceptions def change_space_budget_database_password_credential_details(ctx, from_json, managed_database_id, space_budget_percent, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1625,7 +1624,7 @@ def change_space_budget_database_password_credential_details(ctx, from_json, man @cli_util.wrap_exceptions def change_sql_plan_baselines_attributes(ctx, from_json, managed_database_id, sql_handle, plan_name, is_enabled, is_fixed, is_auto_purged, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1681,7 +1680,7 @@ def change_sql_plan_baselines_attributes(ctx, from_json, managed_database_id, sq @cli_util.wrap_exceptions def change_sql_plan_baselines_attributes_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, sql_handle, plan_name, is_enabled, is_fixed, is_auto_purged, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1740,7 +1739,7 @@ def change_sql_plan_baselines_attributes_managed_database_password_credential(ct @cli_util.wrap_exceptions def change_sql_plan_baselines_attributes_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, sql_handle, plan_name, is_enabled, is_fixed, is_auto_purged, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1799,7 +1798,7 @@ def change_sql_plan_baselines_attributes_managed_database_secret_credential(ctx, @cli_util.wrap_exceptions def change_sql_plan_baselines_attributes_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, sql_handle, plan_name, is_enabled, is_fixed, is_auto_purged, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1860,7 +1859,7 @@ def change_sql_plan_baselines_attributes_database_secret_credential_details(ctx, @cli_util.wrap_exceptions def change_sql_plan_baselines_attributes_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, sql_handle, plan_name, is_enabled, is_fixed, is_auto_purged, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1917,7 +1916,7 @@ def change_sql_plan_baselines_attributes_database_named_credential_details(ctx, @cli_util.wrap_exceptions def change_sql_plan_baselines_attributes_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, sql_handle, plan_name, is_enabled, is_fixed, is_auto_purged, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1975,7 +1974,7 @@ def change_sql_plan_baselines_attributes_database_password_credential_details(ct @cli_util.wrap_exceptions def check_cloud_db_system_connector_connection_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_connector_id, if_match): - if isinstance(cloud_db_system_connector_id, six.string_types) and len(cloud_db_system_connector_id.strip()) == 0: + if isinstance(cloud_db_system_connector_id, str) and len(cloud_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-connector-id cannot be whitespace or empty string') kwargs = {} @@ -2023,7 +2022,7 @@ def check_cloud_db_system_connector_connection_status(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def check_cloud_exadata_storage_connector(ctx, from_json, cloud_exadata_storage_connector_id, if_match): - if isinstance(cloud_exadata_storage_connector_id, six.string_types) and len(cloud_exadata_storage_connector_id.strip()) == 0: + if isinstance(cloud_exadata_storage_connector_id, str) and len(cloud_exadata_storage_connector_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-connector-id cannot be whitespace or empty string') kwargs = {} @@ -2051,7 +2050,7 @@ def check_cloud_exadata_storage_connector(ctx, from_json, cloud_exadata_storage_ @cli_util.wrap_exceptions def check_external_db_system_connector_connection_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_connector_id, if_match): - if isinstance(external_db_system_connector_id, six.string_types) and len(external_db_system_connector_id.strip()) == 0: + if isinstance(external_db_system_connector_id, str) and len(external_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-connector-id cannot be whitespace or empty string') kwargs = {} @@ -2099,7 +2098,7 @@ def check_external_db_system_connector_connection_status(ctx, from_json, wait_fo @cli_util.wrap_exceptions def check_external_exadata_storage_connector(ctx, from_json, external_exadata_storage_connector_id, if_match): - if isinstance(external_exadata_storage_connector_id, six.string_types) and len(external_exadata_storage_connector_id.strip()) == 0: + if isinstance(external_exadata_storage_connector_id, str) and len(external_exadata_storage_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-connector-id cannot be whitespace or empty string') kwargs = {} @@ -2127,7 +2126,7 @@ def check_external_exadata_storage_connector(ctx, from_json, external_exadata_st @cli_util.wrap_exceptions def check_external_my_sql_database_connector_connection_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_my_sql_database_connector_id, if_match): - if isinstance(external_my_sql_database_connector_id, six.string_types) and len(external_my_sql_database_connector_id.strip()) == 0: + if isinstance(external_my_sql_database_connector_id, str) and len(external_my_sql_database_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-my-sql-database-connector-id cannot be whitespace or empty string') kwargs = {} @@ -2181,7 +2180,7 @@ def check_external_my_sql_database_connector_connection_status(ctx, from_json, w @cli_util.wrap_exceptions def configure_automatic_capture_filters(ctx, from_json, managed_database_id, auto_capture_filters, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2219,7 +2218,7 @@ def configure_automatic_capture_filters(ctx, from_json, managed_database_id, aut @cli_util.wrap_exceptions def configure_automatic_capture_filters_managed_database_password_credential(ctx, from_json, managed_database_id, auto_capture_filters, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2260,7 +2259,7 @@ def configure_automatic_capture_filters_managed_database_password_credential(ctx @cli_util.wrap_exceptions def configure_automatic_capture_filters_managed_database_secret_credential(ctx, from_json, managed_database_id, auto_capture_filters, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2301,7 +2300,7 @@ def configure_automatic_capture_filters_managed_database_secret_credential(ctx, @cli_util.wrap_exceptions def configure_automatic_capture_filters_database_secret_credential_details(ctx, from_json, managed_database_id, auto_capture_filters, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2344,7 +2343,7 @@ def configure_automatic_capture_filters_database_secret_credential_details(ctx, @cli_util.wrap_exceptions def configure_automatic_capture_filters_database_named_credential_details(ctx, from_json, managed_database_id, auto_capture_filters, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2383,7 +2382,7 @@ def configure_automatic_capture_filters_database_named_credential_details(ctx, f @cli_util.wrap_exceptions def configure_automatic_capture_filters_database_password_credential_details(ctx, from_json, managed_database_id, auto_capture_filters, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2426,7 +2425,7 @@ def configure_automatic_capture_filters_database_password_credential_details(ctx @cli_util.wrap_exceptions def configure_automatic_spm_evolve_advisor_task(ctx, from_json, managed_database_id, task_parameters, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2464,7 +2463,7 @@ def configure_automatic_spm_evolve_advisor_task(ctx, from_json, managed_database @cli_util.wrap_exceptions def configure_automatic_spm_evolve_advisor_task_managed_database_password_credential(ctx, from_json, managed_database_id, task_parameters, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2505,7 +2504,7 @@ def configure_automatic_spm_evolve_advisor_task_managed_database_password_creden @cli_util.wrap_exceptions def configure_automatic_spm_evolve_advisor_task_managed_database_secret_credential(ctx, from_json, managed_database_id, task_parameters, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2546,7 +2545,7 @@ def configure_automatic_spm_evolve_advisor_task_managed_database_secret_credenti @cli_util.wrap_exceptions def configure_automatic_spm_evolve_advisor_task_database_secret_credential_details(ctx, from_json, managed_database_id, task_parameters, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2589,7 +2588,7 @@ def configure_automatic_spm_evolve_advisor_task_database_secret_credential_detai @cli_util.wrap_exceptions def configure_automatic_spm_evolve_advisor_task_database_named_credential_details(ctx, from_json, managed_database_id, task_parameters, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2628,7 +2627,7 @@ def configure_automatic_spm_evolve_advisor_task_database_named_credential_detail @cli_util.wrap_exceptions def configure_automatic_spm_evolve_advisor_task_database_password_credential_details(ctx, from_json, managed_database_id, task_parameters, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -4189,7 +4188,7 @@ def create_named_credential_basic_named_credential_content(ctx, from_json, wait_ @cli_util.wrap_exceptions def create_tablespace(ctx, from_json, managed_database_id, name, credential_details, database_credential, type, is_bigfile, data_files, file_count, file_size, is_reusable, is_auto_extensible, auto_extend_next_size, auto_extend_max_size, is_max_size_unlimited, block_size_in_kilobytes, is_encrypted, encryption_algorithm, default_compress, status, extent_management, extent_uniform_size, segment_management, is_default): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -4284,7 +4283,7 @@ def create_tablespace(ctx, from_json, managed_database_id, name, credential_deta @cli_util.wrap_exceptions def delete_cloud_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_id, if_match): - if isinstance(cloud_db_system_id, six.string_types) and len(cloud_db_system_id.strip()) == 0: + if isinstance(cloud_db_system_id, str) and len(cloud_db_system_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -4340,7 +4339,7 @@ def delete_cloud_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_cloud_db_system_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_connector_id, if_match): - if isinstance(cloud_db_system_connector_id, six.string_types) and len(cloud_db_system_connector_id.strip()) == 0: + if isinstance(cloud_db_system_connector_id, str) and len(cloud_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-connector-id cannot be whitespace or empty string') kwargs = {} @@ -4404,7 +4403,7 @@ def delete_cloud_db_system_connector(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_cloud_db_system_discovery(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_discovery_id, if_match): - if isinstance(cloud_db_system_discovery_id, six.string_types) and len(cloud_db_system_discovery_id.strip()) == 0: + if isinstance(cloud_db_system_discovery_id, str) and len(cloud_db_system_discovery_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -4468,7 +4467,7 @@ def delete_cloud_db_system_discovery(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_cloud_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -4524,7 +4523,7 @@ def delete_cloud_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_cloud_exadata_storage_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_storage_connector_id, if_match): - if isinstance(cloud_exadata_storage_connector_id, six.string_types) and len(cloud_exadata_storage_connector_id.strip()) == 0: + if isinstance(cloud_exadata_storage_connector_id, str) and len(cloud_exadata_storage_connector_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-connector-id cannot be whitespace or empty string') kwargs = {} @@ -4588,7 +4587,7 @@ def delete_cloud_exadata_storage_connector(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_db_management_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_management_private_endpoint_id, if_match): - if isinstance(db_management_private_endpoint_id, six.string_types) and len(db_management_private_endpoint_id.strip()) == 0: + if isinstance(db_management_private_endpoint_id, str) and len(db_management_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --db-management-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -4644,7 +4643,7 @@ def delete_db_management_private_endpoint(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def delete_external_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_id, if_match): - if isinstance(external_db_system_id, six.string_types) and len(external_db_system_id.strip()) == 0: + if isinstance(external_db_system_id, str) and len(external_db_system_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -4700,7 +4699,7 @@ def delete_external_db_system(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_external_db_system_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_connector_id, if_match): - if isinstance(external_db_system_connector_id, six.string_types) and len(external_db_system_connector_id.strip()) == 0: + if isinstance(external_db_system_connector_id, str) and len(external_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-connector-id cannot be whitespace or empty string') kwargs = {} @@ -4764,7 +4763,7 @@ def delete_external_db_system_connector(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_external_db_system_discovery(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_discovery_id, if_match): - if isinstance(external_db_system_discovery_id, six.string_types) and len(external_db_system_discovery_id.strip()) == 0: + if isinstance(external_db_system_discovery_id, str) and len(external_db_system_discovery_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -4828,7 +4827,7 @@ def delete_external_db_system_discovery(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_external_exadata_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_exadata_infrastructure_id, if_match): - if isinstance(external_exadata_infrastructure_id, six.string_types) and len(external_exadata_infrastructure_id.strip()) == 0: + if isinstance(external_exadata_infrastructure_id, str) and len(external_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -4884,7 +4883,7 @@ def delete_external_exadata_infrastructure(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_external_exadata_storage_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_exadata_storage_connector_id, if_match): - if isinstance(external_exadata_storage_connector_id, six.string_types) and len(external_exadata_storage_connector_id.strip()) == 0: + if isinstance(external_exadata_storage_connector_id, str) and len(external_exadata_storage_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-connector-id cannot be whitespace or empty string') kwargs = {} @@ -4948,7 +4947,7 @@ def delete_external_exadata_storage_connector(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def delete_external_my_sql_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_my_sql_database_id, if_match): - if isinstance(external_my_sql_database_id, six.string_types) and len(external_my_sql_database_id.strip()) == 0: + if isinstance(external_my_sql_database_id, str) and len(external_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --external-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -5004,7 +5003,7 @@ def delete_external_my_sql_database(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def delete_external_my_sql_database_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_my_sql_database_connector_id, if_match): - if isinstance(external_my_sql_database_connector_id, six.string_types) and len(external_my_sql_database_connector_id.strip()) == 0: + if isinstance(external_my_sql_database_connector_id, str) and len(external_my_sql_database_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-my-sql-database-connector-id cannot be whitespace or empty string') kwargs = {} @@ -5060,7 +5059,7 @@ def delete_external_my_sql_database_connector(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def delete_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -5124,7 +5123,7 @@ def delete_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_managed_database_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_database_group_id, if_match): - if isinstance(managed_database_group_id, six.string_types) and len(managed_database_group_id.strip()) == 0: + if isinstance(managed_database_group_id, str) and len(managed_database_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-group-id cannot be whitespace or empty string') kwargs = {} @@ -5188,7 +5187,7 @@ def delete_managed_database_group(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_named_credential(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, named_credential_id, if_match): - if isinstance(named_credential_id, six.string_types) and len(named_credential_id.strip()) == 0: + if isinstance(named_credential_id, str) and len(named_credential_id.strip()) == 0: raise click.UsageError('Parameter --named-credential-id cannot be whitespace or empty string') kwargs = {} @@ -5249,10 +5248,10 @@ def delete_named_credential(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_preferred_credential(ctx, from_json, managed_database_id, credential_name): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(credential_name, six.string_types) and len(credential_name.strip()) == 0: + if isinstance(credential_name, str) and len(credential_name.strip()) == 0: raise click.UsageError('Parameter --credential-name cannot be whitespace or empty string') kwargs = {} @@ -5277,7 +5276,7 @@ def delete_preferred_credential(ctx, from_json, managed_database_id, credential_ @cli_util.wrap_exceptions def disable_automatic_initial_plan_capture(ctx, from_json, managed_database_id, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5313,7 +5312,7 @@ def disable_automatic_initial_plan_capture(ctx, from_json, managed_database_id, @cli_util.wrap_exceptions def disable_automatic_initial_plan_capture_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5352,7 +5351,7 @@ def disable_automatic_initial_plan_capture_managed_database_password_credential( @cli_util.wrap_exceptions def disable_automatic_initial_plan_capture_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5391,7 +5390,7 @@ def disable_automatic_initial_plan_capture_managed_database_secret_credential(ct @cli_util.wrap_exceptions def disable_automatic_initial_plan_capture_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5432,7 +5431,7 @@ def disable_automatic_initial_plan_capture_database_secret_credential_details(ct @cli_util.wrap_exceptions def disable_automatic_initial_plan_capture_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5469,7 +5468,7 @@ def disable_automatic_initial_plan_capture_database_named_credential_details(ctx @cli_util.wrap_exceptions def disable_automatic_initial_plan_capture_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5512,7 +5511,7 @@ def disable_automatic_initial_plan_capture_database_password_credential_details( @cli_util.wrap_exceptions def disable_automatic_spm_evolve_advisor_task(ctx, from_json, managed_database_id, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5550,7 +5549,7 @@ def disable_automatic_spm_evolve_advisor_task(ctx, from_json, managed_database_i @cli_util.wrap_exceptions def disable_automatic_spm_evolve_advisor_task_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5591,7 +5590,7 @@ def disable_automatic_spm_evolve_advisor_task_managed_database_password_credenti @cli_util.wrap_exceptions def disable_automatic_spm_evolve_advisor_task_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5632,7 +5631,7 @@ def disable_automatic_spm_evolve_advisor_task_managed_database_secret_credential @cli_util.wrap_exceptions def disable_automatic_spm_evolve_advisor_task_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5675,7 +5674,7 @@ def disable_automatic_spm_evolve_advisor_task_database_secret_credential_details @cli_util.wrap_exceptions def disable_automatic_spm_evolve_advisor_task_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5714,7 +5713,7 @@ def disable_automatic_spm_evolve_advisor_task_database_named_credential_details( @cli_util.wrap_exceptions def disable_automatic_spm_evolve_advisor_task_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -5758,7 +5757,7 @@ def disable_automatic_spm_evolve_advisor_task_database_password_credential_detai @cli_util.wrap_exceptions def disable_autonomous_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, feature, if_match): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -5818,7 +5817,7 @@ def disable_autonomous_database_management_feature(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def disable_cloud_db_system_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_id, if_match): - if isinstance(cloud_db_system_id, six.string_types) and len(cloud_db_system_id.strip()) == 0: + if isinstance(cloud_db_system_id, str) and len(cloud_db_system_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -5873,7 +5872,7 @@ def disable_cloud_db_system_database_management(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def disable_cloud_db_system_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_id, if_match): - if isinstance(cloud_db_system_id, six.string_types) and len(cloud_db_system_id.strip()) == 0: + if isinstance(cloud_db_system_id, str) and len(cloud_db_system_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -5932,7 +5931,7 @@ def disable_cloud_db_system_stack_monitoring(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def disable_cloud_exadata_infrastructure_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -5989,7 +5988,7 @@ def disable_cloud_exadata_infrastructure_management(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def disable_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, feature, can_disable_all_pdbs, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -6054,7 +6053,7 @@ def disable_database_management_feature(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def disable_external_container_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, feature, can_disable_all_pdbs, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -6117,7 +6116,7 @@ def disable_external_container_database_management_feature(ctx, from_json, wait_ @cli_util.wrap_exceptions def disable_external_db_system_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_id, if_match): - if isinstance(external_db_system_id, six.string_types) and len(external_db_system_id.strip()) == 0: + if isinstance(external_db_system_id, str) and len(external_db_system_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -6172,7 +6171,7 @@ def disable_external_db_system_database_management(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def disable_external_db_system_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_id, if_match): - if isinstance(external_db_system_id, six.string_types) and len(external_db_system_id.strip()) == 0: + if isinstance(external_db_system_id, str) and len(external_db_system_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -6231,7 +6230,7 @@ def disable_external_db_system_stack_monitoring(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def disable_external_exadata_infrastructure_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_exadata_infrastructure_id, if_match): - if isinstance(external_exadata_infrastructure_id, six.string_types) and len(external_exadata_infrastructure_id.strip()) == 0: + if isinstance(external_exadata_infrastructure_id, str) and len(external_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -6286,7 +6285,7 @@ def disable_external_exadata_infrastructure_management(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def disable_external_my_sql_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_my_sql_database_id, if_match): - if isinstance(external_my_sql_database_id, six.string_types) and len(external_my_sql_database_id.strip()) == 0: + if isinstance(external_my_sql_database_id, str) and len(external_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --external-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -6342,7 +6341,7 @@ def disable_external_my_sql_database_management(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def disable_external_non_container_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, feature, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -6403,7 +6402,7 @@ def disable_external_non_container_database_management_feature(ctx, from_json, w @cli_util.wrap_exceptions def disable_external_pluggable_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, feature, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -6463,7 +6462,7 @@ def disable_external_pluggable_database_management_feature(ctx, from_json, wait_ @cli_util.wrap_exceptions def disable_high_frequency_automatic_spm_evolve_advisor_task(ctx, from_json, managed_database_id, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6501,7 +6500,7 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(ctx, from_json, man @cli_util.wrap_exceptions def disable_high_frequency_automatic_spm_evolve_advisor_task_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6542,7 +6541,7 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task_managed_database_pa @cli_util.wrap_exceptions def disable_high_frequency_automatic_spm_evolve_advisor_task_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6583,7 +6582,7 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task_managed_database_se @cli_util.wrap_exceptions def disable_high_frequency_automatic_spm_evolve_advisor_task_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6626,7 +6625,7 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task_database_secret_cre @cli_util.wrap_exceptions def disable_high_frequency_automatic_spm_evolve_advisor_task_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6665,7 +6664,7 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task_database_named_cred @cli_util.wrap_exceptions def disable_high_frequency_automatic_spm_evolve_advisor_task_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6709,7 +6708,7 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task_database_password_c @cli_util.wrap_exceptions def disable_pluggable_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, feature, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -6769,7 +6768,7 @@ def disable_pluggable_database_management_feature(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def disable_sql_plan_baselines_usage(ctx, from_json, managed_database_id, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6807,7 +6806,7 @@ def disable_sql_plan_baselines_usage(ctx, from_json, managed_database_id, creden @cli_util.wrap_exceptions def disable_sql_plan_baselines_usage_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6848,7 +6847,7 @@ def disable_sql_plan_baselines_usage_managed_database_password_credential(ctx, f @cli_util.wrap_exceptions def disable_sql_plan_baselines_usage_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6889,7 +6888,7 @@ def disable_sql_plan_baselines_usage_managed_database_secret_credential(ctx, fro @cli_util.wrap_exceptions def disable_sql_plan_baselines_usage_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6932,7 +6931,7 @@ def disable_sql_plan_baselines_usage_database_secret_credential_details(ctx, fro @cli_util.wrap_exceptions def disable_sql_plan_baselines_usage_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -6971,7 +6970,7 @@ def disable_sql_plan_baselines_usage_database_named_credential_details(ctx, from @cli_util.wrap_exceptions def disable_sql_plan_baselines_usage_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7095,7 +7094,7 @@ def discover_external_exadata_infrastructure(ctx, from_json, compartment_id, dis @cli_util.wrap_exceptions def drop_sql_plan_baselines(ctx, from_json, managed_database_id, sql_handle, plan_name, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7139,7 +7138,7 @@ def drop_sql_plan_baselines(ctx, from_json, managed_database_id, sql_handle, pla @cli_util.wrap_exceptions def drop_sql_plan_baselines_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, sql_handle, plan_name, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7186,7 +7185,7 @@ def drop_sql_plan_baselines_managed_database_password_credential(ctx, from_json, @cli_util.wrap_exceptions def drop_sql_plan_baselines_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, sql_handle, plan_name, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7233,7 +7232,7 @@ def drop_sql_plan_baselines_managed_database_secret_credential(ctx, from_json, m @cli_util.wrap_exceptions def drop_sql_plan_baselines_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, sql_handle, plan_name, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7282,7 +7281,7 @@ def drop_sql_plan_baselines_database_secret_credential_details(ctx, from_json, m @cli_util.wrap_exceptions def drop_sql_plan_baselines_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, sql_handle, plan_name, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7327,7 +7326,7 @@ def drop_sql_plan_baselines_database_named_credential_details(ctx, from_json, ma @cli_util.wrap_exceptions def drop_sql_plan_baselines_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, sql_handle, plan_name, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7378,10 +7377,10 @@ def drop_sql_plan_baselines_database_password_credential_details(ctx, from_json, @cli_util.wrap_exceptions def drop_tablespace(ctx, from_json, managed_database_id, tablespace_name, credential_details, database_credential, is_including_contents, is_dropping_data_files, is_cascade_constraints): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -7431,10 +7430,10 @@ def drop_tablespace(ctx, from_json, managed_database_id, tablespace_name, creden @cli_util.wrap_exceptions def drop_tablespace_tablespace_admin_password_credential_details(ctx, from_json, managed_database_id, tablespace_name, credential_details_username, credential_details_role, credential_details_password, database_credential, is_including_contents, is_dropping_data_files, is_cascade_constraints): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -7487,10 +7486,10 @@ def drop_tablespace_tablespace_admin_password_credential_details(ctx, from_json, @cli_util.wrap_exceptions def drop_tablespace_tablespace_admin_secret_credential_details(ctx, from_json, managed_database_id, tablespace_name, credential_details_username, credential_details_role, credential_details_password_secret_id, database_credential, is_including_contents, is_dropping_data_files, is_cascade_constraints): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -7543,10 +7542,10 @@ def drop_tablespace_tablespace_admin_secret_credential_details(ctx, from_json, m @cli_util.wrap_exceptions def drop_tablespace_database_secret_credential_details(ctx, from_json, managed_database_id, tablespace_name, database_credential_password_secret_id, credential_details, is_including_contents, is_dropping_data_files, is_cascade_constraints, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -7601,10 +7600,10 @@ def drop_tablespace_database_secret_credential_details(ctx, from_json, managed_d @cli_util.wrap_exceptions def drop_tablespace_database_named_credential_details(ctx, from_json, managed_database_id, tablespace_name, database_credential_named_credential_id, credential_details, is_including_contents, is_dropping_data_files, is_cascade_constraints): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -7655,10 +7654,10 @@ def drop_tablespace_database_named_credential_details(ctx, from_json, managed_da @cli_util.wrap_exceptions def drop_tablespace_database_password_credential_details(ctx, from_json, managed_database_id, tablespace_name, database_credential_password, credential_details, is_including_contents, is_dropping_data_files, is_cascade_constraints, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -7711,7 +7710,7 @@ def drop_tablespace_database_password_credential_details(ctx, from_json, managed @cli_util.wrap_exceptions def enable_automatic_initial_plan_capture(ctx, from_json, managed_database_id, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7749,7 +7748,7 @@ def enable_automatic_initial_plan_capture(ctx, from_json, managed_database_id, c @cli_util.wrap_exceptions def enable_automatic_initial_plan_capture_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7790,7 +7789,7 @@ def enable_automatic_initial_plan_capture_managed_database_password_credential(c @cli_util.wrap_exceptions def enable_automatic_initial_plan_capture_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7831,7 +7830,7 @@ def enable_automatic_initial_plan_capture_managed_database_secret_credential(ctx @cli_util.wrap_exceptions def enable_automatic_initial_plan_capture_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7874,7 +7873,7 @@ def enable_automatic_initial_plan_capture_database_secret_credential_details(ctx @cli_util.wrap_exceptions def enable_automatic_initial_plan_capture_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7913,7 +7912,7 @@ def enable_automatic_initial_plan_capture_database_named_credential_details(ctx, @cli_util.wrap_exceptions def enable_automatic_initial_plan_capture_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -7960,7 +7959,7 @@ def enable_automatic_initial_plan_capture_database_password_credential_details(c @cli_util.wrap_exceptions def enable_automatic_spm_evolve_advisor_task(ctx, from_json, managed_database_id, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -8002,7 +8001,7 @@ def enable_automatic_spm_evolve_advisor_task(ctx, from_json, managed_database_id @cli_util.wrap_exceptions def enable_automatic_spm_evolve_advisor_task_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -8047,7 +8046,7 @@ def enable_automatic_spm_evolve_advisor_task_managed_database_password_credentia @cli_util.wrap_exceptions def enable_automatic_spm_evolve_advisor_task_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -8092,7 +8091,7 @@ def enable_automatic_spm_evolve_advisor_task_managed_database_secret_credential( @cli_util.wrap_exceptions def enable_automatic_spm_evolve_advisor_task_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -8139,7 +8138,7 @@ def enable_automatic_spm_evolve_advisor_task_database_secret_credential_details( @cli_util.wrap_exceptions def enable_automatic_spm_evolve_advisor_task_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -8182,7 +8181,7 @@ def enable_automatic_spm_evolve_advisor_task_database_named_credential_details(c @cli_util.wrap_exceptions def enable_automatic_spm_evolve_advisor_task_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -8226,7 +8225,7 @@ def enable_automatic_spm_evolve_advisor_task_database_password_credential_detail @cli_util.wrap_exceptions def enable_autonomous_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, feature_details, if_match): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -8288,7 +8287,7 @@ def enable_autonomous_database_management_feature(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def enable_autonomous_database_management_feature_autonomous_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, feature_details_database_connection_details, if_match, feature_details_connector_details): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -8356,7 +8355,7 @@ def enable_autonomous_database_management_feature_autonomous_database_sql_watch_ @cli_util.wrap_exceptions def enable_autonomous_database_management_feature_autonomous_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, feature_details_database_connection_details, if_match, feature_details_connector_details): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -8424,7 +8423,7 @@ def enable_autonomous_database_management_feature_autonomous_database_diagnostic @cli_util.wrap_exceptions def enable_cloud_db_system_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_id, is_enabled, metadata, if_match): - if isinstance(cloud_db_system_id, six.string_types) and len(cloud_db_system_id.strip()) == 0: + if isinstance(cloud_db_system_id, str) and len(cloud_db_system_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -8489,7 +8488,7 @@ def enable_cloud_db_system_database_management(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def enable_cloud_db_system_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_id, is_enabled, metadata, if_match): - if isinstance(cloud_db_system_id, six.string_types) and len(cloud_db_system_id.strip()) == 0: + if isinstance(cloud_db_system_id, str) and len(cloud_db_system_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -8555,7 +8554,7 @@ def enable_cloud_db_system_stack_monitoring(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def enable_cloud_exadata_infrastructure_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, license_model, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -8616,7 +8615,7 @@ def enable_cloud_exadata_infrastructure_management(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def enable_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, feature_details, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -8681,7 +8680,7 @@ def enable_database_management_feature(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def enable_database_management_feature_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, feature_details_database_connection_details, feature_details_connector_details, feature_details_management_type, if_match, feature_details_is_auto_enable_pluggable_database, feature_details_can_enable_all_current_pdbs): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -8754,7 +8753,7 @@ def enable_database_management_feature_database_diagnostics_and_management_featu @cli_util.wrap_exceptions def enable_database_management_feature_database_lifecycle_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, feature_details_database_connection_details, feature_details_connector_details, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -8822,7 +8821,7 @@ def enable_database_management_feature_database_lifecycle_management_feature_det @cli_util.wrap_exceptions def enable_database_management_feature_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, feature_details_database_connection_details, feature_details_connector_details, if_match, feature_details_can_enable_all_current_pdbs, feature_details_is_auto_enable_pluggable_database): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -8893,7 +8892,7 @@ def enable_database_management_feature_database_sql_watch_feature_details(ctx, f @cli_util.wrap_exceptions def enable_external_container_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, feature_details, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -8955,7 +8954,7 @@ def enable_external_container_database_management_feature(ctx, from_json, wait_f @cli_util.wrap_exceptions def enable_external_container_database_management_feature_external_database_lifecycle_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, feature_details_connector_details, feature_details_license_model, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -9020,7 +9019,7 @@ def enable_external_container_database_management_feature_external_database_life @cli_util.wrap_exceptions def enable_external_container_database_management_feature_external_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, feature_details_connector_details, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -9087,7 +9086,7 @@ def enable_external_container_database_management_feature_external_database_sql_ @cli_util.wrap_exceptions def enable_external_container_database_management_feature_external_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, feature_details_connector_details, feature_details_license_model, if_match, feature_details_can_enable_all_current_pdbs, feature_details_is_auto_enable_pluggable_database): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -9158,7 +9157,7 @@ def enable_external_container_database_management_feature_external_database_diag @cli_util.wrap_exceptions def enable_external_db_system_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_id, license_model, if_match): - if isinstance(external_db_system_id, six.string_types) and len(external_db_system_id.strip()) == 0: + if isinstance(external_db_system_id, str) and len(external_db_system_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -9220,7 +9219,7 @@ def enable_external_db_system_database_management(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def enable_external_db_system_stack_monitoring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_id, is_enabled, metadata, if_match): - if isinstance(external_db_system_id, six.string_types) and len(external_db_system_id.strip()) == 0: + if isinstance(external_db_system_id, str) and len(external_db_system_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -9286,7 +9285,7 @@ def enable_external_db_system_stack_monitoring(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def enable_external_exadata_infrastructure_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_exadata_infrastructure_id, license_model, if_match): - if isinstance(external_exadata_infrastructure_id, six.string_types) and len(external_exadata_infrastructure_id.strip()) == 0: + if isinstance(external_exadata_infrastructure_id, str) and len(external_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -9347,7 +9346,7 @@ def enable_external_exadata_infrastructure_management(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def enable_external_my_sql_database_management(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_my_sql_database_id, connector_id, if_match): - if isinstance(external_my_sql_database_id, six.string_types) and len(external_my_sql_database_id.strip()) == 0: + if isinstance(external_my_sql_database_id, str) and len(external_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --external-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -9408,7 +9407,7 @@ def enable_external_my_sql_database_management(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def enable_external_non_container_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, feature_details, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -9470,7 +9469,7 @@ def enable_external_non_container_database_management_feature(ctx, from_json, wa @cli_util.wrap_exceptions def enable_external_non_container_database_management_feature_external_database_lifecycle_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, feature_details_connector_details, feature_details_license_model, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -9535,7 +9534,7 @@ def enable_external_non_container_database_management_feature_external_database_ @cli_util.wrap_exceptions def enable_external_non_container_database_management_feature_external_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, feature_details_connector_details, if_match): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -9602,7 +9601,7 @@ def enable_external_non_container_database_management_feature_external_database_ @cli_util.wrap_exceptions def enable_external_non_container_database_management_feature_external_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_non_container_database_id, feature_details_connector_details, feature_details_license_model, if_match, feature_details_can_enable_all_current_pdbs, feature_details_is_auto_enable_pluggable_database): - if isinstance(external_non_container_database_id, six.string_types) and len(external_non_container_database_id.strip()) == 0: + if isinstance(external_non_container_database_id, str) and len(external_non_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-non-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -9673,7 +9672,7 @@ def enable_external_non_container_database_management_feature_external_database_ @cli_util.wrap_exceptions def enable_external_pluggable_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, feature_details, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -9734,7 +9733,7 @@ def enable_external_pluggable_database_management_feature(ctx, from_json, wait_f @cli_util.wrap_exceptions def enable_external_pluggable_database_management_feature_external_pluggable_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, feature_details_connector_details, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -9798,7 +9797,7 @@ def enable_external_pluggable_database_management_feature_external_pluggable_dat @cli_util.wrap_exceptions def enable_external_pluggable_database_management_feature_external_pluggable_database_lifecycle_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, feature_details_connector_details, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -9862,7 +9861,7 @@ def enable_external_pluggable_database_management_feature_external_pluggable_dat @cli_util.wrap_exceptions def enable_external_pluggable_database_management_feature_external_pluggable_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_pluggable_database_id, feature_details_connector_details, if_match): - if isinstance(external_pluggable_database_id, six.string_types) and len(external_pluggable_database_id.strip()) == 0: + if isinstance(external_pluggable_database_id, str) and len(external_pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --external-pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -9927,7 +9926,7 @@ def enable_external_pluggable_database_management_feature_external_pluggable_dat @cli_util.wrap_exceptions def enable_high_frequency_automatic_spm_evolve_advisor_task(ctx, from_json, managed_database_id, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -9967,7 +9966,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(ctx, from_json, mana @cli_util.wrap_exceptions def enable_high_frequency_automatic_spm_evolve_advisor_task_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10010,7 +10009,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task_managed_database_pas @cli_util.wrap_exceptions def enable_high_frequency_automatic_spm_evolve_advisor_task_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10053,7 +10052,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task_managed_database_sec @cli_util.wrap_exceptions def enable_high_frequency_automatic_spm_evolve_advisor_task_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10098,7 +10097,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task_database_secret_cred @cli_util.wrap_exceptions def enable_high_frequency_automatic_spm_evolve_advisor_task_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10139,7 +10138,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task_database_named_crede @cli_util.wrap_exceptions def enable_high_frequency_automatic_spm_evolve_advisor_task_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10183,7 +10182,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task_database_password_cr @cli_util.wrap_exceptions def enable_pluggable_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, feature_details, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -10248,7 +10247,7 @@ def enable_pluggable_database_management_feature(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def enable_pluggable_database_management_feature_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, feature_details_database_connection_details, feature_details_connector_details, feature_details_management_type, if_match, feature_details_is_auto_enable_pluggable_database, feature_details_can_enable_all_current_pdbs): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -10321,7 +10320,7 @@ def enable_pluggable_database_management_feature_database_diagnostics_and_manage @cli_util.wrap_exceptions def enable_pluggable_database_management_feature_database_lifecycle_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, feature_details_database_connection_details, feature_details_connector_details, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -10389,7 +10388,7 @@ def enable_pluggable_database_management_feature_database_lifecycle_management_f @cli_util.wrap_exceptions def enable_pluggable_database_management_feature_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, feature_details_database_connection_details, feature_details_connector_details, if_match, feature_details_can_enable_all_current_pdbs, feature_details_is_auto_enable_pluggable_database): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -10459,7 +10458,7 @@ def enable_pluggable_database_management_feature_database_sql_watch_feature_deta @cli_util.wrap_exceptions def enable_sql_plan_baselines_usage(ctx, from_json, managed_database_id, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10497,7 +10496,7 @@ def enable_sql_plan_baselines_usage(ctx, from_json, managed_database_id, credent @cli_util.wrap_exceptions def enable_sql_plan_baselines_usage_managed_database_password_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10538,7 +10537,7 @@ def enable_sql_plan_baselines_usage_managed_database_password_credential(ctx, fr @cli_util.wrap_exceptions def enable_sql_plan_baselines_usage_managed_database_secret_credential(ctx, from_json, managed_database_id, credentials_username, credentials_role, credentials_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10579,7 +10578,7 @@ def enable_sql_plan_baselines_usage_managed_database_secret_credential(ctx, from @cli_util.wrap_exceptions def enable_sql_plan_baselines_usage_database_secret_credential_details(ctx, from_json, managed_database_id, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10622,7 +10621,7 @@ def enable_sql_plan_baselines_usage_database_secret_credential_details(ctx, from @cli_util.wrap_exceptions def enable_sql_plan_baselines_usage_database_named_credential_details(ctx, from_json, managed_database_id, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10661,7 +10660,7 @@ def enable_sql_plan_baselines_usage_database_named_credential_details(ctx, from_ @cli_util.wrap_exceptions def enable_sql_plan_baselines_usage_database_password_credential_details(ctx, from_json, managed_database_id, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10701,7 +10700,7 @@ def enable_sql_plan_baselines_usage_database_password_credential_details(ctx, fr @cli_util.wrap_exceptions def generate_awr_snapshot(ctx, from_json, managed_database_id, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -10735,10 +10734,10 @@ def generate_awr_snapshot(ctx, from_json, managed_database_id, opc_named_credent @cli_util.wrap_exceptions def get_awr_db_report(ctx, from_json, managed_database_id, awr_db_id, inst_nums, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, report_type, container_id, report_format, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -10789,10 +10788,10 @@ def get_awr_db_report(ctx, from_json, managed_database_id, awr_db_id, inst_nums, @cli_util.wrap_exceptions def get_awr_db_sql_report(ctx, from_json, managed_database_id, awr_db_id, sql_id, inst_num, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, report_format, container_id, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -10832,7 +10831,7 @@ def get_awr_db_sql_report(ctx, from_json, managed_database_id, awr_db_id, sql_id @cli_util.wrap_exceptions def get_cloud_asm(ctx, from_json, cloud_asm_id): - if isinstance(cloud_asm_id, six.string_types) and len(cloud_asm_id.strip()) == 0: + if isinstance(cloud_asm_id, str) and len(cloud_asm_id.strip()) == 0: raise click.UsageError('Parameter --cloud-asm-id cannot be whitespace or empty string') kwargs = {} @@ -10855,7 +10854,7 @@ def get_cloud_asm(ctx, from_json, cloud_asm_id): @cli_util.wrap_exceptions def get_cloud_asm_configuration(ctx, from_json, cloud_asm_id, opc_named_credential_id): - if isinstance(cloud_asm_id, six.string_types) and len(cloud_asm_id.strip()) == 0: + if isinstance(cloud_asm_id, str) and len(cloud_asm_id.strip()) == 0: raise click.UsageError('Parameter --cloud-asm-id cannot be whitespace or empty string') kwargs = {} @@ -10879,7 +10878,7 @@ def get_cloud_asm_configuration(ctx, from_json, cloud_asm_id, opc_named_credenti @cli_util.wrap_exceptions def get_cloud_asm_instance(ctx, from_json, cloud_asm_instance_id): - if isinstance(cloud_asm_instance_id, six.string_types) and len(cloud_asm_instance_id.strip()) == 0: + if isinstance(cloud_asm_instance_id, str) and len(cloud_asm_instance_id.strip()) == 0: raise click.UsageError('Parameter --cloud-asm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -10901,7 +10900,7 @@ def get_cloud_asm_instance(ctx, from_json, cloud_asm_instance_id): @cli_util.wrap_exceptions def get_cloud_cluster(ctx, from_json, cloud_cluster_id): - if isinstance(cloud_cluster_id, six.string_types) and len(cloud_cluster_id.strip()) == 0: + if isinstance(cloud_cluster_id, str) and len(cloud_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -10923,7 +10922,7 @@ def get_cloud_cluster(ctx, from_json, cloud_cluster_id): @cli_util.wrap_exceptions def get_cloud_cluster_instance(ctx, from_json, cloud_cluster_instance_id): - if isinstance(cloud_cluster_instance_id, six.string_types) and len(cloud_cluster_instance_id.strip()) == 0: + if isinstance(cloud_cluster_instance_id, str) and len(cloud_cluster_instance_id.strip()) == 0: raise click.UsageError('Parameter --cloud-cluster-instance-id cannot be whitespace or empty string') kwargs = {} @@ -10945,7 +10944,7 @@ def get_cloud_cluster_instance(ctx, from_json, cloud_cluster_instance_id): @cli_util.wrap_exceptions def get_cloud_db_home(ctx, from_json, cloud_db_home_id): - if isinstance(cloud_db_home_id, six.string_types) and len(cloud_db_home_id.strip()) == 0: + if isinstance(cloud_db_home_id, str) and len(cloud_db_home_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-home-id cannot be whitespace or empty string') kwargs = {} @@ -10967,7 +10966,7 @@ def get_cloud_db_home(ctx, from_json, cloud_db_home_id): @cli_util.wrap_exceptions def get_cloud_db_node(ctx, from_json, cloud_db_node_id): - if isinstance(cloud_db_node_id, six.string_types) and len(cloud_db_node_id.strip()) == 0: + if isinstance(cloud_db_node_id, str) and len(cloud_db_node_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-node-id cannot be whitespace or empty string') kwargs = {} @@ -10989,7 +10988,7 @@ def get_cloud_db_node(ctx, from_json, cloud_db_node_id): @cli_util.wrap_exceptions def get_cloud_db_system(ctx, from_json, cloud_db_system_id): - if isinstance(cloud_db_system_id, six.string_types) and len(cloud_db_system_id.strip()) == 0: + if isinstance(cloud_db_system_id, str) and len(cloud_db_system_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -11011,7 +11010,7 @@ def get_cloud_db_system(ctx, from_json, cloud_db_system_id): @cli_util.wrap_exceptions def get_cloud_db_system_connector(ctx, from_json, cloud_db_system_connector_id): - if isinstance(cloud_db_system_connector_id, six.string_types) and len(cloud_db_system_connector_id.strip()) == 0: + if isinstance(cloud_db_system_connector_id, str) and len(cloud_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-connector-id cannot be whitespace or empty string') kwargs = {} @@ -11033,7 +11032,7 @@ def get_cloud_db_system_connector(ctx, from_json, cloud_db_system_connector_id): @cli_util.wrap_exceptions def get_cloud_db_system_discovery(ctx, from_json, cloud_db_system_discovery_id): - if isinstance(cloud_db_system_discovery_id, six.string_types) and len(cloud_db_system_discovery_id.strip()) == 0: + if isinstance(cloud_db_system_discovery_id, str) and len(cloud_db_system_discovery_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -11055,7 +11054,7 @@ def get_cloud_db_system_discovery(ctx, from_json, cloud_db_system_discovery_id): @cli_util.wrap_exceptions def get_cloud_exadata_infrastructure(ctx, from_json, cloud_exadata_infrastructure_id): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -11077,7 +11076,7 @@ def get_cloud_exadata_infrastructure(ctx, from_json, cloud_exadata_infrastructur @cli_util.wrap_exceptions def get_cloud_exadata_storage_connector(ctx, from_json, cloud_exadata_storage_connector_id): - if isinstance(cloud_exadata_storage_connector_id, six.string_types) and len(cloud_exadata_storage_connector_id.strip()) == 0: + if isinstance(cloud_exadata_storage_connector_id, str) and len(cloud_exadata_storage_connector_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-connector-id cannot be whitespace or empty string') kwargs = {} @@ -11099,7 +11098,7 @@ def get_cloud_exadata_storage_connector(ctx, from_json, cloud_exadata_storage_co @cli_util.wrap_exceptions def get_cloud_exadata_storage_grid(ctx, from_json, cloud_exadata_storage_grid_id): - if isinstance(cloud_exadata_storage_grid_id, six.string_types) and len(cloud_exadata_storage_grid_id.strip()) == 0: + if isinstance(cloud_exadata_storage_grid_id, str) and len(cloud_exadata_storage_grid_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-grid-id cannot be whitespace or empty string') kwargs = {} @@ -11121,7 +11120,7 @@ def get_cloud_exadata_storage_grid(ctx, from_json, cloud_exadata_storage_grid_id @cli_util.wrap_exceptions def get_cloud_exadata_storage_server(ctx, from_json, cloud_exadata_storage_server_id): - if isinstance(cloud_exadata_storage_server_id, six.string_types) and len(cloud_exadata_storage_server_id.strip()) == 0: + if isinstance(cloud_exadata_storage_server_id, str) and len(cloud_exadata_storage_server_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-server-id cannot be whitespace or empty string') kwargs = {} @@ -11143,7 +11142,7 @@ def get_cloud_exadata_storage_server(ctx, from_json, cloud_exadata_storage_serve @cli_util.wrap_exceptions def get_cloud_iorm_plan(ctx, from_json, cloud_exadata_storage_server_id): - if isinstance(cloud_exadata_storage_server_id, six.string_types) and len(cloud_exadata_storage_server_id.strip()) == 0: + if isinstance(cloud_exadata_storage_server_id, str) and len(cloud_exadata_storage_server_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-server-id cannot be whitespace or empty string') kwargs = {} @@ -11165,7 +11164,7 @@ def get_cloud_iorm_plan(ctx, from_json, cloud_exadata_storage_server_id): @cli_util.wrap_exceptions def get_cloud_listener(ctx, from_json, cloud_listener_id): - if isinstance(cloud_listener_id, six.string_types) and len(cloud_listener_id.strip()) == 0: + if isinstance(cloud_listener_id, str) and len(cloud_listener_id.strip()) == 0: raise click.UsageError('Parameter --cloud-listener-id cannot be whitespace or empty string') kwargs = {} @@ -11187,7 +11186,7 @@ def get_cloud_listener(ctx, from_json, cloud_listener_id): @cli_util.wrap_exceptions def get_cloud_open_alert_history(ctx, from_json, cloud_exadata_storage_server_id): - if isinstance(cloud_exadata_storage_server_id, six.string_types) and len(cloud_exadata_storage_server_id.strip()) == 0: + if isinstance(cloud_exadata_storage_server_id, str) and len(cloud_exadata_storage_server_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-server-id cannot be whitespace or empty string') kwargs = {} @@ -11211,7 +11210,7 @@ def get_cloud_open_alert_history(ctx, from_json, cloud_exadata_storage_server_id @cli_util.wrap_exceptions def get_cluster_cache_metric(ctx, from_json, managed_database_id, start_time, end_time): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -11461,7 +11460,7 @@ def get_database_fleet_health_metrics(ctx, from_json, compare_baseline_time, com @cli_util.wrap_exceptions def get_database_ha_backup_details(ctx, from_json, managed_database_id, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -11512,7 +11511,7 @@ def get_database_home_metrics(ctx, from_json, managed_database_id, start_time, e @cli_util.wrap_exceptions def get_dataguard_performance_metrics(ctx, from_json, managed_database_id, start_time, end_time, peer_database_compartment_id, filter_by_metric_names): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -11540,7 +11539,7 @@ def get_dataguard_performance_metrics(ctx, from_json, managed_database_id, start @cli_util.wrap_exceptions def get_db_management_private_endpoint(ctx, from_json, db_management_private_endpoint_id): - if isinstance(db_management_private_endpoint_id, six.string_types) and len(db_management_private_endpoint_id.strip()) == 0: + if isinstance(db_management_private_endpoint_id, str) and len(db_management_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --db-management-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -11600,7 +11599,7 @@ def get_exadata_infrastructure_fleet_health_metrics(ctx, from_json, compartment_ @cli_util.wrap_exceptions def get_external_asm(ctx, from_json, external_asm_id): - if isinstance(external_asm_id, six.string_types) and len(external_asm_id.strip()) == 0: + if isinstance(external_asm_id, str) and len(external_asm_id.strip()) == 0: raise click.UsageError('Parameter --external-asm-id cannot be whitespace or empty string') kwargs = {} @@ -11623,7 +11622,7 @@ def get_external_asm(ctx, from_json, external_asm_id): @cli_util.wrap_exceptions def get_external_asm_configuration(ctx, from_json, external_asm_id, opc_named_credential_id): - if isinstance(external_asm_id, six.string_types) and len(external_asm_id.strip()) == 0: + if isinstance(external_asm_id, str) and len(external_asm_id.strip()) == 0: raise click.UsageError('Parameter --external-asm-id cannot be whitespace or empty string') kwargs = {} @@ -11647,7 +11646,7 @@ def get_external_asm_configuration(ctx, from_json, external_asm_id, opc_named_cr @cli_util.wrap_exceptions def get_external_asm_instance(ctx, from_json, external_asm_instance_id): - if isinstance(external_asm_instance_id, six.string_types) and len(external_asm_instance_id.strip()) == 0: + if isinstance(external_asm_instance_id, str) and len(external_asm_instance_id.strip()) == 0: raise click.UsageError('Parameter --external-asm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -11669,7 +11668,7 @@ def get_external_asm_instance(ctx, from_json, external_asm_instance_id): @cli_util.wrap_exceptions def get_external_cluster(ctx, from_json, external_cluster_id): - if isinstance(external_cluster_id, six.string_types) and len(external_cluster_id.strip()) == 0: + if isinstance(external_cluster_id, str) and len(external_cluster_id.strip()) == 0: raise click.UsageError('Parameter --external-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -11691,7 +11690,7 @@ def get_external_cluster(ctx, from_json, external_cluster_id): @cli_util.wrap_exceptions def get_external_cluster_instance(ctx, from_json, external_cluster_instance_id): - if isinstance(external_cluster_instance_id, six.string_types) and len(external_cluster_instance_id.strip()) == 0: + if isinstance(external_cluster_instance_id, str) and len(external_cluster_instance_id.strip()) == 0: raise click.UsageError('Parameter --external-cluster-instance-id cannot be whitespace or empty string') kwargs = {} @@ -11713,7 +11712,7 @@ def get_external_cluster_instance(ctx, from_json, external_cluster_instance_id): @cli_util.wrap_exceptions def get_external_db_home(ctx, from_json, external_db_home_id): - if isinstance(external_db_home_id, six.string_types) and len(external_db_home_id.strip()) == 0: + if isinstance(external_db_home_id, str) and len(external_db_home_id.strip()) == 0: raise click.UsageError('Parameter --external-db-home-id cannot be whitespace or empty string') kwargs = {} @@ -11735,7 +11734,7 @@ def get_external_db_home(ctx, from_json, external_db_home_id): @cli_util.wrap_exceptions def get_external_db_node(ctx, from_json, external_db_node_id): - if isinstance(external_db_node_id, six.string_types) and len(external_db_node_id.strip()) == 0: + if isinstance(external_db_node_id, str) and len(external_db_node_id.strip()) == 0: raise click.UsageError('Parameter --external-db-node-id cannot be whitespace or empty string') kwargs = {} @@ -11757,7 +11756,7 @@ def get_external_db_node(ctx, from_json, external_db_node_id): @cli_util.wrap_exceptions def get_external_db_system(ctx, from_json, external_db_system_id): - if isinstance(external_db_system_id, six.string_types) and len(external_db_system_id.strip()) == 0: + if isinstance(external_db_system_id, str) and len(external_db_system_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -11779,7 +11778,7 @@ def get_external_db_system(ctx, from_json, external_db_system_id): @cli_util.wrap_exceptions def get_external_db_system_connector(ctx, from_json, external_db_system_connector_id): - if isinstance(external_db_system_connector_id, six.string_types) and len(external_db_system_connector_id.strip()) == 0: + if isinstance(external_db_system_connector_id, str) and len(external_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-connector-id cannot be whitespace or empty string') kwargs = {} @@ -11801,7 +11800,7 @@ def get_external_db_system_connector(ctx, from_json, external_db_system_connecto @cli_util.wrap_exceptions def get_external_db_system_discovery(ctx, from_json, external_db_system_discovery_id): - if isinstance(external_db_system_discovery_id, six.string_types) and len(external_db_system_discovery_id.strip()) == 0: + if isinstance(external_db_system_discovery_id, str) and len(external_db_system_discovery_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -11823,7 +11822,7 @@ def get_external_db_system_discovery(ctx, from_json, external_db_system_discover @cli_util.wrap_exceptions def get_external_exadata_infrastructure(ctx, from_json, external_exadata_infrastructure_id): - if isinstance(external_exadata_infrastructure_id, six.string_types) and len(external_exadata_infrastructure_id.strip()) == 0: + if isinstance(external_exadata_infrastructure_id, str) and len(external_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -11845,7 +11844,7 @@ def get_external_exadata_infrastructure(ctx, from_json, external_exadata_infrast @cli_util.wrap_exceptions def get_external_exadata_storage_connector(ctx, from_json, external_exadata_storage_connector_id): - if isinstance(external_exadata_storage_connector_id, six.string_types) and len(external_exadata_storage_connector_id.strip()) == 0: + if isinstance(external_exadata_storage_connector_id, str) and len(external_exadata_storage_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-connector-id cannot be whitespace or empty string') kwargs = {} @@ -11867,7 +11866,7 @@ def get_external_exadata_storage_connector(ctx, from_json, external_exadata_stor @cli_util.wrap_exceptions def get_external_exadata_storage_grid(ctx, from_json, external_exadata_storage_grid_id): - if isinstance(external_exadata_storage_grid_id, six.string_types) and len(external_exadata_storage_grid_id.strip()) == 0: + if isinstance(external_exadata_storage_grid_id, str) and len(external_exadata_storage_grid_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-grid-id cannot be whitespace or empty string') kwargs = {} @@ -11889,7 +11888,7 @@ def get_external_exadata_storage_grid(ctx, from_json, external_exadata_storage_g @cli_util.wrap_exceptions def get_external_exadata_storage_server(ctx, from_json, external_exadata_storage_server_id): - if isinstance(external_exadata_storage_server_id, six.string_types) and len(external_exadata_storage_server_id.strip()) == 0: + if isinstance(external_exadata_storage_server_id, str) and len(external_exadata_storage_server_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-server-id cannot be whitespace or empty string') kwargs = {} @@ -11911,7 +11910,7 @@ def get_external_exadata_storage_server(ctx, from_json, external_exadata_storage @cli_util.wrap_exceptions def get_external_listener(ctx, from_json, external_listener_id): - if isinstance(external_listener_id, six.string_types) and len(external_listener_id.strip()) == 0: + if isinstance(external_listener_id, str) and len(external_listener_id.strip()) == 0: raise click.UsageError('Parameter --external-listener-id cannot be whitespace or empty string') kwargs = {} @@ -11933,7 +11932,7 @@ def get_external_listener(ctx, from_json, external_listener_id): @cli_util.wrap_exceptions def get_external_my_sql_database(ctx, from_json, external_my_sql_database_id): - if isinstance(external_my_sql_database_id, six.string_types) and len(external_my_sql_database_id.strip()) == 0: + if isinstance(external_my_sql_database_id, str) and len(external_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --external-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -11955,7 +11954,7 @@ def get_external_my_sql_database(ctx, from_json, external_my_sql_database_id): @cli_util.wrap_exceptions def get_external_my_sql_database_connector(ctx, from_json, external_my_sql_database_connector_id): - if isinstance(external_my_sql_database_connector_id, six.string_types) and len(external_my_sql_database_connector_id.strip()) == 0: + if isinstance(external_my_sql_database_connector_id, str) and len(external_my_sql_database_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-my-sql-database-connector-id cannot be whitespace or empty string') kwargs = {} @@ -11977,7 +11976,7 @@ def get_external_my_sql_database_connector(ctx, from_json, external_my_sql_datab @cli_util.wrap_exceptions def get_iorm_plan(ctx, from_json, external_exadata_storage_server_id): - if isinstance(external_exadata_storage_server_id, six.string_types) and len(external_exadata_storage_server_id.strip()) == 0: + if isinstance(external_exadata_storage_server_id, str) and len(external_exadata_storage_server_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-server-id cannot be whitespace or empty string') kwargs = {} @@ -11999,7 +11998,7 @@ def get_iorm_plan(ctx, from_json, external_exadata_storage_server_id): @cli_util.wrap_exceptions def get_job(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -12021,7 +12020,7 @@ def get_job(ctx, from_json, job_id): @cli_util.wrap_exceptions def get_job_execution(ctx, from_json, job_execution_id): - if isinstance(job_execution_id, six.string_types) and len(job_execution_id.strip()) == 0: + if isinstance(job_execution_id, str) and len(job_execution_id.strip()) == 0: raise click.UsageError('Parameter --job-execution-id cannot be whitespace or empty string') kwargs = {} @@ -12043,7 +12042,7 @@ def get_job_execution(ctx, from_json, job_execution_id): @cli_util.wrap_exceptions def get_job_run(ctx, from_json, job_run_id): - if isinstance(job_run_id, six.string_types) and len(job_run_id.strip()) == 0: + if isinstance(job_run_id, str) and len(job_run_id.strip()) == 0: raise click.UsageError('Parameter --job-run-id cannot be whitespace or empty string') kwargs = {} @@ -12065,7 +12064,7 @@ def get_job_run(ctx, from_json, job_run_id): @cli_util.wrap_exceptions def get_managed_database(ctx, from_json, managed_database_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -12087,7 +12086,7 @@ def get_managed_database(ctx, from_json, managed_database_id): @cli_util.wrap_exceptions def get_managed_database_group(ctx, from_json, managed_database_group_id): - if isinstance(managed_database_group_id, six.string_types) and len(managed_database_group_id.strip()) == 0: + if isinstance(managed_database_group_id, str) and len(managed_database_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-group-id cannot be whitespace or empty string') kwargs = {} @@ -12109,7 +12108,7 @@ def get_managed_database_group(ctx, from_json, managed_database_group_id): @cli_util.wrap_exceptions def get_named_credential(ctx, from_json, named_credential_id): - if isinstance(named_credential_id, six.string_types) and len(named_credential_id.strip()) == 0: + if isinstance(named_credential_id, str) and len(named_credential_id.strip()) == 0: raise click.UsageError('Parameter --named-credential-id cannot be whitespace or empty string') kwargs = {} @@ -12131,7 +12130,7 @@ def get_named_credential(ctx, from_json, named_credential_id): @cli_util.wrap_exceptions def get_open_alert_history(ctx, from_json, external_exadata_storage_server_id): - if isinstance(external_exadata_storage_server_id, six.string_types) and len(external_exadata_storage_server_id.strip()) == 0: + if isinstance(external_exadata_storage_server_id, str) and len(external_exadata_storage_server_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-server-id cannot be whitespace or empty string') kwargs = {} @@ -12156,10 +12155,10 @@ def get_open_alert_history(ctx, from_json, external_exadata_storage_server_id): @cli_util.wrap_exceptions def get_optimizer_statistics_advisor_execution(ctx, from_json, managed_database_id, execution_name, task_name, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(execution_name, six.string_types) and len(execution_name.strip()) == 0: + if isinstance(execution_name, str) and len(execution_name.strip()) == 0: raise click.UsageError('Parameter --execution-name cannot be whitespace or empty string') kwargs = {} @@ -12188,10 +12187,10 @@ def get_optimizer_statistics_advisor_execution(ctx, from_json, managed_database_ @cli_util.wrap_exceptions def get_optimizer_statistics_advisor_execution_script(ctx, from_json, managed_database_id, execution_name, task_name, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(execution_name, six.string_types) and len(execution_name.strip()) == 0: + if isinstance(execution_name, str) and len(execution_name.strip()) == 0: raise click.UsageError('Parameter --execution-name cannot be whitespace or empty string') kwargs = {} @@ -12219,10 +12218,10 @@ def get_optimizer_statistics_advisor_execution_script(ctx, from_json, managed_da @cli_util.wrap_exceptions def get_optimizer_statistics_collection_operation(ctx, from_json, managed_database_id, optimizer_statistics_collection_operation_id, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(optimizer_statistics_collection_operation_id, six.string_types) and len(optimizer_statistics_collection_operation_id.strip()) == 0: + if isinstance(optimizer_statistics_collection_operation_id, str) and len(optimizer_statistics_collection_operation_id.strip()) == 0: raise click.UsageError('Parameter --optimizer-statistics-collection-operation-id cannot be whitespace or empty string') kwargs = {} @@ -12252,7 +12251,7 @@ def get_optimizer_statistics_collection_operation(ctx, from_json, managed_databa @cli_util.wrap_exceptions def get_pdb_metrics(ctx, from_json, managed_database_id, start_time, end_time, compartment_id, compare_type, filter_by_metric_names): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -12287,7 +12286,7 @@ def get_pdb_metrics(ctx, from_json, managed_database_id, start_time, end_time, c @cli_util.wrap_exceptions def get_peer_database_metrics(ctx, from_json, managed_database_id, start_time, end_time, peer_database_compartment_id, compare_type, filter_by_metric_names): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -12318,10 +12317,10 @@ def get_peer_database_metrics(ctx, from_json, managed_database_id, start_time, e @cli_util.wrap_exceptions def get_preferred_credential(ctx, from_json, managed_database_id, credential_name): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(credential_name, six.string_types) and len(credential_name.strip()) == 0: + if isinstance(credential_name, str) and len(credential_name.strip()) == 0: raise click.UsageError('Parameter --credential-name cannot be whitespace or empty string') kwargs = {} @@ -12346,10 +12345,10 @@ def get_preferred_credential(ctx, from_json, managed_database_id, credential_nam @cli_util.wrap_exceptions def get_sql_plan_baseline(ctx, from_json, managed_database_id, plan_name, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(plan_name, six.string_types) and len(plan_name.strip()) == 0: + if isinstance(plan_name, str) and len(plan_name.strip()) == 0: raise click.UsageError('Parameter --plan-name cannot be whitespace or empty string') kwargs = {} @@ -12375,7 +12374,7 @@ def get_sql_plan_baseline(ctx, from_json, managed_database_id, plan_name, opc_na @cli_util.wrap_exceptions def get_sql_plan_baseline_configuration(ctx, from_json, managed_database_id, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -12401,10 +12400,10 @@ def get_sql_plan_baseline_configuration(ctx, from_json, managed_database_id, opc @cli_util.wrap_exceptions def get_tablespace(ctx, from_json, managed_database_id, tablespace_name, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -12429,7 +12428,7 @@ def get_tablespace(ctx, from_json, managed_database_id, tablespace_name, opc_nam @cli_util.wrap_exceptions def get_top_sql_cpu_activity(ctx, from_json, external_exadata_storage_server_id): - if isinstance(external_exadata_storage_server_id, six.string_types) and len(external_exadata_storage_server_id.strip()) == 0: + if isinstance(external_exadata_storage_server_id, str) and len(external_exadata_storage_server_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-server-id cannot be whitespace or empty string') kwargs = {} @@ -12453,10 +12452,10 @@ def get_top_sql_cpu_activity(ctx, from_json, external_exadata_storage_server_id) @cli_util.wrap_exceptions def get_user(ctx, from_json, managed_database_id, user_name, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(user_name, six.string_types) and len(user_name.strip()) == 0: + if isinstance(user_name, str) and len(user_name.strip()) == 0: raise click.UsageError('Parameter --user-name cannot be whitespace or empty string') kwargs = {} @@ -12481,7 +12480,7 @@ def get_user(ctx, from_json, managed_database_id, user_name, opc_named_credentia @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -12506,10 +12505,10 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def implement_optimizer_statistics_advisor_recommendations(ctx, from_json, managed_database_id, execution_name, task_name, job_details): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(execution_name, six.string_types) and len(execution_name.strip()) == 0: + if isinstance(execution_name, str) and len(execution_name.strip()) == 0: raise click.UsageError('Parameter --execution-name cannot be whitespace or empty string') kwargs = {} @@ -12548,7 +12547,7 @@ def list_asm_properties(ctx, from_json, all_pages, page_size, managed_database_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -12608,7 +12607,7 @@ def list_associated_databases(ctx, from_json, all_pages, page_size, db_managemen if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_management_private_endpoint_id, six.string_types) and len(db_management_private_endpoint_id.strip()) == 0: + if isinstance(db_management_private_endpoint_id, str) and len(db_management_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --db-management-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -12676,10 +12675,10 @@ def list_awr_db_snapshots(ctx, from_json, all_pages, page_size, managed_database if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -12757,7 +12756,7 @@ def list_awr_dbs(ctx, from_json, all_pages, page_size, managed_database_id, name if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -12823,7 +12822,7 @@ def list_cloud_asm_disk_groups(ctx, from_json, all_pages, page_size, cloud_asm_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(cloud_asm_id, six.string_types) and len(cloud_asm_id.strip()) == 0: + if isinstance(cloud_asm_id, str) and len(cloud_asm_id.strip()) == 0: raise click.UsageError('Parameter --cloud-asm-id cannot be whitespace or empty string') kwargs = {} @@ -12942,7 +12941,7 @@ def list_cloud_asm_users(ctx, from_json, all_pages, page_size, cloud_asm_id, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(cloud_asm_id, six.string_types) and len(cloud_asm_id.strip()) == 0: + if isinstance(cloud_asm_id, str) and len(cloud_asm_id.strip()) == 0: raise click.UsageError('Parameter --cloud-asm-id cannot be whitespace or empty string') kwargs = {} @@ -13719,7 +13718,7 @@ def list_cloud_listener_services(ctx, from_json, all_pages, page_size, cloud_lis if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(cloud_listener_id, six.string_types) and len(cloud_listener_id.strip()) == 0: + if isinstance(cloud_listener_id, str) and len(cloud_listener_id.strip()) == 0: raise click.UsageError('Parameter --cloud-listener-id cannot be whitespace or empty string') kwargs = {} @@ -13843,10 +13842,10 @@ def list_consumer_group_privileges(ctx, from_json, all_pages, page_size, managed if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(user_name, six.string_types) and len(user_name.strip()) == 0: + if isinstance(user_name, str) and len(user_name.strip()) == 0: raise click.UsageError('Parameter --user-name cannot be whitespace or empty string') kwargs = {} @@ -13912,7 +13911,7 @@ def list_cursor_cache_statements(ctx, from_json, all_pages, page_size, managed_d if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -13976,10 +13975,10 @@ def list_data_access_containers(ctx, from_json, all_pages, page_size, managed_da if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(user_name, six.string_types) and len(user_name.strip()) == 0: + if isinstance(user_name, str) and len(user_name.strip()) == 0: raise click.UsageError('Parameter --user-name cannot be whitespace or empty string') kwargs = {} @@ -14041,7 +14040,7 @@ def list_data_access_containers(ctx, from_json, all_pages, page_size, managed_da @cli_util.wrap_exceptions def list_database_parameters(ctx, from_json, all_pages, managed_database_id, source, name, is_allowed_values_included, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -14154,7 +14153,7 @@ def list_external_asm_disk_groups(ctx, from_json, all_pages, page_size, external if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(external_asm_id, six.string_types) and len(external_asm_id.strip()) == 0: + if isinstance(external_asm_id, str) and len(external_asm_id.strip()) == 0: raise click.UsageError('Parameter --external-asm-id cannot be whitespace or empty string') kwargs = {} @@ -14273,7 +14272,7 @@ def list_external_asm_users(ctx, from_json, all_pages, page_size, external_asm_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(external_asm_id, six.string_types) and len(external_asm_id.strip()) == 0: + if isinstance(external_asm_id, str) and len(external_asm_id.strip()) == 0: raise click.UsageError('Parameter --external-asm-id cannot be whitespace or empty string') kwargs = {} @@ -15043,7 +15042,7 @@ def list_external_listener_services(ctx, from_json, all_pages, page_size, extern if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(external_listener_id, six.string_types) and len(external_listener_id.strip()) == 0: + if isinstance(external_listener_id, str) and len(external_listener_id.strip()) == 0: raise click.UsageError('Parameter --external-listener-id cannot be whitespace or empty string') kwargs = {} @@ -15698,10 +15697,10 @@ def list_object_privileges(ctx, from_json, all_pages, page_size, managed_databas if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(user_name, six.string_types) and len(user_name.strip()) == 0: + if isinstance(user_name, str) and len(user_name.strip()) == 0: raise click.UsageError('Parameter --user-name cannot be whitespace or empty string') kwargs = {} @@ -15760,7 +15759,7 @@ def list_object_privileges(ctx, from_json, all_pages, page_size, managed_databas @cli_util.wrap_exceptions def list_optimizer_statistics_advisor_executions(ctx, from_json, all_pages, managed_database_id, start_time_greater_than_or_equal_to, end_time_less_than_or_equal_to, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -15800,7 +15799,7 @@ def list_optimizer_statistics_collection_aggregations(ctx, from_json, all_pages, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -15869,7 +15868,7 @@ def list_optimizer_statistics_collection_operations(ctx, from_json, all_pages, p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -15928,7 +15927,7 @@ def list_optimizer_statistics_collection_operations(ctx, from_json, all_pages, p @cli_util.wrap_exceptions def list_preferred_credentials(ctx, from_json, all_pages, managed_database_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -15962,10 +15961,10 @@ def list_proxied_for_users(ctx, from_json, all_pages, page_size, managed_databas if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(user_name, six.string_types) and len(user_name.strip()) == 0: + if isinstance(user_name, str) and len(user_name.strip()) == 0: raise click.UsageError('Parameter --user-name cannot be whitespace or empty string') kwargs = {} @@ -16032,10 +16031,10 @@ def list_proxy_users(ctx, from_json, all_pages, page_size, managed_database_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(user_name, six.string_types) and len(user_name.strip()) == 0: + if isinstance(user_name, str) and len(user_name.strip()) == 0: raise click.UsageError('Parameter --user-name cannot be whitespace or empty string') kwargs = {} @@ -16102,10 +16101,10 @@ def list_roles(ctx, from_json, all_pages, page_size, managed_database_id, user_n if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(user_name, six.string_types) and len(user_name.strip()) == 0: + if isinstance(user_name, str) and len(user_name.strip()) == 0: raise click.UsageError('Parameter --user-name cannot be whitespace or empty string') kwargs = {} @@ -16171,7 +16170,7 @@ def list_sql_plan_baseline_jobs(ctx, from_json, all_pages, page_size, managed_da if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -16246,7 +16245,7 @@ def list_sql_plan_baselines(ctx, from_json, all_pages, page_size, managed_databa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -16334,10 +16333,10 @@ def list_system_privileges(ctx, from_json, all_pages, page_size, managed_databas if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(user_name, six.string_types) and len(user_name.strip()) == 0: + if isinstance(user_name, str) and len(user_name.strip()) == 0: raise click.UsageError('Parameter --user-name cannot be whitespace or empty string') kwargs = {} @@ -16394,7 +16393,7 @@ def list_system_privileges(ctx, from_json, all_pages, page_size, managed_databas @cli_util.wrap_exceptions def list_table_statistics(ctx, from_json, all_pages, managed_database_id, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -16429,7 +16428,7 @@ def list_tablespaces(ctx, from_json, all_pages, page_size, managed_database_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -16492,7 +16491,7 @@ def list_users(ctx, from_json, all_pages, page_size, managed_database_id, name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -16553,7 +16552,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -16610,7 +16609,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -16730,7 +16729,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def load_sql_plan_baselines_from_awr(ctx, from_json, managed_database_id, job_name, begin_snapshot, end_snapshot, job_description, sql_text_filter, is_fixed, is_enabled, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -16788,7 +16787,7 @@ def load_sql_plan_baselines_from_awr(ctx, from_json, managed_database_id, job_na @cli_util.wrap_exceptions def load_sql_plan_baselines_from_awr_managed_database_password_credential(ctx, from_json, managed_database_id, job_name, begin_snapshot, end_snapshot, credentials_username, credentials_role, credentials_password, job_description, sql_text_filter, is_fixed, is_enabled, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -16849,7 +16848,7 @@ def load_sql_plan_baselines_from_awr_managed_database_password_credential(ctx, f @cli_util.wrap_exceptions def load_sql_plan_baselines_from_awr_managed_database_secret_credential(ctx, from_json, managed_database_id, job_name, begin_snapshot, end_snapshot, credentials_username, credentials_role, credentials_password_secret_id, job_description, sql_text_filter, is_fixed, is_enabled, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -16910,7 +16909,7 @@ def load_sql_plan_baselines_from_awr_managed_database_secret_credential(ctx, fro @cli_util.wrap_exceptions def load_sql_plan_baselines_from_awr_database_secret_credential_details(ctx, from_json, managed_database_id, job_name, begin_snapshot, end_snapshot, database_credential_password_secret_id, job_description, sql_text_filter, is_fixed, is_enabled, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -16973,7 +16972,7 @@ def load_sql_plan_baselines_from_awr_database_secret_credential_details(ctx, fro @cli_util.wrap_exceptions def load_sql_plan_baselines_from_awr_database_named_credential_details(ctx, from_json, managed_database_id, job_name, begin_snapshot, end_snapshot, database_credential_named_credential_id, job_description, sql_text_filter, is_fixed, is_enabled, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -17032,7 +17031,7 @@ def load_sql_plan_baselines_from_awr_database_named_credential_details(ctx, from @cli_util.wrap_exceptions def load_sql_plan_baselines_from_awr_database_password_credential_details(ctx, from_json, managed_database_id, job_name, begin_snapshot, end_snapshot, database_credential_password, job_description, sql_text_filter, is_fixed, is_enabled, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -17100,7 +17099,7 @@ def load_sql_plan_baselines_from_awr_database_password_credential_details(ctx, f @cli_util.wrap_exceptions def load_sql_plan_baselines_from_cursor_cache(ctx, from_json, managed_database_id, job_name, job_description, sql_id, plan_hash, sql_text, sql_handle, filter_name, filter_value, is_fixed, is_enabled, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -17176,7 +17175,7 @@ def load_sql_plan_baselines_from_cursor_cache(ctx, from_json, managed_database_i @cli_util.wrap_exceptions def load_sql_plan_baselines_from_cursor_cache_managed_database_password_credential(ctx, from_json, managed_database_id, job_name, credentials_username, credentials_role, credentials_password, job_description, sql_id, plan_hash, sql_text, sql_handle, filter_name, filter_value, is_fixed, is_enabled, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -17255,7 +17254,7 @@ def load_sql_plan_baselines_from_cursor_cache_managed_database_password_credenti @cli_util.wrap_exceptions def load_sql_plan_baselines_from_cursor_cache_managed_database_secret_credential(ctx, from_json, managed_database_id, job_name, credentials_username, credentials_role, credentials_password_secret_id, job_description, sql_id, plan_hash, sql_text, sql_handle, filter_name, filter_value, is_fixed, is_enabled, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -17334,7 +17333,7 @@ def load_sql_plan_baselines_from_cursor_cache_managed_database_secret_credential @cli_util.wrap_exceptions def load_sql_plan_baselines_from_cursor_cache_database_secret_credential_details(ctx, from_json, managed_database_id, job_name, database_credential_password_secret_id, job_description, sql_id, plan_hash, sql_text, sql_handle, filter_name, filter_value, is_fixed, is_enabled, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -17415,7 +17414,7 @@ def load_sql_plan_baselines_from_cursor_cache_database_secret_credential_details @cli_util.wrap_exceptions def load_sql_plan_baselines_from_cursor_cache_database_named_credential_details(ctx, from_json, managed_database_id, job_name, database_credential_named_credential_id, job_description, sql_id, plan_hash, sql_text, sql_handle, filter_name, filter_value, is_fixed, is_enabled, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -17492,7 +17491,7 @@ def load_sql_plan_baselines_from_cursor_cache_database_named_credential_details( @cli_util.wrap_exceptions def load_sql_plan_baselines_from_cursor_cache_database_password_credential_details(ctx, from_json, managed_database_id, job_name, database_credential_password, job_description, sql_id, plan_hash, sql_text, sql_handle, filter_name, filter_value, is_fixed, is_enabled, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -17564,7 +17563,7 @@ def load_sql_plan_baselines_from_cursor_cache_database_password_credential_detai @cli_util.wrap_exceptions def modify_autonomous_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, feature_details, if_match): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -17626,7 +17625,7 @@ def modify_autonomous_database_management_feature(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def modify_autonomous_database_management_feature_autonomous_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, feature_details_database_connection_details, if_match, feature_details_connector_details): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -17694,7 +17693,7 @@ def modify_autonomous_database_management_feature_autonomous_database_sql_watch_ @cli_util.wrap_exceptions def modify_autonomous_database_management_feature_autonomous_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, feature_details_database_connection_details, if_match, feature_details_connector_details): - if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0: + if isinstance(autonomous_database_id, str) and len(autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -17761,7 +17760,7 @@ def modify_autonomous_database_management_feature_autonomous_database_diagnostic @cli_util.wrap_exceptions def modify_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, feature_details, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -17826,7 +17825,7 @@ def modify_database_management_feature(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def modify_database_management_feature_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, feature_details_database_connection_details, feature_details_connector_details, feature_details_management_type, if_match, feature_details_is_auto_enable_pluggable_database, feature_details_can_enable_all_current_pdbs): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -17899,7 +17898,7 @@ def modify_database_management_feature_database_diagnostics_and_management_featu @cli_util.wrap_exceptions def modify_database_management_feature_database_lifecycle_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, feature_details_database_connection_details, feature_details_connector_details, if_match): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -17967,7 +17966,7 @@ def modify_database_management_feature_database_lifecycle_management_feature_det @cli_util.wrap_exceptions def modify_database_management_feature_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_id, feature_details_database_connection_details, feature_details_connector_details, if_match, feature_details_can_enable_all_current_pdbs, feature_details_is_auto_enable_pluggable_database): - if isinstance(database_id, six.string_types) and len(database_id.strip()) == 0: + if isinstance(database_id, str) and len(database_id.strip()) == 0: raise click.UsageError('Parameter --database-id cannot be whitespace or empty string') kwargs = {} @@ -18038,7 +18037,7 @@ def modify_database_management_feature_database_sql_watch_feature_details(ctx, f @cli_util.wrap_exceptions def modify_external_container_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, feature_details, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -18100,7 +18099,7 @@ def modify_external_container_database_management_feature(ctx, from_json, wait_f @cli_util.wrap_exceptions def modify_external_container_database_management_feature_external_database_lifecycle_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, feature_details_connector_details, feature_details_license_model, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -18165,7 +18164,7 @@ def modify_external_container_database_management_feature_external_database_life @cli_util.wrap_exceptions def modify_external_container_database_management_feature_external_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, feature_details_connector_details, if_match): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -18232,7 +18231,7 @@ def modify_external_container_database_management_feature_external_database_sql_ @cli_util.wrap_exceptions def modify_external_container_database_management_feature_external_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_container_database_id, feature_details_connector_details, feature_details_license_model, if_match, feature_details_can_enable_all_current_pdbs, feature_details_is_auto_enable_pluggable_database): - if isinstance(external_container_database_id, six.string_types) and len(external_container_database_id.strip()) == 0: + if isinstance(external_container_database_id, str) and len(external_container_database_id.strip()) == 0: raise click.UsageError('Parameter --external-container-database-id cannot be whitespace or empty string') kwargs = {} @@ -18303,7 +18302,7 @@ def modify_external_container_database_management_feature_external_database_diag @cli_util.wrap_exceptions def modify_pluggable_database_management_feature(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, feature_details, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -18368,7 +18367,7 @@ def modify_pluggable_database_management_feature(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def modify_pluggable_database_management_feature_database_diagnostics_and_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, feature_details_database_connection_details, feature_details_connector_details, feature_details_management_type, if_match, feature_details_is_auto_enable_pluggable_database, feature_details_can_enable_all_current_pdbs): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -18441,7 +18440,7 @@ def modify_pluggable_database_management_feature_database_diagnostics_and_manage @cli_util.wrap_exceptions def modify_pluggable_database_management_feature_database_lifecycle_management_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, feature_details_database_connection_details, feature_details_connector_details, if_match): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -18509,7 +18508,7 @@ def modify_pluggable_database_management_feature_database_lifecycle_management_f @cli_util.wrap_exceptions def modify_pluggable_database_management_feature_database_sql_watch_feature_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pluggable_database_id, feature_details_database_connection_details, feature_details_connector_details, if_match, feature_details_can_enable_all_current_pdbs, feature_details_is_auto_enable_pluggable_database): - if isinstance(pluggable_database_id, six.string_types) and len(pluggable_database_id.strip()) == 0: + if isinstance(pluggable_database_id, str) and len(pluggable_database_id.strip()) == 0: raise click.UsageError('Parameter --pluggable-database-id cannot be whitespace or empty string') kwargs = {} @@ -18579,7 +18578,7 @@ def modify_pluggable_database_management_feature_database_sql_watch_feature_deta @cli_util.wrap_exceptions def patch_cloud_db_system_discovery(ctx, from_json, cloud_db_system_discovery_id, items, if_match): - if isinstance(cloud_db_system_discovery_id, six.string_types) and len(cloud_db_system_discovery_id.strip()) == 0: + if isinstance(cloud_db_system_discovery_id, str) and len(cloud_db_system_discovery_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -18614,7 +18613,7 @@ def patch_cloud_db_system_discovery(ctx, from_json, cloud_db_system_discovery_id @cli_util.wrap_exceptions def patch_external_db_system_discovery(ctx, from_json, external_db_system_discovery_id, items, if_match): - if isinstance(external_db_system_discovery_id, six.string_types) and len(external_db_system_discovery_id.strip()) == 0: + if isinstance(external_db_system_discovery_id, str) and len(external_db_system_discovery_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -18650,10 +18649,10 @@ def patch_external_db_system_discovery(ctx, from_json, external_db_system_discov @cli_util.wrap_exceptions def remove_data_file(ctx, from_json, managed_database_id, tablespace_name, file_type, data_file, credential_details, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -18695,10 +18694,10 @@ def remove_data_file(ctx, from_json, managed_database_id, tablespace_name, file_ @cli_util.wrap_exceptions def remove_data_file_tablespace_admin_password_credential_details(ctx, from_json, managed_database_id, tablespace_name, file_type, data_file, credential_details_username, credential_details_role, credential_details_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -18743,10 +18742,10 @@ def remove_data_file_tablespace_admin_password_credential_details(ctx, from_json @cli_util.wrap_exceptions def remove_data_file_tablespace_admin_secret_credential_details(ctx, from_json, managed_database_id, tablespace_name, file_type, data_file, credential_details_username, credential_details_role, credential_details_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -18791,10 +18790,10 @@ def remove_data_file_tablespace_admin_secret_credential_details(ctx, from_json, @cli_util.wrap_exceptions def remove_data_file_database_secret_credential_details(ctx, from_json, managed_database_id, tablespace_name, file_type, data_file, database_credential_password_secret_id, credential_details, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -18841,10 +18840,10 @@ def remove_data_file_database_secret_credential_details(ctx, from_json, managed_ @cli_util.wrap_exceptions def remove_data_file_database_named_credential_details(ctx, from_json, managed_database_id, tablespace_name, file_type, data_file, database_credential_named_credential_id, credential_details): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -18887,10 +18886,10 @@ def remove_data_file_database_named_credential_details(ctx, from_json, managed_d @cli_util.wrap_exceptions def remove_data_file_database_password_credential_details(ctx, from_json, managed_database_id, tablespace_name, file_type, data_file, database_credential_password, credential_details, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -18933,7 +18932,7 @@ def remove_data_file_database_password_credential_details(ctx, from_json, manage @cli_util.wrap_exceptions def remove_managed_database_from_managed_database_group(ctx, from_json, managed_database_group_id, managed_database_id): - if isinstance(managed_database_group_id, six.string_types) and len(managed_database_group_id.strip()) == 0: + if isinstance(managed_database_group_id, str) and len(managed_database_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-group-id cannot be whitespace or empty string') kwargs = {} @@ -18966,7 +18965,7 @@ def remove_managed_database_from_managed_database_group(ctx, from_json, managed_ @cli_util.wrap_exceptions def reset_database_parameters(ctx, from_json, managed_database_id, scope, parameters, credentials, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -19008,7 +19007,7 @@ def reset_database_parameters(ctx, from_json, managed_database_id, scope, parame @cli_util.wrap_exceptions def reset_database_parameters_database_secret_credential_details(ctx, from_json, managed_database_id, scope, parameters, database_credential_password_secret_id, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -19055,7 +19054,7 @@ def reset_database_parameters_database_secret_credential_details(ctx, from_json, @cli_util.wrap_exceptions def reset_database_parameters_database_named_credential_details(ctx, from_json, managed_database_id, scope, parameters, database_credential_named_credential_id, credentials): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -19098,7 +19097,7 @@ def reset_database_parameters_database_named_credential_details(ctx, from_json, @cli_util.wrap_exceptions def reset_database_parameters_database_password_credential_details(ctx, from_json, managed_database_id, scope, parameters, database_credential_password, credentials, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -19149,10 +19148,10 @@ def reset_database_parameters_database_password_credential_details(ctx, from_jso @cli_util.wrap_exceptions def resize_data_file(ctx, from_json, managed_database_id, tablespace_name, file_type, data_file, credential_details, database_credential, file_size, is_auto_extensible, auto_extend_next_size, auto_extend_max_size, is_max_size_unlimited): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') kwargs = {} @@ -19205,7 +19204,7 @@ def resize_data_file(ctx, from_json, managed_database_id, tablespace_name, file_ @cli_util.wrap_exceptions def run_historic_addm(ctx, from_json, managed_database_id, start_snapshot_id, end_snapshot_id, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -19248,10 +19247,10 @@ def run_historic_addm(ctx, from_json, managed_database_id, start_snapshot_id, en @cli_util.wrap_exceptions def summarize_awr_db_cpu_usages(ctx, from_json, managed_database_id, awr_db_id, inst_num, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, session_type, container_id, page, limit, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -19311,10 +19310,10 @@ def summarize_awr_db_cpu_usages(ctx, from_json, managed_database_id, awr_db_id, @cli_util.wrap_exceptions def summarize_awr_db_metrics(ctx, from_json, managed_database_id, awr_db_id, name, inst_num, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, container_id, page, limit, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -19373,10 +19372,10 @@ def summarize_awr_db_metrics(ctx, from_json, managed_database_id, awr_db_id, nam @cli_util.wrap_exceptions def summarize_awr_db_parameter_changes(ctx, from_json, managed_database_id, awr_db_id, name, inst_num, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, container_id, page, limit, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -19443,10 +19442,10 @@ def summarize_awr_db_parameter_changes(ctx, from_json, managed_database_id, awr_ @cli_util.wrap_exceptions def summarize_awr_db_parameters(ctx, from_json, managed_database_id, awr_db_id, inst_num, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, container_id, name, name_contains, value_changed, value_default, value_modified, page, limit, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -19509,7 +19508,7 @@ def summarize_awr_db_parameters(ctx, from_json, managed_database_id, awr_db_id, @cli_util.wrap_exceptions def summarize_awr_db_snapshot_ranges(ctx, from_json, managed_database_id, name, time_greater_than_or_equal_to, time_less_than_or_equal_to, page, limit, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -19560,10 +19559,10 @@ def summarize_awr_db_snapshot_ranges(ctx, from_json, managed_database_id, name, @cli_util.wrap_exceptions def summarize_awr_db_sysstats(ctx, from_json, managed_database_id, awr_db_id, name, inst_num, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, container_id, page, limit, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -19621,10 +19620,10 @@ def summarize_awr_db_sysstats(ctx, from_json, managed_database_id, awr_db_id, na @cli_util.wrap_exceptions def summarize_awr_db_top_wait_events(ctx, from_json, managed_database_id, awr_db_id, inst_num, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, session_type, container_id, top_n, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -19685,10 +19684,10 @@ def summarize_awr_db_top_wait_events(ctx, from_json, managed_database_id, awr_db @cli_util.wrap_exceptions def summarize_awr_db_wait_event_buckets(ctx, from_json, managed_database_id, awr_db_id, name, inst_num, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, num_bucket, min_value, max_value, container_id, page, limit, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -19754,10 +19753,10 @@ def summarize_awr_db_wait_event_buckets(ctx, from_json, managed_database_id, awr @cli_util.wrap_exceptions def summarize_awr_db_wait_events(ctx, from_json, managed_database_id, awr_db_id, inst_num, begin_sn_id_greater_than_or_equal_to, end_sn_id_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, name, session_type, container_id, page, limit, sort_by, sort_order, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(awr_db_id, six.string_types) and len(awr_db_id.strip()) == 0: + if isinstance(awr_db_id, str) and len(awr_db_id.strip()) == 0: raise click.UsageError('Parameter --awr-db-id cannot be whitespace or empty string') kwargs = {} @@ -19811,7 +19810,7 @@ def summarize_awr_db_wait_events(ctx, from_json, managed_database_id, awr_db_id, @cli_util.wrap_exceptions def summarize_cloud_asm_metrics(ctx, from_json, cloud_asm_id, start_time, end_time, page, limit, filter_by_metric_names): - if isinstance(cloud_asm_id, six.string_types) and len(cloud_asm_id.strip()) == 0: + if isinstance(cloud_asm_id, str) and len(cloud_asm_id.strip()) == 0: raise click.UsageError('Parameter --cloud-asm-id cannot be whitespace or empty string') kwargs = {} @@ -19846,7 +19845,7 @@ def summarize_cloud_asm_metrics(ctx, from_json, cloud_asm_id, start_time, end_ti @cli_util.wrap_exceptions def summarize_cloud_cluster_metrics(ctx, from_json, cloud_cluster_id, start_time, end_time, page, limit, filter_by_metric_names): - if isinstance(cloud_cluster_id, six.string_types) and len(cloud_cluster_id.strip()) == 0: + if isinstance(cloud_cluster_id, str) and len(cloud_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -19881,7 +19880,7 @@ def summarize_cloud_cluster_metrics(ctx, from_json, cloud_cluster_id, start_time @cli_util.wrap_exceptions def summarize_cloud_db_node_metrics(ctx, from_json, cloud_db_node_id, start_time, end_time, page, limit, filter_by_metric_names): - if isinstance(cloud_db_node_id, six.string_types) and len(cloud_db_node_id.strip()) == 0: + if isinstance(cloud_db_node_id, str) and len(cloud_db_node_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-node-id cannot be whitespace or empty string') kwargs = {} @@ -19916,7 +19915,7 @@ def summarize_cloud_db_node_metrics(ctx, from_json, cloud_db_node_id, start_time @cli_util.wrap_exceptions def summarize_cloud_db_system_availability_metrics(ctx, from_json, cloud_db_system_id, start_time, end_time, page, limit, filter_by_component_types): - if isinstance(cloud_db_system_id, six.string_types) and len(cloud_db_system_id.strip()) == 0: + if isinstance(cloud_db_system_id, str) and len(cloud_db_system_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -19951,7 +19950,7 @@ def summarize_cloud_db_system_availability_metrics(ctx, from_json, cloud_db_syst @cli_util.wrap_exceptions def summarize_cloud_listener_metrics(ctx, from_json, cloud_listener_id, start_time, end_time, page, limit, filter_by_metric_names): - if isinstance(cloud_listener_id, six.string_types) and len(cloud_listener_id.strip()) == 0: + if isinstance(cloud_listener_id, str) and len(cloud_listener_id.strip()) == 0: raise click.UsageError('Parameter --cloud-listener-id cannot be whitespace or empty string') kwargs = {} @@ -19986,7 +19985,7 @@ def summarize_cloud_listener_metrics(ctx, from_json, cloud_listener_id, start_ti @cli_util.wrap_exceptions def summarize_external_asm_metrics(ctx, from_json, external_asm_id, start_time, end_time, page, limit, filter_by_metric_names): - if isinstance(external_asm_id, six.string_types) and len(external_asm_id.strip()) == 0: + if isinstance(external_asm_id, str) and len(external_asm_id.strip()) == 0: raise click.UsageError('Parameter --external-asm-id cannot be whitespace or empty string') kwargs = {} @@ -20021,7 +20020,7 @@ def summarize_external_asm_metrics(ctx, from_json, external_asm_id, start_time, @cli_util.wrap_exceptions def summarize_external_cluster_metrics(ctx, from_json, external_cluster_id, start_time, end_time, page, limit, filter_by_metric_names): - if isinstance(external_cluster_id, six.string_types) and len(external_cluster_id.strip()) == 0: + if isinstance(external_cluster_id, str) and len(external_cluster_id.strip()) == 0: raise click.UsageError('Parameter --external-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -20056,7 +20055,7 @@ def summarize_external_cluster_metrics(ctx, from_json, external_cluster_id, star @cli_util.wrap_exceptions def summarize_external_db_node_metrics(ctx, from_json, external_db_node_id, start_time, end_time, page, limit, filter_by_metric_names): - if isinstance(external_db_node_id, six.string_types) and len(external_db_node_id.strip()) == 0: + if isinstance(external_db_node_id, str) and len(external_db_node_id.strip()) == 0: raise click.UsageError('Parameter --external-db-node-id cannot be whitespace or empty string') kwargs = {} @@ -20091,7 +20090,7 @@ def summarize_external_db_node_metrics(ctx, from_json, external_db_node_id, star @cli_util.wrap_exceptions def summarize_external_db_system_availability_metrics(ctx, from_json, external_db_system_id, start_time, end_time, page, limit, filter_by_component_types): - if isinstance(external_db_system_id, six.string_types) and len(external_db_system_id.strip()) == 0: + if isinstance(external_db_system_id, str) and len(external_db_system_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-id cannot be whitespace or empty string') kwargs = {} @@ -20126,7 +20125,7 @@ def summarize_external_db_system_availability_metrics(ctx, from_json, external_d @cli_util.wrap_exceptions def summarize_external_listener_metrics(ctx, from_json, external_listener_id, start_time, end_time, page, limit, filter_by_metric_names): - if isinstance(external_listener_id, six.string_types) and len(external_listener_id.strip()) == 0: + if isinstance(external_listener_id, str) and len(external_listener_id.strip()) == 0: raise click.UsageError('Parameter --external-listener-id cannot be whitespace or empty string') kwargs = {} @@ -20201,7 +20200,7 @@ def summarize_job_executions_statuses(ctx, from_json, compartment_id, start_time @cli_util.wrap_exceptions def summarize_managed_database_availability_metrics(ctx, from_json, managed_database_id, start_time, end_time, page, limit): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -20231,7 +20230,7 @@ def summarize_managed_database_availability_metrics(ctx, from_json, managed_data @cli_util.wrap_exceptions def summarize_sql_plan_baselines(ctx, from_json, managed_database_id, page, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -20259,7 +20258,7 @@ def summarize_sql_plan_baselines(ctx, from_json, managed_database_id, page, opc_ @cli_util.wrap_exceptions def summarize_sql_plan_baselines_by_last_execution(ctx, from_json, managed_database_id, page, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -20286,7 +20285,7 @@ def summarize_sql_plan_baselines_by_last_execution(ctx, from_json, managed_datab @cli_util.wrap_exceptions def test_named_credential(ctx, from_json, named_credential_id, managed_database_id): - if isinstance(named_credential_id, six.string_types) and len(named_credential_id.strip()) == 0: + if isinstance(named_credential_id, str) and len(named_credential_id.strip()) == 0: raise click.UsageError('Parameter --named-credential-id cannot be whitespace or empty string') kwargs = {} @@ -20317,10 +20316,10 @@ def test_named_credential(ctx, from_json, named_credential_id, managed_database_ @cli_util.wrap_exceptions def test_preferred_credential(ctx, from_json, managed_database_id, credential_name, type): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(credential_name, six.string_types) and len(credential_name.strip()) == 0: + if isinstance(credential_name, str) and len(credential_name.strip()) == 0: raise click.UsageError('Parameter --credential-name cannot be whitespace or empty string') kwargs = {} @@ -20350,10 +20349,10 @@ def test_preferred_credential(ctx, from_json, managed_database_id, credential_na @cli_util.wrap_exceptions def test_preferred_credential_test_named_preferred_credential_details(ctx, from_json, managed_database_id, credential_name, named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(credential_name, six.string_types) and len(credential_name.strip()) == 0: + if isinstance(credential_name, str) and len(credential_name.strip()) == 0: raise click.UsageError('Parameter --credential-name cannot be whitespace or empty string') kwargs = {} @@ -20389,10 +20388,10 @@ def test_preferred_credential_test_named_preferred_credential_details(ctx, from_ @cli_util.wrap_exceptions def test_preferred_credential_test_basic_preferred_credential_details(ctx, from_json, managed_database_id, credential_name, user_name, role, password_secret_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(credential_name, six.string_types) and len(credential_name.strip()) == 0: + if isinstance(credential_name, str) and len(credential_name.strip()) == 0: raise click.UsageError('Parameter --credential-name cannot be whitespace or empty string') kwargs = {} @@ -20438,7 +20437,7 @@ def test_preferred_credential_test_basic_preferred_credential_details(ctx, from_ @cli_util.wrap_exceptions def update_cloud_asm(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_asm_id, cloud_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(cloud_asm_id, six.string_types) and len(cloud_asm_id.strip()) == 0: + if isinstance(cloud_asm_id, str) and len(cloud_asm_id.strip()) == 0: raise click.UsageError('Parameter --cloud-asm-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -20513,7 +20512,7 @@ def update_cloud_asm(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_cloud_asm_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_asm_instance_id, freeform_tags, defined_tags, if_match): - if isinstance(cloud_asm_instance_id, six.string_types) and len(cloud_asm_instance_id.strip()) == 0: + if isinstance(cloud_asm_instance_id, str) and len(cloud_asm_instance_id.strip()) == 0: raise click.UsageError('Parameter --cloud-asm-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -20582,7 +20581,7 @@ def update_cloud_asm_instance(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_cloud_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_cluster_id, cloud_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(cloud_cluster_id, six.string_types) and len(cloud_cluster_id.strip()) == 0: + if isinstance(cloud_cluster_id, str) and len(cloud_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cloud-cluster-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -20658,7 +20657,7 @@ def update_cloud_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_cloud_cluster_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_cluster_instance_id, cloud_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(cloud_cluster_instance_id, six.string_types) and len(cloud_cluster_instance_id.strip()) == 0: + if isinstance(cloud_cluster_instance_id, str) and len(cloud_cluster_instance_id.strip()) == 0: raise click.UsageError('Parameter --cloud-cluster-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -20733,7 +20732,7 @@ def update_cloud_cluster_instance(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_cloud_db_home(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_home_id, freeform_tags, defined_tags, if_match): - if isinstance(cloud_db_home_id, six.string_types) and len(cloud_db_home_id.strip()) == 0: + if isinstance(cloud_db_home_id, str) and len(cloud_db_home_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-home-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -20802,7 +20801,7 @@ def update_cloud_db_home(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_cloud_db_node(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_node_id, cloud_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(cloud_db_node_id, six.string_types) and len(cloud_db_node_id.strip()) == 0: + if isinstance(cloud_db_node_id, str) and len(cloud_db_node_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-node-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -20878,7 +20877,7 @@ def update_cloud_db_node(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_cloud_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(cloud_db_system_id, six.string_types) and len(cloud_db_system_id.strip()) == 0: + if isinstance(cloud_db_system_id, str) and len(cloud_db_system_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -20947,7 +20946,7 @@ def update_cloud_db_system(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_cloud_db_system_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_connector_id, connector_type, if_match): - if isinstance(cloud_db_system_connector_id, six.string_types) and len(cloud_db_system_connector_id.strip()) == 0: + if isinstance(cloud_db_system_connector_id, str) and len(cloud_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-connector-id cannot be whitespace or empty string') kwargs = {} @@ -21011,7 +21010,7 @@ def update_cloud_db_system_connector(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_cloud_db_system_connector_update_cloud_db_system_macs_connector_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_connector_id, connection_info, freeform_tags, defined_tags, if_match): - if isinstance(cloud_db_system_connector_id, six.string_types) and len(cloud_db_system_connector_id.strip()) == 0: + if isinstance(cloud_db_system_connector_id, str) and len(cloud_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-connector-id cannot be whitespace or empty string') if not force: if connection_info or freeform_tags or defined_tags: @@ -21089,7 +21088,7 @@ def update_cloud_db_system_connector_update_cloud_db_system_macs_connector_detai @cli_util.wrap_exceptions def update_cloud_db_system_discovery(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_db_system_discovery_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(cloud_db_system_discovery_id, six.string_types) and len(cloud_db_system_discovery_id.strip()) == 0: + if isinstance(cloud_db_system_discovery_id, str) and len(cloud_db_system_discovery_id.strip()) == 0: raise click.UsageError('Parameter --cloud-db-system-discovery-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21165,7 +21164,7 @@ def update_cloud_db_system_discovery(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_cloud_exadata_infrastructure(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_infrastructure_id, discovery_key, license_model, display_name, vm_cluster_ids, storage_server_names, freeform_tags, defined_tags, if_match): - if isinstance(cloud_exadata_infrastructure_id, six.string_types) and len(cloud_exadata_infrastructure_id.strip()) == 0: + if isinstance(cloud_exadata_infrastructure_id, str) and len(cloud_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-infrastructure-id cannot be whitespace or empty string') if not force: if vm_cluster_ids or storage_server_names or freeform_tags or defined_tags: @@ -21251,7 +21250,7 @@ def update_cloud_exadata_infrastructure(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_cloud_exadata_storage_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_storage_connector_id, display_name, connection_uri, credential_info, freeform_tags, defined_tags, if_match): - if isinstance(cloud_exadata_storage_connector_id, six.string_types) and len(cloud_exadata_storage_connector_id.strip()) == 0: + if isinstance(cloud_exadata_storage_connector_id, str) and len(cloud_exadata_storage_connector_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-connector-id cannot be whitespace or empty string') if not force: if credential_info or freeform_tags or defined_tags: @@ -21328,7 +21327,7 @@ def update_cloud_exadata_storage_connector(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_cloud_exadata_storage_grid(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_storage_grid_id, freeform_tags, defined_tags, if_match): - if isinstance(cloud_exadata_storage_grid_id, six.string_types) and len(cloud_exadata_storage_grid_id.strip()) == 0: + if isinstance(cloud_exadata_storage_grid_id, str) and len(cloud_exadata_storage_grid_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-grid-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21396,7 +21395,7 @@ def update_cloud_exadata_storage_grid(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_cloud_exadata_storage_server(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_exadata_storage_server_id, freeform_tags, defined_tags, if_match): - if isinstance(cloud_exadata_storage_server_id, six.string_types) and len(cloud_exadata_storage_server_id.strip()) == 0: + if isinstance(cloud_exadata_storage_server_id, str) and len(cloud_exadata_storage_server_id.strip()) == 0: raise click.UsageError('Parameter --cloud-exadata-storage-server-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21465,7 +21464,7 @@ def update_cloud_exadata_storage_server(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_cloud_listener(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cloud_listener_id, cloud_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(cloud_listener_id, six.string_types) and len(cloud_listener_id.strip()) == 0: + if isinstance(cloud_listener_id, str) and len(cloud_listener_id.strip()) == 0: raise click.UsageError('Parameter --cloud-listener-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21546,7 +21545,7 @@ def update_cloud_listener(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_db_management_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_management_private_endpoint_id, name, description, nsg_ids, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(db_management_private_endpoint_id, six.string_types) and len(db_management_private_endpoint_id.strip()) == 0: + if isinstance(db_management_private_endpoint_id, str) and len(db_management_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --db-management-private-endpoint-id cannot be whitespace or empty string') if not force: if nsg_ids or freeform_tags or defined_tags or security_attributes: @@ -21627,7 +21626,7 @@ def update_db_management_private_endpoint(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_external_asm(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_asm_id, external_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(external_asm_id, six.string_types) and len(external_asm_id.strip()) == 0: + if isinstance(external_asm_id, str) and len(external_asm_id.strip()) == 0: raise click.UsageError('Parameter --external-asm-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21702,7 +21701,7 @@ def update_external_asm(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_external_asm_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_asm_instance_id, freeform_tags, defined_tags, if_match): - if isinstance(external_asm_instance_id, six.string_types) and len(external_asm_instance_id.strip()) == 0: + if isinstance(external_asm_instance_id, str) and len(external_asm_instance_id.strip()) == 0: raise click.UsageError('Parameter --external-asm-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21771,7 +21770,7 @@ def update_external_asm_instance(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_external_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_cluster_id, external_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(external_cluster_id, six.string_types) and len(external_cluster_id.strip()) == 0: + if isinstance(external_cluster_id, str) and len(external_cluster_id.strip()) == 0: raise click.UsageError('Parameter --external-cluster-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21847,7 +21846,7 @@ def update_external_cluster(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_external_cluster_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_cluster_instance_id, external_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(external_cluster_instance_id, six.string_types) and len(external_cluster_instance_id.strip()) == 0: + if isinstance(external_cluster_instance_id, str) and len(external_cluster_instance_id.strip()) == 0: raise click.UsageError('Parameter --external-cluster-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21922,7 +21921,7 @@ def update_external_cluster_instance(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_external_db_home(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_home_id, freeform_tags, defined_tags, if_match): - if isinstance(external_db_home_id, six.string_types) and len(external_db_home_id.strip()) == 0: + if isinstance(external_db_home_id, str) and len(external_db_home_id.strip()) == 0: raise click.UsageError('Parameter --external-db-home-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -21991,7 +21990,7 @@ def update_external_db_home(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_external_db_node(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_node_id, external_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(external_db_node_id, six.string_types) and len(external_db_node_id.strip()) == 0: + if isinstance(external_db_node_id, str) and len(external_db_node_id.strip()) == 0: raise click.UsageError('Parameter --external-db-node-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22067,7 +22066,7 @@ def update_external_db_node(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_external_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(external_db_system_id, six.string_types) and len(external_db_system_id.strip()) == 0: + if isinstance(external_db_system_id, str) and len(external_db_system_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22136,7 +22135,7 @@ def update_external_db_system(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_external_db_system_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_connector_id, connector_type, if_match): - if isinstance(external_db_system_connector_id, six.string_types) and len(external_db_system_connector_id.strip()) == 0: + if isinstance(external_db_system_connector_id, str) and len(external_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-connector-id cannot be whitespace or empty string') kwargs = {} @@ -22200,7 +22199,7 @@ def update_external_db_system_connector(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def update_external_db_system_connector_update_external_db_system_macs_connector_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_connector_id, connection_info, freeform_tags, defined_tags, if_match): - if isinstance(external_db_system_connector_id, six.string_types) and len(external_db_system_connector_id.strip()) == 0: + if isinstance(external_db_system_connector_id, str) and len(external_db_system_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-connector-id cannot be whitespace or empty string') if not force: if connection_info or freeform_tags or defined_tags: @@ -22278,7 +22277,7 @@ def update_external_db_system_connector_update_external_db_system_macs_connector @cli_util.wrap_exceptions def update_external_db_system_discovery(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_db_system_discovery_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(external_db_system_discovery_id, six.string_types) and len(external_db_system_discovery_id.strip()) == 0: + if isinstance(external_db_system_discovery_id, str) and len(external_db_system_discovery_id.strip()) == 0: raise click.UsageError('Parameter --external-db-system-discovery-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22355,7 +22354,7 @@ def update_external_db_system_discovery(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_external_exadata_infrastructure(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_exadata_infrastructure_id, compartment_id, discovery_key, license_model, display_name, db_system_ids, storage_server_names, freeform_tags, defined_tags, if_match): - if isinstance(external_exadata_infrastructure_id, six.string_types) and len(external_exadata_infrastructure_id.strip()) == 0: + if isinstance(external_exadata_infrastructure_id, str) and len(external_exadata_infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-infrastructure-id cannot be whitespace or empty string') if not force: if db_system_ids or storage_server_names or freeform_tags or defined_tags: @@ -22442,7 +22441,7 @@ def update_external_exadata_infrastructure(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_external_exadata_storage_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_exadata_storage_connector_id, connector_name, connection_uri, credential_info, freeform_tags, defined_tags, if_match): - if isinstance(external_exadata_storage_connector_id, six.string_types) and len(external_exadata_storage_connector_id.strip()) == 0: + if isinstance(external_exadata_storage_connector_id, str) and len(external_exadata_storage_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-connector-id cannot be whitespace or empty string') if not force: if credential_info or freeform_tags or defined_tags: @@ -22519,7 +22518,7 @@ def update_external_exadata_storage_connector(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_external_exadata_storage_grid(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_exadata_storage_grid_id, freeform_tags, defined_tags, if_match): - if isinstance(external_exadata_storage_grid_id, six.string_types) and len(external_exadata_storage_grid_id.strip()) == 0: + if isinstance(external_exadata_storage_grid_id, str) and len(external_exadata_storage_grid_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-grid-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22587,7 +22586,7 @@ def update_external_exadata_storage_grid(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_external_exadata_storage_server(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_exadata_storage_server_id, freeform_tags, defined_tags, if_match): - if isinstance(external_exadata_storage_server_id, six.string_types) and len(external_exadata_storage_server_id.strip()) == 0: + if isinstance(external_exadata_storage_server_id, str) and len(external_exadata_storage_server_id.strip()) == 0: raise click.UsageError('Parameter --external-exadata-storage-server-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22656,7 +22655,7 @@ def update_external_exadata_storage_server(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_external_listener(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_listener_id, external_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(external_listener_id, six.string_types) and len(external_listener_id.strip()) == 0: + if isinstance(external_listener_id, str) and len(external_listener_id.strip()) == 0: raise click.UsageError('Parameter --external-listener-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -22726,7 +22725,7 @@ def update_external_listener(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_external_mysql_database(ctx, from_json, external_my_sql_database_id, db_name, if_match): - if isinstance(external_my_sql_database_id, six.string_types) and len(external_my_sql_database_id.strip()) == 0: + if isinstance(external_my_sql_database_id, str) and len(external_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --external-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -22762,7 +22761,7 @@ def update_external_mysql_database(ctx, from_json, external_my_sql_database_id, @cli_util.wrap_exceptions def update_external_mysql_database_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, external_my_sql_database_connector_id, connector_details, compartment_id, if_match): - if isinstance(external_my_sql_database_connector_id, six.string_types) and len(external_my_sql_database_connector_id.strip()) == 0: + if isinstance(external_my_sql_database_connector_id, str) and len(external_my_sql_database_connector_id.strip()) == 0: raise click.UsageError('Parameter --external-my-sql-database-connector-id cannot be whitespace or empty string') if not force: if connector_details: @@ -22835,7 +22834,7 @@ def update_external_mysql_database_connector(ctx, from_json, force, wait_for_sta @cli_util.wrap_exceptions def update_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, description, job_type, timeout, result_location, schedule_details, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if result_location or schedule_details: @@ -22925,7 +22924,7 @@ def update_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_job_update_sql_job_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, description, timeout, result_location, schedule_details, sql_text, in_binds, out_binds, sql_type, user_name, password, secret_id, named_credential_id, role, freeform_tags, defined_tags, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if result_location or schedule_details or in_binds or out_binds or freeform_tags or defined_tags: @@ -23037,7 +23036,7 @@ def update_job_update_sql_job_details(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_job_object_storage_job_execution_result_location(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, description, timeout, schedule_details, if_match, result_location_namespace_name, result_location_bucket_name): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if schedule_details: @@ -23114,7 +23113,7 @@ def update_job_object_storage_job_execution_result_location(ctx, from_json, forc @cli_util.wrap_exceptions def update_managed_database(ctx, from_json, force, managed_database_id, freeform_tags, defined_tags, if_match): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -23160,7 +23159,7 @@ def update_managed_database(ctx, from_json, force, managed_database_id, freeform @cli_util.wrap_exceptions def update_managed_database_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_database_group_id, description, freeform_tags, defined_tags, if_match): - if isinstance(managed_database_group_id, six.string_types) and len(managed_database_group_id.strip()) == 0: + if isinstance(managed_database_group_id, str) and len(managed_database_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -23235,7 +23234,7 @@ def update_managed_database_group(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_named_credential(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, named_credential_id, description, scope, content, associated_resource, freeform_tags, defined_tags, if_match): - if isinstance(named_credential_id, six.string_types) and len(named_credential_id.strip()) == 0: + if isinstance(named_credential_id, str) and len(named_credential_id.strip()) == 0: raise click.UsageError('Parameter --named-credential-id cannot be whitespace or empty string') if not force: if content or freeform_tags or defined_tags: @@ -23322,7 +23321,7 @@ def update_named_credential(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_named_credential_basic_named_credential_content(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, named_credential_id, content_user_name, content_role, content_password_secret_id, content_password_secret_access_mode, description, scope, associated_resource, freeform_tags, defined_tags, if_match): - if isinstance(named_credential_id, six.string_types) and len(named_credential_id.strip()) == 0: + if isinstance(named_credential_id, str) and len(named_credential_id.strip()) == 0: raise click.UsageError('Parameter --named-credential-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -23402,10 +23401,10 @@ def update_named_credential_basic_named_credential_content(ctx, from_json, force @cli_util.wrap_exceptions def update_preferred_credential(ctx, from_json, managed_database_id, credential_name, type, if_match): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(credential_name, six.string_types) and len(credential_name.strip()) == 0: + if isinstance(credential_name, str) and len(credential_name.strip()) == 0: raise click.UsageError('Parameter --credential-name cannot be whitespace or empty string') kwargs = {} @@ -23438,10 +23437,10 @@ def update_preferred_credential(ctx, from_json, managed_database_id, credential_ @cli_util.wrap_exceptions def update_preferred_credential_update_named_preferred_credential_details(ctx, from_json, managed_database_id, credential_name, named_credential_id, if_match): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(credential_name, six.string_types) and len(credential_name.strip()) == 0: + if isinstance(credential_name, str) and len(credential_name.strip()) == 0: raise click.UsageError('Parameter --credential-name cannot be whitespace or empty string') kwargs = {} @@ -23480,10 +23479,10 @@ def update_preferred_credential_update_named_preferred_credential_details(ctx, f @cli_util.wrap_exceptions def update_preferred_credential_update_basic_preferred_credential_details(ctx, from_json, managed_database_id, credential_name, user_name, role, password_secret_id, if_match): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(credential_name, six.string_types) and len(credential_name.strip()) == 0: + if isinstance(credential_name, str) and len(credential_name.strip()) == 0: raise click.UsageError('Parameter --credential-name cannot be whitespace or empty string') kwargs = {} @@ -23536,10 +23535,10 @@ def update_preferred_credential_update_basic_preferred_credential_details(ctx, f @cli_util.wrap_exceptions def update_tablespace(ctx, from_json, force, managed_database_id, tablespace_name, credential_details, database_credential, name, type, file_size, status, is_auto_extensible, auto_extend_next_size, auto_extend_max_size, is_max_size_unlimited, is_default): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(tablespace_name, six.string_types) and len(tablespace_name.strip()) == 0: + if isinstance(tablespace_name, str) and len(tablespace_name.strip()) == 0: raise click.UsageError('Parameter --tablespace-name cannot be whitespace or empty string') if not force: if credential_details or database_credential or file_size or auto_extend_next_size or auto_extend_max_size: diff --git a/services/database_management/src/oci_cli_diagnosability/generated/diagnosability_cli.py b/services/database_management/src/oci_cli_diagnosability/generated/diagnosability_cli.py index 82ff95996..bec0c3f16 100644 --- a/services/database_management/src/oci_cli_diagnosability/generated/diagnosability_cli.py +++ b/services/database_management/src/oci_cli_diagnosability/generated/diagnosability_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -59,7 +58,7 @@ def list_alert_logs(ctx, from_json, all_pages, page_size, managed_database_id, t if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -137,7 +136,7 @@ def list_attention_logs(ctx, from_json, all_pages, page_size, managed_database_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -209,7 +208,7 @@ def list_attention_logs(ctx, from_json, all_pages, page_size, managed_database_i @cli_util.wrap_exceptions def summarize_alert_log_counts(ctx, from_json, managed_database_id, time_greater_than_or_equal_to, time_less_than_or_equal_to, level_filter, group_by, type_filter, log_search_text, is_regular_expression, page, limit, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -261,7 +260,7 @@ def summarize_alert_log_counts(ctx, from_json, managed_database_id, time_greater @cli_util.wrap_exceptions def summarize_attention_log_counts(ctx, from_json, managed_database_id, time_greater_than_or_equal_to, time_less_than_or_equal_to, urgency_filter, group_by, type_filter, log_search_text, is_regular_expression, page, limit, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/database_management/src/oci_cli_managed_my_sql_databases/generated/managedmysqldatabases_cli.py b/services/database_management/src/oci_cli_managed_my_sql_databases/generated/managedmysqldatabases_cli.py index e53193a94..cc736a484 100644 --- a/services/database_management/src/oci_cli_managed_my_sql_databases/generated/managedmysqldatabases_cli.py +++ b/services/database_management/src/oci_cli_managed_my_sql_databases/generated/managedmysqldatabases_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -70,7 +69,7 @@ def managed_my_sql_database_collection_group(): @cli_util.wrap_exceptions def change_mysql_database_management_type(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_my_sql_database_id, management_type, operation, if_match): - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -129,7 +128,7 @@ def change_mysql_database_management_type(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def get_binary_log_information(ctx, from_json, managed_my_sql_database_id): - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -151,7 +150,7 @@ def get_binary_log_information(ctx, from_json, managed_my_sql_database_id): @cli_util.wrap_exceptions def get_general_replication_information(ctx, from_json, managed_my_sql_database_id): - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -208,7 +207,7 @@ def get_heat_wave_fleet_metric(ctx, from_json, compartment_id, start_time, end_t @cli_util.wrap_exceptions def get_managed_my_sql_database(ctx, from_json, managed_my_sql_database_id): - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -275,7 +274,7 @@ def get_my_sql_fleet_metric(ctx, from_json, compartment_id, start_time, end_time @cli_util.wrap_exceptions def get_my_sql_query_details(ctx, from_json, managed_my_sql_database_id, digest): - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -307,7 +306,7 @@ def list_high_availability_members(ctx, from_json, all_pages, page_size, managed if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -364,7 +363,7 @@ def list_inbound_replications(ctx, from_json, all_pages, page_size, managed_my_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -421,7 +420,7 @@ def list_managed_my_sql_database_configuration_data(ctx, from_json, all_pages, p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -481,7 +480,7 @@ def list_managed_my_sql_database_sql_data(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -604,7 +603,7 @@ def list_my_sql_digest_errors(ctx, from_json, all_pages, page_size, managed_my_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -664,7 +663,7 @@ def list_outbound_replications(ctx, from_json, all_pages, page_size, managed_my_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} @@ -716,7 +715,7 @@ def list_outbound_replications(ctx, from_json, all_pages, page_size, managed_my_ @cli_util.wrap_exceptions def summarize_managed_my_sql_database_availability_metrics(ctx, from_json, managed_my_sql_database_id, start_time, end_time, page, limit): - if isinstance(managed_my_sql_database_id, six.string_types) and len(managed_my_sql_database_id.strip()) == 0: + if isinstance(managed_my_sql_database_id, str) and len(managed_my_sql_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-my-sql-database-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/database_management/src/oci_cli_perfhub/generated/perfhub_cli.py b/services/database_management/src/oci_cli_perfhub/generated/perfhub_cli.py index 447a919a6..da6d3a614 100644 --- a/services/database_management/src/oci_cli_perfhub/generated/perfhub_cli.py +++ b/services/database_management/src/oci_cli_perfhub/generated/perfhub_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -46,7 +45,7 @@ def managed_database_group(): @cli_util.wrap_exceptions def modify_snapshot_settings(ctx, from_json, managed_database_id, retention, interval, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/database_management/src/oci_cli_sql_tuning/generated/sqltuning_cli.py b/services/database_management/src/oci_cli_sql_tuning/generated/sqltuning_cli.py index 805c0ea32..6dc82d985 100644 --- a/services/database_management/src/oci_cli_sql_tuning/generated/sqltuning_cli.py +++ b/services/database_management/src/oci_cli_sql_tuning/generated/sqltuning_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -55,7 +54,7 @@ def sql_tuning_set_group(): @cli_util.wrap_exceptions def clone_sql_tuning_task(ctx, from_json, managed_database_id, task_name, original_task_id, task_description, credential_details, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -99,7 +98,7 @@ def clone_sql_tuning_task(ctx, from_json, managed_database_id, task_name, origin @cli_util.wrap_exceptions def clone_sql_tuning_task_sql_tuning_task_secret_credential_details(ctx, from_json, managed_database_id, task_name, original_task_id, credential_details_username, credential_details_role, credential_details_password_secret_id, task_description, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -146,7 +145,7 @@ def clone_sql_tuning_task_sql_tuning_task_secret_credential_details(ctx, from_js @cli_util.wrap_exceptions def clone_sql_tuning_task_sql_tuning_task_password_credential_details(ctx, from_json, managed_database_id, task_name, original_task_id, credential_details_username, credential_details_role, credential_details_password, task_description, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -193,7 +192,7 @@ def clone_sql_tuning_task_sql_tuning_task_password_credential_details(ctx, from_ @cli_util.wrap_exceptions def clone_sql_tuning_task_database_secret_credential_details(ctx, from_json, managed_database_id, task_name, original_task_id, database_credential_password_secret_id, task_description, credential_details, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -242,7 +241,7 @@ def clone_sql_tuning_task_database_secret_credential_details(ctx, from_json, man @cli_util.wrap_exceptions def clone_sql_tuning_task_database_named_credential_details(ctx, from_json, managed_database_id, task_name, original_task_id, database_credential_named_credential_id, task_description, credential_details): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -287,7 +286,7 @@ def clone_sql_tuning_task_database_named_credential_details(ctx, from_json, mana @cli_util.wrap_exceptions def clone_sql_tuning_task_database_password_credential_details(ctx, from_json, managed_database_id, task_name, original_task_id, database_credential_password, task_description, credential_details, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -337,7 +336,7 @@ def clone_sql_tuning_task_database_password_credential_details(ctx, from_json, m @cli_util.wrap_exceptions def create_sql_tuning_set(ctx, from_json, managed_database_id, name, credential_details, database_credential, owner, description, show_sql_only): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -387,7 +386,7 @@ def create_sql_tuning_set(ctx, from_json, managed_database_id, name, credential_ @cli_util.wrap_exceptions def create_sql_tuning_set_sql_tuning_set_admin_password_credential_details(ctx, from_json, managed_database_id, name, credential_details_username, credential_details_role, credential_details_password, database_credential, owner, description, show_sql_only): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -440,7 +439,7 @@ def create_sql_tuning_set_sql_tuning_set_admin_password_credential_details(ctx, @cli_util.wrap_exceptions def create_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(ctx, from_json, managed_database_id, name, credential_details_username, credential_details_role, credential_details_secret_id, database_credential, owner, description, show_sql_only): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -493,7 +492,7 @@ def create_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(ctx, fr @cli_util.wrap_exceptions def create_sql_tuning_set_database_secret_credential_details(ctx, from_json, managed_database_id, name, database_credential_password_secret_id, credential_details, owner, description, show_sql_only, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -548,7 +547,7 @@ def create_sql_tuning_set_database_secret_credential_details(ctx, from_json, man @cli_util.wrap_exceptions def create_sql_tuning_set_database_named_credential_details(ctx, from_json, managed_database_id, name, database_credential_named_credential_id, credential_details, owner, description, show_sql_only): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -599,7 +598,7 @@ def create_sql_tuning_set_database_named_credential_details(ctx, from_json, mana @cli_util.wrap_exceptions def create_sql_tuning_set_database_password_credential_details(ctx, from_json, managed_database_id, name, database_credential_password, credential_details, owner, description, show_sql_only, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -654,10 +653,10 @@ def create_sql_tuning_set_database_password_credential_details(ctx, from_json, m @cli_util.wrap_exceptions def drop_sql_tuning_set(ctx, from_json, managed_database_id, sql_tuning_set_id, name, credential_details, database_credential, owner, show_sql_only): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -705,10 +704,10 @@ def drop_sql_tuning_set(ctx, from_json, managed_database_id, sql_tuning_set_id, @cli_util.wrap_exceptions def drop_sql_tuning_set_sql_tuning_set_admin_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, credential_details_username, credential_details_role, credential_details_password, database_credential, owner, show_sql_only): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -759,10 +758,10 @@ def drop_sql_tuning_set_sql_tuning_set_admin_password_credential_details(ctx, fr @cli_util.wrap_exceptions def drop_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, credential_details_username, credential_details_role, credential_details_secret_id, database_credential, owner, show_sql_only): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -813,10 +812,10 @@ def drop_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(ctx, from @cli_util.wrap_exceptions def drop_sql_tuning_set_database_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, database_credential_password_secret_id, credential_details, owner, show_sql_only, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -869,10 +868,10 @@ def drop_sql_tuning_set_database_secret_credential_details(ctx, from_json, manag @cli_util.wrap_exceptions def drop_sql_tuning_set_database_named_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, database_credential_named_credential_id, credential_details, owner, show_sql_only): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -921,10 +920,10 @@ def drop_sql_tuning_set_database_named_credential_details(ctx, from_json, manage @cli_util.wrap_exceptions def drop_sql_tuning_set_database_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, database_credential_password, credential_details, owner, show_sql_only, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -974,7 +973,7 @@ def drop_sql_tuning_set_database_password_credential_details(ctx, from_json, man @cli_util.wrap_exceptions def drop_sql_tuning_task(ctx, from_json, managed_database_id, task_id, credential_details, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1012,7 +1011,7 @@ def drop_sql_tuning_task(ctx, from_json, managed_database_id, task_id, credentia @cli_util.wrap_exceptions def drop_sql_tuning_task_sql_tuning_task_secret_credential_details(ctx, from_json, managed_database_id, task_id, credential_details_username, credential_details_role, credential_details_password_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1053,7 +1052,7 @@ def drop_sql_tuning_task_sql_tuning_task_secret_credential_details(ctx, from_jso @cli_util.wrap_exceptions def drop_sql_tuning_task_sql_tuning_task_password_credential_details(ctx, from_json, managed_database_id, task_id, credential_details_username, credential_details_role, credential_details_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1094,7 +1093,7 @@ def drop_sql_tuning_task_sql_tuning_task_password_credential_details(ctx, from_j @cli_util.wrap_exceptions def drop_sql_tuning_task_database_secret_credential_details(ctx, from_json, managed_database_id, task_id, database_credential_password_secret_id, credential_details, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1137,7 +1136,7 @@ def drop_sql_tuning_task_database_secret_credential_details(ctx, from_json, mana @cli_util.wrap_exceptions def drop_sql_tuning_task_database_named_credential_details(ctx, from_json, managed_database_id, task_id, database_credential_named_credential_id, credential_details): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1176,7 +1175,7 @@ def drop_sql_tuning_task_database_named_credential_details(ctx, from_json, manag @cli_util.wrap_exceptions def drop_sql_tuning_task_database_password_credential_details(ctx, from_json, managed_database_id, task_id, database_credential_password, credential_details, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1223,10 +1222,10 @@ def drop_sql_tuning_task_database_password_credential_details(ctx, from_json, ma @cli_util.wrap_exceptions def drop_sqls_in_sql_tuning_set(ctx, from_json, managed_database_id, sql_tuning_set_id, name, credential_details, database_credential, show_sql_only, owner, basic_filter): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1278,10 +1277,10 @@ def drop_sqls_in_sql_tuning_set(ctx, from_json, managed_database_id, sql_tuning_ @cli_util.wrap_exceptions def drop_sqls_in_sql_tuning_set_sql_tuning_set_admin_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, credential_details_username, credential_details_role, credential_details_password, database_credential, show_sql_only, owner, basic_filter): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1336,10 +1335,10 @@ def drop_sqls_in_sql_tuning_set_sql_tuning_set_admin_password_credential_details @cli_util.wrap_exceptions def drop_sqls_in_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, credential_details_username, credential_details_role, credential_details_secret_id, database_credential, show_sql_only, owner, basic_filter): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1394,10 +1393,10 @@ def drop_sqls_in_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(c @cli_util.wrap_exceptions def drop_sqls_in_sql_tuning_set_database_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, database_credential_password_secret_id, credential_details, show_sql_only, owner, basic_filter, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1454,10 +1453,10 @@ def drop_sqls_in_sql_tuning_set_database_secret_credential_details(ctx, from_jso @cli_util.wrap_exceptions def drop_sqls_in_sql_tuning_set_database_named_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, database_credential_named_credential_id, credential_details, show_sql_only, owner, basic_filter): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1510,10 +1509,10 @@ def drop_sqls_in_sql_tuning_set_database_named_credential_details(ctx, from_json @cli_util.wrap_exceptions def drop_sqls_in_sql_tuning_set_database_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, database_credential_password, credential_details, show_sql_only, owner, basic_filter, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1575,10 +1574,10 @@ def drop_sqls_in_sql_tuning_set_database_password_credential_details(ctx, from_j @cli_util.wrap_exceptions def fetch_sql_tuning_set(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, credential_details, database_credential, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1648,10 +1647,10 @@ def fetch_sql_tuning_set(ctx, from_json, managed_database_id, sql_tuning_set_id, @cli_util.wrap_exceptions def fetch_sql_tuning_set_sql_tuning_set_admin_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, credential_details_username, credential_details_role, credential_details_password, database_credential, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1724,10 +1723,10 @@ def fetch_sql_tuning_set_sql_tuning_set_admin_password_credential_details(ctx, f @cli_util.wrap_exceptions def fetch_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, credential_details_username, credential_details_role, credential_details_secret_id, database_credential, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1800,10 +1799,10 @@ def fetch_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(ctx, fro @cli_util.wrap_exceptions def fetch_sql_tuning_set_database_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, database_credential_password_secret_id, credential_details, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1878,10 +1877,10 @@ def fetch_sql_tuning_set_database_secret_credential_details(ctx, from_json, mana @cli_util.wrap_exceptions def fetch_sql_tuning_set_database_named_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, database_credential_named_credential_id, credential_details, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -1952,10 +1951,10 @@ def fetch_sql_tuning_set_database_named_credential_details(ctx, from_json, manag @cli_util.wrap_exceptions def fetch_sql_tuning_set_database_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, database_credential_password, credential_details, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -2022,10 +2021,10 @@ def fetch_sql_tuning_set_database_password_credential_details(ctx, from_json, ma @cli_util.wrap_exceptions def get_execution_plan_stats_comparision(ctx, from_json, managed_database_id, sql_tuning_advisor_task_id, sql_object_id, execution_id, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_advisor_task_id, six.string_types) and len(sql_tuning_advisor_task_id.strip()) == 0: + if isinstance(sql_tuning_advisor_task_id, str) and len(sql_tuning_advisor_task_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-advisor-task-id cannot be whitespace or empty string') kwargs = {} @@ -2056,10 +2055,10 @@ def get_execution_plan_stats_comparision(ctx, from_json, managed_database_id, sq @cli_util.wrap_exceptions def get_sql_execution_plan(ctx, from_json, managed_database_id, sql_tuning_advisor_task_id, sql_object_id, attribute, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_advisor_task_id, six.string_types) and len(sql_tuning_advisor_task_id.strip()) == 0: + if isinstance(sql_tuning_advisor_task_id, str) and len(sql_tuning_advisor_task_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-advisor-task-id cannot be whitespace or empty string') kwargs = {} @@ -2093,10 +2092,10 @@ def get_sql_execution_plan(ctx, from_json, managed_database_id, sql_tuning_advis @cli_util.wrap_exceptions def get_sql_tuning_advisor_task_summary_report(ctx, from_json, managed_database_id, sql_tuning_advisor_task_id, search_period, time_greater_than_or_equal_to, time_less_than_or_equal_to, begin_exec_id_greater_than_or_equal_to, end_exec_id_less_than_or_equal_to, opc_named_credential_id): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_advisor_task_id, six.string_types) and len(sql_tuning_advisor_task_id.strip()) == 0: + if isinstance(sql_tuning_advisor_task_id, str) and len(sql_tuning_advisor_task_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-advisor-task-id cannot be whitespace or empty string') kwargs = {} @@ -2148,10 +2147,10 @@ def list_sql_tuning_advisor_task_findings(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_advisor_task_id, six.string_types) and len(sql_tuning_advisor_task_id.strip()) == 0: + if isinstance(sql_tuning_advisor_task_id, str) and len(sql_tuning_advisor_task_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-advisor-task-id cannot be whitespace or empty string') kwargs = {} @@ -2229,10 +2228,10 @@ def list_sql_tuning_advisor_task_recommendations(ctx, from_json, all_pages, page if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_advisor_task_id, six.string_types) and len(sql_tuning_advisor_task_id.strip()) == 0: + if isinstance(sql_tuning_advisor_task_id, str) and len(sql_tuning_advisor_task_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-advisor-task-id cannot be whitespace or empty string') kwargs = {} @@ -2305,7 +2304,7 @@ def list_sql_tuning_advisor_tasks(ctx, from_json, all_pages, page_size, managed_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2375,7 +2374,7 @@ def list_sql_tuning_sets(ctx, from_json, all_pages, page_size, managed_database_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -2457,10 +2456,10 @@ def list_sql_tuning_sets(ctx, from_json, all_pages, page_size, managed_database_ @cli_util.wrap_exceptions def load_sql_tuning_set(ctx, from_json, managed_database_id, sql_tuning_set_id, name, load_type, credential_details, database_credential, show_sql_only, owner, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, total_time_limit, repeat_interval, capture_option, capture_mode, attribute_list, load_option, update_option, update_attributes, update_condition, is_ignore_null, commit_rows, begin_snapshot, end_snapshot, baseline_name): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -2594,10 +2593,10 @@ def load_sql_tuning_set(ctx, from_json, managed_database_id, sql_tuning_set_id, @cli_util.wrap_exceptions def load_sql_tuning_set_sql_tuning_set_admin_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, load_type, credential_details_username, credential_details_role, credential_details_password, database_credential, show_sql_only, owner, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, total_time_limit, repeat_interval, capture_option, capture_mode, attribute_list, load_option, update_option, update_attributes, update_condition, is_ignore_null, commit_rows, begin_snapshot, end_snapshot, baseline_name): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -2734,10 +2733,10 @@ def load_sql_tuning_set_sql_tuning_set_admin_password_credential_details(ctx, fr @cli_util.wrap_exceptions def load_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, load_type, credential_details_username, credential_details_role, credential_details_secret_id, database_credential, show_sql_only, owner, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, total_time_limit, repeat_interval, capture_option, capture_mode, attribute_list, load_option, update_option, update_attributes, update_condition, is_ignore_null, commit_rows, begin_snapshot, end_snapshot, baseline_name): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -2874,10 +2873,10 @@ def load_sql_tuning_set_sql_tuning_set_admin_secret_credential_details(ctx, from @cli_util.wrap_exceptions def load_sql_tuning_set_database_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, load_type, database_credential_password_secret_id, credential_details, show_sql_only, owner, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, total_time_limit, repeat_interval, capture_option, capture_mode, attribute_list, load_option, update_option, update_attributes, update_condition, is_ignore_null, commit_rows, begin_snapshot, end_snapshot, baseline_name, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -3016,10 +3015,10 @@ def load_sql_tuning_set_database_secret_credential_details(ctx, from_json, manag @cli_util.wrap_exceptions def load_sql_tuning_set_database_named_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, load_type, database_credential_named_credential_id, credential_details, show_sql_only, owner, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, total_time_limit, repeat_interval, capture_option, capture_mode, attribute_list, load_option, update_option, update_attributes, update_condition, is_ignore_null, commit_rows, begin_snapshot, end_snapshot, baseline_name): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -3154,10 +3153,10 @@ def load_sql_tuning_set_database_named_credential_details(ctx, from_json, manage @cli_util.wrap_exceptions def load_sql_tuning_set_database_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, load_type, database_credential_password, credential_details, show_sql_only, owner, basic_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, total_time_limit, repeat_interval, capture_option, capture_mode, attribute_list, load_option, update_option, update_attributes, update_condition, is_ignore_null, commit_rows, begin_snapshot, end_snapshot, baseline_name, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -3293,10 +3292,10 @@ def load_sql_tuning_set_database_password_credential_details(ctx, from_json, man @cli_util.wrap_exceptions def save_sql_tuning_set_as(ctx, from_json, managed_database_id, sql_tuning_set_id, name, destination_sql_tuning_set_name, create_new, credential_details, database_credential, show_sql_only, owner, destination_sql_tuning_set_description, destination_sql_tuning_set_owner, basic_filter, plan_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, attribute_list, load_option, update_option, update_condition, update_attributes, is_ignore_null, commit_rows): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -3416,10 +3415,10 @@ def save_sql_tuning_set_as(ctx, from_json, managed_database_id, sql_tuning_set_i @cli_util.wrap_exceptions def save_sql_tuning_set_as_sql_tuning_set_admin_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, destination_sql_tuning_set_name, create_new, credential_details_username, credential_details_role, credential_details_password, database_credential, show_sql_only, owner, destination_sql_tuning_set_description, destination_sql_tuning_set_owner, basic_filter, plan_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, attribute_list, load_option, update_option, update_condition, update_attributes, is_ignore_null, commit_rows): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -3542,10 +3541,10 @@ def save_sql_tuning_set_as_sql_tuning_set_admin_password_credential_details(ctx, @cli_util.wrap_exceptions def save_sql_tuning_set_as_sql_tuning_set_admin_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, destination_sql_tuning_set_name, create_new, credential_details_username, credential_details_role, credential_details_secret_id, database_credential, show_sql_only, owner, destination_sql_tuning_set_description, destination_sql_tuning_set_owner, basic_filter, plan_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, attribute_list, load_option, update_option, update_condition, update_attributes, is_ignore_null, commit_rows): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -3668,10 +3667,10 @@ def save_sql_tuning_set_as_sql_tuning_set_admin_secret_credential_details(ctx, f @cli_util.wrap_exceptions def save_sql_tuning_set_as_database_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, destination_sql_tuning_set_name, create_new, database_credential_password_secret_id, credential_details, show_sql_only, owner, destination_sql_tuning_set_description, destination_sql_tuning_set_owner, basic_filter, plan_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, attribute_list, load_option, update_option, update_condition, update_attributes, is_ignore_null, commit_rows, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -3796,10 +3795,10 @@ def save_sql_tuning_set_as_database_secret_credential_details(ctx, from_json, ma @cli_util.wrap_exceptions def save_sql_tuning_set_as_database_named_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, destination_sql_tuning_set_name, create_new, database_credential_named_credential_id, credential_details, show_sql_only, owner, destination_sql_tuning_set_description, destination_sql_tuning_set_owner, basic_filter, plan_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, attribute_list, load_option, update_option, update_condition, update_attributes, is_ignore_null, commit_rows): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -3920,10 +3919,10 @@ def save_sql_tuning_set_as_database_named_credential_details(ctx, from_json, man @cli_util.wrap_exceptions def save_sql_tuning_set_as_database_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, name, destination_sql_tuning_set_name, create_new, database_credential_password, credential_details, show_sql_only, owner, destination_sql_tuning_set_description, destination_sql_tuning_set_owner, basic_filter, plan_filter, recursive_sql, result_percentage, result_limit, ranking_measure1, ranking_measure2, ranking_measure3, attribute_list, load_option, update_option, update_condition, update_attributes, is_ignore_null, commit_rows, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -4036,7 +4035,7 @@ def save_sql_tuning_set_as_database_password_credential_details(ctx, from_json, @cli_util.wrap_exceptions def start_sql_tuning_task(ctx, from_json, managed_database_id, task_name, total_time_limit_in_minutes, scope, task_description, credential_details, database_credential, statement_time_limit_in_minutes, sql_tuning_set, sql_details, time_started, time_ended): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -4104,7 +4103,7 @@ def start_sql_tuning_task(ctx, from_json, managed_database_id, task_name, total_ @cli_util.wrap_exceptions def start_sql_tuning_task_sql_tuning_task_secret_credential_details(ctx, from_json, managed_database_id, task_name, total_time_limit_in_minutes, scope, credential_details_username, credential_details_role, credential_details_password_secret_id, task_description, database_credential, statement_time_limit_in_minutes, sql_tuning_set, sql_details, time_started, time_ended): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -4175,7 +4174,7 @@ def start_sql_tuning_task_sql_tuning_task_secret_credential_details(ctx, from_js @cli_util.wrap_exceptions def start_sql_tuning_task_sql_tuning_task_password_credential_details(ctx, from_json, managed_database_id, task_name, total_time_limit_in_minutes, scope, credential_details_username, credential_details_role, credential_details_password, task_description, database_credential, statement_time_limit_in_minutes, sql_tuning_set, sql_details, time_started, time_ended): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -4246,7 +4245,7 @@ def start_sql_tuning_task_sql_tuning_task_password_credential_details(ctx, from_ @cli_util.wrap_exceptions def start_sql_tuning_task_database_secret_credential_details(ctx, from_json, managed_database_id, task_name, total_time_limit_in_minutes, scope, database_credential_password_secret_id, task_description, credential_details, statement_time_limit_in_minutes, sql_tuning_set, sql_details, time_started, time_ended, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -4319,7 +4318,7 @@ def start_sql_tuning_task_database_secret_credential_details(ctx, from_json, man @cli_util.wrap_exceptions def start_sql_tuning_task_database_named_credential_details(ctx, from_json, managed_database_id, task_name, total_time_limit_in_minutes, scope, database_credential_named_credential_id, task_description, credential_details, statement_time_limit_in_minutes, sql_tuning_set, sql_details, time_started, time_ended): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -4388,7 +4387,7 @@ def start_sql_tuning_task_database_named_credential_details(ctx, from_json, mana @cli_util.wrap_exceptions def start_sql_tuning_task_database_password_credential_details(ctx, from_json, managed_database_id, task_name, total_time_limit_in_minutes, scope, database_credential_password, task_description, credential_details, statement_time_limit_in_minutes, sql_tuning_set, sql_details, time_started, time_ended, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') kwargs = {} @@ -4454,10 +4453,10 @@ def start_sql_tuning_task_database_password_credential_details(ctx, from_json, m @cli_util.wrap_exceptions def validate_basic_filter(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, basic_filter, credential_details, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -4501,10 +4500,10 @@ def validate_basic_filter(ctx, from_json, managed_database_id, sql_tuning_set_id @cli_util.wrap_exceptions def validate_basic_filter_sql_tuning_set_admin_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, basic_filter, credential_details_username, credential_details_role, credential_details_password, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -4551,10 +4550,10 @@ def validate_basic_filter_sql_tuning_set_admin_password_credential_details(ctx, @cli_util.wrap_exceptions def validate_basic_filter_sql_tuning_set_admin_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, basic_filter, credential_details_username, credential_details_role, credential_details_secret_id, database_credential): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -4601,10 +4600,10 @@ def validate_basic_filter_sql_tuning_set_admin_secret_credential_details(ctx, fr @cli_util.wrap_exceptions def validate_basic_filter_database_secret_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, basic_filter, database_credential_password_secret_id, credential_details, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -4653,10 +4652,10 @@ def validate_basic_filter_database_secret_credential_details(ctx, from_json, man @cli_util.wrap_exceptions def validate_basic_filter_database_named_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, basic_filter, database_credential_named_credential_id, credential_details): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} @@ -4701,10 +4700,10 @@ def validate_basic_filter_database_named_credential_details(ctx, from_json, mana @cli_util.wrap_exceptions def validate_basic_filter_database_password_credential_details(ctx, from_json, managed_database_id, sql_tuning_set_id, owner, name, basic_filter, database_credential_password, credential_details, database_credential_username, database_credential_role): - if isinstance(managed_database_id, six.string_types) and len(managed_database_id.strip()) == 0: + if isinstance(managed_database_id, str) and len(managed_database_id.strip()) == 0: raise click.UsageError('Parameter --managed-database-id cannot be whitespace or empty string') - if isinstance(sql_tuning_set_id, six.string_types) and len(sql_tuning_set_id.strip()) == 0: + if isinstance(sql_tuning_set_id, str) and len(sql_tuning_set_id.strip()) == 0: raise click.UsageError('Parameter --sql-tuning-set-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/database_migration/src/oci_cli_database_migration/generated/databasemigration_cli.py b/services/database_migration/src/oci_cli_database_migration/generated/databasemigration_cli.py index 4d7135d20..41a6985b5 100644 --- a/services/database_migration/src/oci_cli_database_migration/generated/databasemigration_cli.py +++ b/services/database_migration/src/oci_cli_database_migration/generated/databasemigration_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -226,7 +225,7 @@ def binary_group(): @cli_util.wrap_exceptions def abort_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -275,7 +274,7 @@ def abort_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_se @cli_util.wrap_exceptions def add_assessment_objects(ctx, from_json, assessment_id, database_combination, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -307,7 +306,7 @@ def add_assessment_objects(ctx, from_json, assessment_id, database_combination, @cli_util.wrap_exceptions def add_assessment_objects_oracle_assessment_object_collection(ctx, from_json, assessment_id, items, bulk_include_exclude_data, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -343,7 +342,7 @@ def add_assessment_objects_oracle_assessment_object_collection(ctx, from_json, a @cli_util.wrap_exceptions def add_assessment_objects_my_sql_assessment_object_collection(ctx, from_json, assessment_id, items, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -376,7 +375,7 @@ def add_assessment_objects_my_sql_assessment_object_collection(ctx, from_json, a @cli_util.wrap_exceptions def add_migration_objects(ctx, from_json, migration_id, database_combination, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -408,7 +407,7 @@ def add_migration_objects(ctx, from_json, migration_id, database_combination, if @cli_util.wrap_exceptions def add_migration_objects_my_sql_migration_object_collection(ctx, from_json, migration_id, items, bulk_include_exclude_data, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -445,7 +444,7 @@ def add_migration_objects_my_sql_migration_object_collection(ctx, from_json, mig @cli_util.wrap_exceptions def add_migration_objects_oracle_migration_object_collection(ctx, from_json, migration_id, items, bulk_include_exclude_data, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -481,7 +480,7 @@ def add_migration_objects_oracle_migration_object_collection(ctx, from_json, mig @cli_util.wrap_exceptions def change_assessment_compartment(ctx, from_json, assessment_id, compartment_id, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -512,7 +511,7 @@ def change_assessment_compartment(ctx, from_json, assessment_id, compartment_id, @cli_util.wrap_exceptions def change_connection_compartment(ctx, from_json, connection_id, compartment_id, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -543,7 +542,7 @@ def change_connection_compartment(ctx, from_json, connection_id, compartment_id, @cli_util.wrap_exceptions def change_migration_compartment(ctx, from_json, migration_id, compartment_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -583,7 +582,7 @@ def change_migration_compartment(ctx, from_json, migration_id, compartment_id, i @cli_util.wrap_exceptions def clone_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, database_combination, source_database_connection, target_database_connection, display_name, compartment_id, freeform_tags, defined_tags, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -663,7 +662,7 @@ def clone_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def clone_assessment_my_sql_clone_assessment_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, source_database_connection, target_database_connection, display_name, compartment_id, freeform_tags, defined_tags, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -744,7 +743,7 @@ def clone_assessment_my_sql_clone_assessment_details(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def clone_assessment_oracle_clone_assessment_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, source_database_connection, target_database_connection, display_name, compartment_id, freeform_tags, defined_tags, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -827,7 +826,7 @@ def clone_assessment_oracle_clone_assessment_details(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def clone_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, database_combination, source_database_connection_id, target_database_connection_id, display_name, compartment_id, assessment_id, freeform_tags, defined_tags, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -913,7 +912,7 @@ def clone_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def clone_migration_oracle_clone_migration_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, source_database_connection_id, target_database_connection_id, display_name, compartment_id, assessment_id, freeform_tags, defined_tags, source_container_database_connection_id, source_standby_database_connection_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -1004,7 +1003,7 @@ def clone_migration_oracle_clone_migration_details(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def clone_migration_my_sql_clone_migration_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, source_database_connection_id, target_database_connection_id, display_name, compartment_id, assessment_id, freeform_tags, defined_tags, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -1085,7 +1084,7 @@ def clone_migration_my_sql_clone_migration_details(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def collect_traces(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, bucket_name, namespace, object_name_prefix, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -1145,7 +1144,7 @@ def collect_traces(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def connection_diagnostics(ctx, from_json, connection_id, if_match, is_assessment_validation): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -2170,7 +2169,7 @@ def create_migration_create_oracle_migration_details(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def create_parameter_file_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, kind, content, description, name, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2238,7 +2237,7 @@ def create_parameter_file_version(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -2294,7 +2293,7 @@ def delete_assessment(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -2350,7 +2349,7 @@ def delete_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2414,7 +2413,7 @@ def delete_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -2471,10 +2470,10 @@ def delete_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_parameter_file_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, parameter_file_name, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') - if isinstance(parameter_file_name, six.string_types) and len(parameter_file_name.strip()) == 0: + if isinstance(parameter_file_name, str) and len(parameter_file_name.strip()) == 0: raise click.UsageError('Parameter --parameter-file-name cannot be whitespace or empty string') kwargs = {} @@ -2530,7 +2529,7 @@ def delete_parameter_file_version(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def evaluate_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -2581,7 +2580,7 @@ def evaluate_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_advisor_report(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2604,7 +2603,7 @@ def get_advisor_report(ctx, from_json, job_id): @cli_util.wrap_exceptions def get_assessment(ctx, from_json, assessment_id, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -2630,10 +2629,10 @@ def get_assessment(ctx, from_json, assessment_id, if_match): @cli_util.wrap_exceptions def get_assessor(ctx, from_json, assessment_id, assessor_name, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') kwargs = {} @@ -2666,13 +2665,13 @@ def get_assessor(ctx, from_json, assessment_id, assessor_name, if_match): @cli_util.wrap_exceptions def get_assessor_check(ctx, from_json, assessment_id, compartment_id, assessor_name, check_name, display_name, limit, page, sort_by, sort_order): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') - if isinstance(check_name, six.string_types) and len(check_name.strip()) == 0: + if isinstance(check_name, str) and len(check_name.strip()) == 0: raise click.UsageError('Parameter --check-name cannot be whitespace or empty string') kwargs = {} @@ -2707,7 +2706,7 @@ def get_assessor_check(ctx, from_json, assessment_id, compartment_id, assessor_n @cli_util.wrap_exceptions def get_connection(ctx, from_json, connection_id): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -2729,7 +2728,7 @@ def get_connection(ctx, from_json, connection_id): @cli_util.wrap_exceptions def get_job(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2752,7 +2751,7 @@ def get_job(ctx, from_json, job_id): @cli_util.wrap_exceptions def get_job_output_content(ctx, from_json, file, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2797,7 +2796,7 @@ def get_job_output_content(ctx, from_json, file, job_id): @cli_util.wrap_exceptions def get_migration(ctx, from_json, migration_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -2822,10 +2821,10 @@ def get_migration(ctx, from_json, migration_id, if_match): @cli_util.wrap_exceptions def get_parameter_file_version(ctx, from_json, parameter_file_name, job_id): - if isinstance(parameter_file_name, six.string_types) and len(parameter_file_name.strip()) == 0: + if isinstance(parameter_file_name, str) and len(parameter_file_name.strip()) == 0: raise click.UsageError('Parameter --parameter-file-name cannot be whitespace or empty string') - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2850,7 +2849,7 @@ def get_parameter_file_version(ctx, from_json, parameter_file_name, job_id): @cli_util.wrap_exceptions def get_script(ctx, from_json, file, script_id, if_match): - if isinstance(script_id, six.string_types) and len(script_id.strip()) == 0: + if isinstance(script_id, str) and len(script_id.strip()) == 0: raise click.UsageError('Parameter --script-id cannot be whitespace or empty string') kwargs = {} @@ -2896,7 +2895,7 @@ def get_script(ctx, from_json, file, script_id, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2926,10 +2925,10 @@ def list_advisor_report_check_objects(ctx, from_json, all_pages, page_size, job_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') - if isinstance(advisor_report_check_id, six.string_types) and len(advisor_report_check_id.strip()) == 0: + if isinstance(advisor_report_check_id, str) and len(advisor_report_check_id.strip()) == 0: raise click.UsageError('Parameter --advisor-report-check-id cannot be whitespace or empty string') kwargs = {} @@ -2983,7 +2982,7 @@ def list_advisor_report_checks(ctx, from_json, all_pages, page_size, job_id, lim if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -3039,13 +3038,13 @@ def list_affected_objects(ctx, from_json, all_pages, page_size, assessment_id, a if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') - if isinstance(check_name, six.string_types) and len(check_name.strip()) == 0: + if isinstance(check_name, str) and len(check_name.strip()) == 0: raise click.UsageError('Parameter --check-name cannot be whitespace or empty string') kwargs = {} @@ -3163,7 +3162,7 @@ def list_assessment_objects(ctx, from_json, all_pages, page_size, assessment_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -3284,10 +3283,10 @@ def list_assessor_checks(ctx, from_json, all_pages, page_size, assessment_id, co if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') kwargs = {} @@ -3354,7 +3353,7 @@ def list_assessors(ctx, from_json, all_pages, page_size, assessment_id, display_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -3557,7 +3556,7 @@ def list_excluded_objects(ctx, from_json, all_pages, page_size, job_id, limit, p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -3626,7 +3625,7 @@ def list_job_outputs(ctx, from_json, all_pages, page_size, job_id, limit, page): if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -3795,7 +3794,7 @@ def list_migration_objects(ctx, from_json, all_pages, page_size, migration_id, i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -3970,7 +3969,7 @@ def list_parameter_file_versions(ctx, from_json, all_pages, page_size, job_id, n if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -4029,7 +4028,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4086,7 +4085,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4199,10 +4198,10 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def make_current_parameter_file_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, parameter_file_name, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') - if isinstance(parameter_file_name, six.string_types) and len(parameter_file_name.strip()) == 0: + if isinstance(parameter_file_name, str) and len(parameter_file_name.strip()) == 0: raise click.UsageError('Parameter --parameter-file-name cannot be whitespace or empty string') kwargs = {} @@ -4257,13 +4256,13 @@ def make_current_parameter_file_version(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def perform_assessor_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, assessor_name, assessor_action, items, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') - if isinstance(assessor_action, six.string_types) and len(assessor_action.strip()) == 0: + if isinstance(assessor_action, str) and len(assessor_action.strip()) == 0: raise click.UsageError('Parameter --assessor-action cannot be whitespace or empty string') kwargs = {} @@ -4326,10 +4325,10 @@ def perform_assessor_action(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def perform_assessor_action_download_sql(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, assessor_name, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') kwargs = {} @@ -4389,16 +4388,16 @@ def perform_assessor_action_download_sql(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def perform_assessor_check_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, assessor_name, check_name, assessor_check_action, items, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') - if isinstance(check_name, six.string_types) and len(check_name.strip()) == 0: + if isinstance(check_name, str) and len(check_name.strip()) == 0: raise click.UsageError('Parameter --check-name cannot be whitespace or empty string') - if isinstance(assessor_check_action, six.string_types) and len(assessor_check_action.strip()) == 0: + if isinstance(assessor_check_action, str) and len(assessor_check_action.strip()) == 0: raise click.UsageError('Parameter --assessor-check-action cannot be whitespace or empty string') kwargs = {} @@ -4459,7 +4458,7 @@ def perform_assessor_check_action(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def remove_assessment_objects(ctx, from_json, assessment_id, database_combination, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -4491,7 +4490,7 @@ def remove_assessment_objects(ctx, from_json, assessment_id, database_combinatio @cli_util.wrap_exceptions def remove_assessment_objects_oracle_assessment_object_collection(ctx, from_json, assessment_id, items, bulk_include_exclude_data, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -4527,7 +4526,7 @@ def remove_assessment_objects_oracle_assessment_object_collection(ctx, from_json @cli_util.wrap_exceptions def remove_assessment_objects_my_sql_assessment_object_collection(ctx, from_json, assessment_id, items, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') kwargs = {} @@ -4560,7 +4559,7 @@ def remove_assessment_objects_my_sql_assessment_object_collection(ctx, from_json @cli_util.wrap_exceptions def remove_migration_objects(ctx, from_json, migration_id, database_combination, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -4592,7 +4591,7 @@ def remove_migration_objects(ctx, from_json, migration_id, database_combination, @cli_util.wrap_exceptions def remove_migration_objects_my_sql_migration_object_collection(ctx, from_json, migration_id, items, bulk_include_exclude_data, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -4629,7 +4628,7 @@ def remove_migration_objects_my_sql_migration_object_collection(ctx, from_json, @cli_util.wrap_exceptions def remove_migration_objects_oracle_migration_object_collection(ctx, from_json, migration_id, items, bulk_include_exclude_data, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -4668,7 +4667,7 @@ def remove_migration_objects_oracle_migration_object_collection(ctx, from_json, @cli_util.wrap_exceptions def resume_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, if_match, wait_after): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -4722,7 +4721,7 @@ def resume_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def retrieve_supported_phases(ctx, from_json, migration_id): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -4749,7 +4748,7 @@ def retrieve_supported_phases(ctx, from_json, migration_id): @cli_util.wrap_exceptions def start_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, if_match, wait_after): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') kwargs = {} @@ -4811,7 +4810,7 @@ def start_migration(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def suspend_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -4861,10 +4860,10 @@ def suspend_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def update_advisor_report_check(ctx, from_json, job_id, advisor_report_check_id, is_reviewed, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') - if isinstance(advisor_report_check_id, six.string_types) and len(advisor_report_check_id.strip()) == 0: + if isinstance(advisor_report_check_id, str) and len(advisor_report_check_id.strip()) == 0: raise click.UsageError('Parameter --advisor-report-check-id cannot be whitespace or empty string') kwargs = {} @@ -4897,10 +4896,10 @@ def update_advisor_report_check(ctx, from_json, job_id, advisor_report_check_id, @cli_util.wrap_exceptions def update_advisor_report_check_objects(ctx, from_json, job_id, advisor_report_check_id, kind, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') - if isinstance(advisor_report_check_id, six.string_types) and len(advisor_report_check_id.strip()) == 0: + if isinstance(advisor_report_check_id, str) and len(advisor_report_check_id.strip()) == 0: raise click.UsageError('Parameter --advisor-report-check-id cannot be whitespace or empty string') kwargs = {} @@ -4933,10 +4932,10 @@ def update_advisor_report_check_objects(ctx, from_json, job_id, advisor_report_c @cli_util.wrap_exceptions def update_advisor_report_check_objects_all_update_advisor_report_check_objects_details(ctx, from_json, job_id, advisor_report_check_id, is_exclude, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') - if isinstance(advisor_report_check_id, six.string_types) and len(advisor_report_check_id.strip()) == 0: + if isinstance(advisor_report_check_id, str) and len(advisor_report_check_id.strip()) == 0: raise click.UsageError('Parameter --advisor-report-check-id cannot be whitespace or empty string') kwargs = {} @@ -4973,10 +4972,10 @@ def update_advisor_report_check_objects_all_update_advisor_report_check_objects_ @cli_util.wrap_exceptions def update_advisor_report_check_objects_list_update_advisor_report_check_objects_details(ctx, from_json, job_id, advisor_report_check_id, items, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') - if isinstance(advisor_report_check_id, six.string_types) and len(advisor_report_check_id.strip()) == 0: + if isinstance(advisor_report_check_id, str) and len(advisor_report_check_id.strip()) == 0: raise click.UsageError('Parameter --advisor-report-check-id cannot be whitespace or empty string') kwargs = {} @@ -5025,7 +5024,7 @@ def update_advisor_report_check_objects_list_update_advisor_report_check_objects @cli_util.wrap_exceptions def update_assessment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, database_combination, description, display_name, network_speed_megabit_per_second, acceptable_downtime, database_data_size, ddl_expectation, creation_type, source_database_connection, target_database_connection, freeform_tags, defined_tags, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') if not force: if source_database_connection or target_database_connection or freeform_tags or defined_tags: @@ -5135,7 +5134,7 @@ def update_assessment(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_assessment_update_my_sql_assessment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, description, display_name, network_speed_megabit_per_second, acceptable_downtime, database_data_size, ddl_expectation, creation_type, source_database_connection, target_database_connection, freeform_tags, defined_tags, migration_scope, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') if not force: if source_database_connection or target_database_connection or freeform_tags or defined_tags: @@ -5249,7 +5248,7 @@ def update_assessment_update_my_sql_assessment_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_assessment_update_oracle_assessment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, assessment_id, description, display_name, network_speed_megabit_per_second, acceptable_downtime, database_data_size, ddl_expectation, creation_type, source_database_connection, target_database_connection, freeform_tags, defined_tags, migration_scope, if_match): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') if not force: if source_database_connection or target_database_connection or freeform_tags or defined_tags: @@ -5354,13 +5353,13 @@ def update_assessment_update_oracle_assessment_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_check_action_update_object(ctx, from_json, assessment_id, assessor_name, check_name, kind, if_match, sort_by, sort_order, limit, page): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') - if isinstance(check_name, six.string_types) and len(check_name.strip()) == 0: + if isinstance(check_name, str) and len(check_name.strip()) == 0: raise click.UsageError('Parameter --check-name cannot be whitespace or empty string') kwargs = {} @@ -5408,13 +5407,13 @@ def update_check_action_update_object(ctx, from_json, assessment_id, assessor_na @cli_util.wrap_exceptions def update_check_action_update_object_list_update_check_action_update_object_details(ctx, from_json, force, assessment_id, assessor_name, check_name, items, if_match, sort_by, sort_order, limit, page): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') - if isinstance(check_name, six.string_types) and len(check_name.strip()) == 0: + if isinstance(check_name, str) and len(check_name.strip()) == 0: raise click.UsageError('Parameter --check-name cannot be whitespace or empty string') if not force: if items: @@ -5467,13 +5466,13 @@ def update_check_action_update_object_list_update_check_action_update_object_det @cli_util.wrap_exceptions def update_check_action_update_object_all_update_check_action_update_object_details(ctx, from_json, assessment_id, assessor_name, check_name, is_exclude, if_match, sort_by, sort_order, limit, page): - if isinstance(assessment_id, six.string_types) and len(assessment_id.strip()) == 0: + if isinstance(assessment_id, str) and len(assessment_id.strip()) == 0: raise click.UsageError('Parameter --assessment-id cannot be whitespace or empty string') - if isinstance(assessor_name, six.string_types) and len(assessor_name.strip()) == 0: + if isinstance(assessor_name, str) and len(assessor_name.strip()) == 0: raise click.UsageError('Parameter --assessor-name cannot be whitespace or empty string') - if isinstance(check_name, six.string_types) and len(check_name.strip()) == 0: + if isinstance(check_name, str) and len(check_name.strip()) == 0: raise click.UsageError('Parameter --check-name cannot be whitespace or empty string') kwargs = {} @@ -5534,7 +5533,7 @@ def update_check_action_update_object_all_update_check_action_update_object_deta @cli_util.wrap_exceptions def update_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, connection_type, display_name, description, freeform_tags, defined_tags, vault_id, key_id, subnet_id, nsg_ids, username, password, replication_username, replication_password, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids: @@ -5656,7 +5655,7 @@ def update_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_connection_update_oracle_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, subnet_id, nsg_ids, username, password, replication_username, replication_password, connection_string, wallet, database_id, ssh_host, ssh_key, ssh_user, ssh_sudo_location, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids: @@ -5804,7 +5803,7 @@ def update_connection_update_oracle_connection_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_connection_update_mysql_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, subnet_id, nsg_ids, username, password, replication_username, replication_password, host, port, database_name, security_protocol, ssl_mode, ssl_ca, ssl_crl, ssl_cert, ssl_key, additional_attributes, db_system_id, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or additional_attributes: @@ -5942,7 +5941,7 @@ def update_connection_update_mysql_connection_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6019,7 +6018,7 @@ def update_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_migration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, database_combination, description, type, display_name, source_database_connection_id, target_database_connection_id, freeform_tags, defined_tags, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6117,7 +6116,7 @@ def update_migration(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_migration_update_my_sql_migration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, description, type, display_name, source_database_connection_id, target_database_connection_id, freeform_tags, defined_tags, data_transfer_medium_details, initial_load_settings, advisor_settings, hub_details, ggs_details, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or data_transfer_medium_details or initial_load_settings or advisor_settings or hub_details or ggs_details: @@ -6236,7 +6235,7 @@ def update_migration_update_my_sql_migration_details(ctx, from_json, force, wait @cli_util.wrap_exceptions def update_migration_update_oracle_migration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, migration_id, description, type, display_name, source_database_connection_id, target_database_connection_id, freeform_tags, defined_tags, data_transfer_medium_details, initial_load_settings, advisor_settings, hub_details, ggs_details, advanced_parameters, source_container_database_connection_id, source_standby_database_connection_id, if_match): - if isinstance(migration_id, six.string_types) and len(migration_id.strip()) == 0: + if isinstance(migration_id, str) and len(migration_id.strip()) == 0: raise click.UsageError('Parameter --migration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or data_transfer_medium_details or initial_load_settings or advisor_settings or hub_details or ggs_details or advanced_parameters: diff --git a/services/database_tools/src/oci_cli_database_tools/generated/databasetools_cli.py b/services/database_tools/src/oci_cli_database_tools/generated/databasetools_cli.py index 6bee79cf7..deb1754a0 100644 --- a/services/database_tools/src/oci_cli_database_tools/generated/databasetools_cli.py +++ b/services/database_tools/src/oci_cli_database_tools/generated/databasetools_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -125,7 +124,7 @@ def database_tools_sql_report_group(): @cli_util.wrap_exceptions def add_database_tools_connection_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_connection_id, type, related_resource_id, message, time_created, if_match): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') kwargs = {} @@ -194,7 +193,7 @@ def add_database_tools_connection_lock(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def add_database_tools_database_api_gateway_config_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_api_gateway_config_id, type, related_resource_id, message, time_created, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') kwargs = {} @@ -263,7 +262,7 @@ def add_database_tools_database_api_gateway_config_lock(ctx, from_json, wait_for @cli_util.wrap_exceptions def add_database_tools_identity_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_identity_id, type, related_resource_id, message, time_created, if_match): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') kwargs = {} @@ -332,7 +331,7 @@ def add_database_tools_identity_lock(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def add_database_tools_mcp_server_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_server_id, type, related_resource_id, message, time_created, if_match): - if isinstance(mcp_server_id, six.string_types) and len(mcp_server_id.strip()) == 0: + if isinstance(mcp_server_id, str) and len(mcp_server_id.strip()) == 0: raise click.UsageError('Parameter --mcp-server-id cannot be whitespace or empty string') kwargs = {} @@ -401,7 +400,7 @@ def add_database_tools_mcp_server_lock(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def add_database_tools_mcp_toolset_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_toolset_id, type, related_resource_id, message, time_created, if_match): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') kwargs = {} @@ -470,7 +469,7 @@ def add_database_tools_mcp_toolset_lock(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def add_database_tools_private_endpoint_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_private_endpoint_id, type, related_resource_id, message, time_created, if_match): - if isinstance(database_tools_private_endpoint_id, six.string_types) and len(database_tools_private_endpoint_id.strip()) == 0: + if isinstance(database_tools_private_endpoint_id, str) and len(database_tools_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -539,7 +538,7 @@ def add_database_tools_private_endpoint_lock(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def add_database_tools_sql_report_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_report_id, type, related_resource_id, message, time_created, if_match): - if isinstance(sql_report_id, six.string_types) and len(sql_report_id.strip()) == 0: + if isinstance(sql_report_id, str) and len(sql_report_id.strip()) == 0: raise click.UsageError('Parameter --sql-report-id cannot be whitespace or empty string') kwargs = {} @@ -604,7 +603,7 @@ def add_database_tools_sql_report_lock(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def cascading_delete_database_tools_mcp_server(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_server_id, if_match): - if isinstance(mcp_server_id, six.string_types) and len(mcp_server_id.strip()) == 0: + if isinstance(mcp_server_id, str) and len(mcp_server_id.strip()) == 0: raise click.UsageError('Parameter --mcp-server-id cannot be whitespace or empty string') kwargs = {} @@ -661,7 +660,7 @@ def cascading_delete_database_tools_mcp_server(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def change_database_tools_connection_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_connection_id, compartment_id, if_match, is_lock_override): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') kwargs = {} @@ -722,7 +721,7 @@ def change_database_tools_connection_compartment(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_database_tools_database_api_gateway_config_compartment(ctx, from_json, database_api_gateway_config_id, compartment_id, if_match, is_lock_override): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') kwargs = {} @@ -759,7 +758,7 @@ def change_database_tools_database_api_gateway_config_compartment(ctx, from_json @cli_util.wrap_exceptions def change_database_tools_identity_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_identity_id, compartment_id, if_match, is_lock_override): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') kwargs = {} @@ -823,7 +822,7 @@ def change_database_tools_identity_compartment(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def change_database_tools_mcp_server_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_server_id, compartment_id, if_match, is_lock_override): - if isinstance(mcp_server_id, six.string_types) and len(mcp_server_id.strip()) == 0: + if isinstance(mcp_server_id, str) and len(mcp_server_id.strip()) == 0: raise click.UsageError('Parameter --mcp-server-id cannot be whitespace or empty string') kwargs = {} @@ -884,7 +883,7 @@ def change_database_tools_mcp_server_compartment(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_database_tools_mcp_toolset_compartment(ctx, from_json, mcp_toolset_id, compartment_id, if_match, is_lock_override): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') kwargs = {} @@ -921,7 +920,7 @@ def change_database_tools_mcp_toolset_compartment(ctx, from_json, mcp_toolset_id @cli_util.wrap_exceptions def change_database_tools_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_private_endpoint_id, compartment_id, if_match, is_lock_override): - if isinstance(database_tools_private_endpoint_id, six.string_types) and len(database_tools_private_endpoint_id.strip()) == 0: + if isinstance(database_tools_private_endpoint_id, str) and len(database_tools_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -982,7 +981,7 @@ def change_database_tools_private_endpoint_compartment(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def change_database_tools_sql_report_compartment(ctx, from_json, sql_report_id, compartment_id, if_match, is_lock_override): - if isinstance(sql_report_id, six.string_types) and len(sql_report_id.strip()) == 0: + if isinstance(sql_report_id, str) and len(sql_report_id.strip()) == 0: raise click.UsageError('Parameter --sql-report-id cannot be whitespace or empty string') kwargs = {} @@ -2732,7 +2731,7 @@ def create_database_tools_sql_report_create_database_tools_sql_report_oracle_dat @cli_util.wrap_exceptions def delete_database_tools_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_connection_id, if_match, is_lock_override): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') kwargs = {} @@ -2791,7 +2790,7 @@ def delete_database_tools_connection(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_database_tools_database_api_gateway_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_api_gateway_config_id, if_match, is_lock_override): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') kwargs = {} @@ -2858,7 +2857,7 @@ def delete_database_tools_database_api_gateway_config(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def delete_database_tools_identity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_identity_id, if_match, is_lock_override): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') kwargs = {} @@ -2917,7 +2916,7 @@ def delete_database_tools_identity(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_database_tools_mcp_server(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_server_id, if_match, is_lock_override): - if isinstance(mcp_server_id, six.string_types) and len(mcp_server_id.strip()) == 0: + if isinstance(mcp_server_id, str) and len(mcp_server_id.strip()) == 0: raise click.UsageError('Parameter --mcp-server-id cannot be whitespace or empty string') kwargs = {} @@ -2976,7 +2975,7 @@ def delete_database_tools_mcp_server(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_database_tools_mcp_toolset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_toolset_id, if_match, is_lock_override): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') kwargs = {} @@ -3035,7 +3034,7 @@ def delete_database_tools_mcp_toolset(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_database_tools_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_private_endpoint_id, if_match, is_lock_override): - if isinstance(database_tools_private_endpoint_id, six.string_types) and len(database_tools_private_endpoint_id.strip()) == 0: + if isinstance(database_tools_private_endpoint_id, str) and len(database_tools_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3094,7 +3093,7 @@ def delete_database_tools_private_endpoint(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_database_tools_sql_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_report_id, if_match, is_lock_override): - if isinstance(sql_report_id, six.string_types) and len(sql_report_id.strip()) == 0: + if isinstance(sql_report_id, str) and len(sql_report_id.strip()) == 0: raise click.UsageError('Parameter --sql-report-id cannot be whitespace or empty string') kwargs = {} @@ -3155,7 +3154,7 @@ def delete_database_tools_sql_report(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def get_database_tools_connection(ctx, from_json, database_tools_connection_id): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') kwargs = {} @@ -3177,7 +3176,7 @@ def get_database_tools_connection(ctx, from_json, database_tools_connection_id): @cli_util.wrap_exceptions def get_database_tools_database_api_gateway_config(ctx, from_json, database_api_gateway_config_id): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') kwargs = {} @@ -3199,7 +3198,7 @@ def get_database_tools_database_api_gateway_config(ctx, from_json, database_api_ @cli_util.wrap_exceptions def get_database_tools_endpoint_service(ctx, from_json, database_tools_endpoint_service_id): - if isinstance(database_tools_endpoint_service_id, six.string_types) and len(database_tools_endpoint_service_id.strip()) == 0: + if isinstance(database_tools_endpoint_service_id, str) and len(database_tools_endpoint_service_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-endpoint-service-id cannot be whitespace or empty string') kwargs = {} @@ -3221,7 +3220,7 @@ def get_database_tools_endpoint_service(ctx, from_json, database_tools_endpoint_ @cli_util.wrap_exceptions def get_database_tools_identity(ctx, from_json, database_tools_identity_id): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') kwargs = {} @@ -3243,7 +3242,7 @@ def get_database_tools_identity(ctx, from_json, database_tools_identity_id): @cli_util.wrap_exceptions def get_database_tools_mcp_server(ctx, from_json, mcp_server_id): - if isinstance(mcp_server_id, six.string_types) and len(mcp_server_id.strip()) == 0: + if isinstance(mcp_server_id, str) and len(mcp_server_id.strip()) == 0: raise click.UsageError('Parameter --mcp-server-id cannot be whitespace or empty string') kwargs = {} @@ -3265,7 +3264,7 @@ def get_database_tools_mcp_server(ctx, from_json, mcp_server_id): @cli_util.wrap_exceptions def get_database_tools_mcp_toolset(ctx, from_json, mcp_toolset_id): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') kwargs = {} @@ -3287,7 +3286,7 @@ def get_database_tools_mcp_toolset(ctx, from_json, mcp_toolset_id): @cli_util.wrap_exceptions def get_database_tools_private_endpoint(ctx, from_json, database_tools_private_endpoint_id): - if isinstance(database_tools_private_endpoint_id, six.string_types) and len(database_tools_private_endpoint_id.strip()) == 0: + if isinstance(database_tools_private_endpoint_id, str) and len(database_tools_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3309,7 +3308,7 @@ def get_database_tools_private_endpoint(ctx, from_json, database_tools_private_e @cli_util.wrap_exceptions def get_database_tools_sql_report(ctx, from_json, sql_report_id): - if isinstance(sql_report_id, six.string_types) and len(sql_report_id.strip()) == 0: + if isinstance(sql_report_id, str) and len(sql_report_id.strip()) == 0: raise click.UsageError('Parameter --sql-report-id cannot be whitespace or empty string') kwargs = {} @@ -3331,7 +3330,7 @@ def get_database_tools_sql_report(ctx, from_json, sql_report_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3916,7 +3915,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3973,7 +3972,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4083,7 +4082,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def refresh_database_tools_identity_credential(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_identity_id, type, if_match): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') kwargs = {} @@ -4143,7 +4142,7 @@ def refresh_database_tools_identity_credential(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def refresh_database_tools_identity_credential_refresh_database_tools_identity_oracle_database_resource_principal_credential_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_identity_id, if_match): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') kwargs = {} @@ -4208,7 +4207,7 @@ def refresh_database_tools_identity_credential_refresh_database_tools_identity_o @cli_util.wrap_exceptions def remove_database_tools_connection_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_connection_id, type, related_resource_id, message, time_created, if_match): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') kwargs = {} @@ -4277,7 +4276,7 @@ def remove_database_tools_connection_lock(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def remove_database_tools_database_api_gateway_config_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_api_gateway_config_id, type, related_resource_id, message, time_created, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') kwargs = {} @@ -4346,7 +4345,7 @@ def remove_database_tools_database_api_gateway_config_lock(ctx, from_json, wait_ @cli_util.wrap_exceptions def remove_database_tools_identity_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_identity_id, type, related_resource_id, message, time_created, if_match): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') kwargs = {} @@ -4415,7 +4414,7 @@ def remove_database_tools_identity_lock(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def remove_database_tools_mcp_server_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_server_id, type, related_resource_id, message, time_created, if_match): - if isinstance(mcp_server_id, six.string_types) and len(mcp_server_id.strip()) == 0: + if isinstance(mcp_server_id, str) and len(mcp_server_id.strip()) == 0: raise click.UsageError('Parameter --mcp-server-id cannot be whitespace or empty string') kwargs = {} @@ -4484,7 +4483,7 @@ def remove_database_tools_mcp_server_lock(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def remove_database_tools_mcp_toolset_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_toolset_id, type, related_resource_id, message, time_created, if_match): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') kwargs = {} @@ -4553,7 +4552,7 @@ def remove_database_tools_mcp_toolset_lock(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def remove_database_tools_private_endpoint_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_private_endpoint_id, type, related_resource_id, message, time_created, if_match): - if isinstance(database_tools_private_endpoint_id, six.string_types) and len(database_tools_private_endpoint_id.strip()) == 0: + if isinstance(database_tools_private_endpoint_id, str) and len(database_tools_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -4622,7 +4621,7 @@ def remove_database_tools_private_endpoint_lock(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def remove_database_tools_sql_report_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_report_id, type, related_resource_id, message, time_created, if_match): - if isinstance(sql_report_id, six.string_types) and len(sql_report_id.strip()) == 0: + if isinstance(sql_report_id, str) and len(sql_report_id.strip()) == 0: raise click.UsageError('Parameter --sql-report-id cannot be whitespace or empty string') kwargs = {} @@ -4693,7 +4692,7 @@ def remove_database_tools_sql_report_lock(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def update_database_tools_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_connection_id, type, display_name, defined_tags, freeform_tags, if_match, is_lock_override): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -4780,7 +4779,7 @@ def update_database_tools_connection(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_database_tools_connection_update_database_tools_connection_generic_jdbc_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_connection_id, display_name, defined_tags, freeform_tags, url, user_name, user_password, advanced_properties, key_stores, if_match, is_lock_override): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or user_password or advanced_properties or key_stores: @@ -4885,7 +4884,7 @@ def update_database_tools_connection_update_database_tools_connection_generic_jd @cli_util.wrap_exceptions def update_database_tools_connection_update_database_tools_connection_postgresql_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_connection_id, display_name, defined_tags, freeform_tags, related_resource, connection_string, user_name, user_password, advanced_properties, key_stores, private_endpoint_id, if_match, is_lock_override): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or related_resource or user_password or advanced_properties or key_stores: @@ -4996,7 +4995,7 @@ def update_database_tools_connection_update_database_tools_connection_postgresql @cli_util.wrap_exceptions def update_database_tools_connection_update_database_tools_connection_my_sql_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_connection_id, display_name, defined_tags, freeform_tags, related_resource, connection_string, user_name, user_password, advanced_properties, key_stores, private_endpoint_id, if_match, is_lock_override): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or related_resource or user_password or advanced_properties or key_stores: @@ -5108,7 +5107,7 @@ def update_database_tools_connection_update_database_tools_connection_my_sql_det @cli_util.wrap_exceptions def update_database_tools_connection_update_database_tools_connection_oracle_database_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_connection_id, display_name, defined_tags, freeform_tags, related_resource, connection_string, user_name, user_password, advanced_properties, key_stores, private_endpoint_id, proxy_client, if_match, is_lock_override): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or related_resource or user_password or advanced_properties or key_stores or proxy_client: @@ -5214,7 +5213,7 @@ def update_database_tools_connection_update_database_tools_connection_oracle_dat @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_api_gateway_config_id, type, display_name, defined_tags, freeform_tags, if_match, is_lock_override): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -5290,7 +5289,7 @@ def update_database_tools_database_api_gateway_config(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_update_database_tools_database_api_gateway_config_default_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_api_gateway_config_id, display_name, defined_tags, freeform_tags, if_match, is_lock_override): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -5368,7 +5367,7 @@ def update_database_tools_database_api_gateway_config_update_database_tools_data @cli_util.wrap_exceptions def update_database_tools_identity(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_identity_id, type, display_name, defined_tags, freeform_tags, if_match, is_lock_override): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -5448,7 +5447,7 @@ def update_database_tools_identity(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_database_tools_identity_update_database_tools_identity_oracle_database_resource_principal_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_identity_id, display_name, defined_tags, freeform_tags, if_match, is_lock_override): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -5536,7 +5535,7 @@ def update_database_tools_identity_update_database_tools_identity_oracle_databas @cli_util.wrap_exceptions def update_database_tools_mcp_server(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_server_id, type, display_name, description, custom_roles, access_token_expiry_in_seconds, refresh_token_expiry_in_seconds, defined_tags, freeform_tags, if_match, is_lock_override): - if isinstance(mcp_server_id, six.string_types) and len(mcp_server_id.strip()) == 0: + if isinstance(mcp_server_id, str) and len(mcp_server_id.strip()) == 0: raise click.UsageError('Parameter --mcp-server-id cannot be whitespace or empty string') if not force: if custom_roles or defined_tags or freeform_tags: @@ -5635,7 +5634,7 @@ def update_database_tools_mcp_server(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_database_tools_mcp_server_update_database_tools_mcp_server_details_default(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_server_id, display_name, description, custom_roles, access_token_expiry_in_seconds, refresh_token_expiry_in_seconds, defined_tags, freeform_tags, storage, if_match, is_lock_override): - if isinstance(mcp_server_id, six.string_types) and len(mcp_server_id.strip()) == 0: + if isinstance(mcp_server_id, str) and len(mcp_server_id.strip()) == 0: raise click.UsageError('Parameter --mcp-server-id cannot be whitespace or empty string') if not force: if custom_roles or defined_tags or freeform_tags or storage: @@ -5734,7 +5733,7 @@ def update_database_tools_mcp_server_update_database_tools_mcp_server_details_de @cli_util.wrap_exceptions def update_database_tools_mcp_toolset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_toolset_id, type, toolset_version, display_name, description, defined_tags, freeform_tags, if_match, is_lock_override): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -5831,7 +5830,7 @@ def update_database_tools_mcp_toolset(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_database_tools_mcp_toolset_update_database_tools_mcp_toolset_customizable_reporting_tools_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_toolset_id, toolset_version, display_name, description, defined_tags, freeform_tags, reports, tools, default_execution_type, if_match, is_lock_override): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or reports or tools: @@ -5935,7 +5934,7 @@ def update_database_tools_mcp_toolset_update_database_tools_mcp_toolset_customiz @cli_util.wrap_exceptions def update_database_tools_mcp_toolset_update_database_tools_mcp_toolset_built_in_sql_tools_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_toolset_id, toolset_version, display_name, description, defined_tags, freeform_tags, tools, default_execution_type, if_match, is_lock_override): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or tools: @@ -6040,7 +6039,7 @@ def update_database_tools_mcp_toolset_update_database_tools_mcp_toolset_built_in @cli_util.wrap_exceptions def update_database_tools_mcp_toolset_update_database_tools_mcp_toolset_custom_sql_tool_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_toolset_id, toolset_version, display_name, description, defined_tags, freeform_tags, tool_description, tool_name, source, variables, allowed_roles, default_execution_type, if_match, is_lock_override): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or source or variables or allowed_roles: @@ -6154,7 +6153,7 @@ def update_database_tools_mcp_toolset_update_database_tools_mcp_toolset_custom_s @cli_util.wrap_exceptions def update_database_tools_mcp_toolset_update_database_tools_mcp_toolset_gen_ai_sql_assistant_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mcp_toolset_id, toolset_version, display_name, description, defined_tags, freeform_tags, generative_ai_semantic_store_id, tools, default_execution_type, if_match, is_lock_override): - if isinstance(mcp_toolset_id, six.string_types) and len(mcp_toolset_id.strip()) == 0: + if isinstance(mcp_toolset_id, str) and len(mcp_toolset_id.strip()) == 0: raise click.UsageError('Parameter --mcp-toolset-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or tools: @@ -6252,7 +6251,7 @@ def update_database_tools_mcp_toolset_update_database_tools_mcp_toolset_gen_ai_s @cli_util.wrap_exceptions def update_database_tools_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_tools_private_endpoint_id, defined_tags, freeform_tags, display_name, description, nsg_ids, if_match, is_lock_override): - if isinstance(database_tools_private_endpoint_id, six.string_types) and len(database_tools_private_endpoint_id.strip()) == 0: + if isinstance(database_tools_private_endpoint_id, str) and len(database_tools_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-private-endpoint-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or nsg_ids: @@ -6348,7 +6347,7 @@ def update_database_tools_private_endpoint(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_database_tools_sql_report(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_report_id, type, display_name, defined_tags, freeform_tags, source, description, purpose, instructions, variables, columns, if_match, is_lock_override): - if isinstance(sql_report_id, six.string_types) and len(sql_report_id.strip()) == 0: + if isinstance(sql_report_id, str) and len(sql_report_id.strip()) == 0: raise click.UsageError('Parameter --sql-report-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or variables or columns: @@ -6452,7 +6451,7 @@ def update_database_tools_sql_report(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_database_tools_sql_report_update_database_tools_sql_report_details_oracle_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sql_report_id, display_name, defined_tags, freeform_tags, source, description, purpose, instructions, variables, columns, if_match, is_lock_override): - if isinstance(sql_report_id, six.string_types) and len(sql_report_id.strip()) == 0: + if isinstance(sql_report_id, str) and len(sql_report_id.strip()) == 0: raise click.UsageError('Parameter --sql-report-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or variables or columns: @@ -6540,7 +6539,7 @@ def update_database_tools_sql_report_update_database_tools_sql_report_details_or @cli_util.wrap_exceptions def validate_database_tools_connection(ctx, from_json, database_tools_connection_id, type, if_match): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') kwargs = {} @@ -6570,7 +6569,7 @@ def validate_database_tools_connection(ctx, from_json, database_tools_connection @cli_util.wrap_exceptions def validate_database_tools_connection_validate_database_tools_connection_postgresql_details(ctx, from_json, database_tools_connection_id, if_match): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') kwargs = {} @@ -6601,7 +6600,7 @@ def validate_database_tools_connection_validate_database_tools_connection_postgr @cli_util.wrap_exceptions def validate_database_tools_connection_validate_database_tools_connection_oracle_database_details(ctx, from_json, database_tools_connection_id, if_match): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') kwargs = {} @@ -6632,7 +6631,7 @@ def validate_database_tools_connection_validate_database_tools_connection_oracle @cli_util.wrap_exceptions def validate_database_tools_connection_validate_database_tools_connection_my_sql_details(ctx, from_json, database_tools_connection_id, if_match): - if isinstance(database_tools_connection_id, six.string_types) and len(database_tools_connection_id.strip()) == 0: + if isinstance(database_tools_connection_id, str) and len(database_tools_connection_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-connection-id cannot be whitespace or empty string') kwargs = {} @@ -6664,7 +6663,7 @@ def validate_database_tools_connection_validate_database_tools_connection_my_sql @cli_util.wrap_exceptions def validate_database_tools_identity_credential(ctx, from_json, database_tools_identity_id, type, if_match): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') kwargs = {} @@ -6694,7 +6693,7 @@ def validate_database_tools_identity_credential(ctx, from_json, database_tools_i @cli_util.wrap_exceptions def validate_database_tools_identity_credential_validate_database_tools_identity_credential_oracle_database_resource_principal_details(ctx, from_json, database_tools_identity_id, if_match): - if isinstance(database_tools_identity_id, six.string_types) and len(database_tools_identity_id.strip()) == 0: + if isinstance(database_tools_identity_id, str) and len(database_tools_identity_id.strip()) == 0: raise click.UsageError('Parameter --database-tools-identity-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/database_tools_runtime/src/oci_cli_database_tools_runtime/generated/databasetoolsruntime_cli.py b/services/database_tools_runtime/src/oci_cli_database_tools_runtime/generated/databasetoolsruntime_cli.py index 18d27ff68..600e293fd 100644 --- a/services/database_tools_runtime/src/oci_cli_database_tools_runtime/generated/databasetoolsruntime_cli.py +++ b/services/database_tools_runtime/src/oci_cli_database_tools_runtime/generated/databasetoolsruntime_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -175,7 +174,7 @@ def database_tools_database_api_gateway_config_pool_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -202,7 +201,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def create_credential(ctx, from_json, connection_id, type, credential_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -236,7 +235,7 @@ def create_credential(ctx, from_json, connection_id, type, credential_key, if_ma @cli_util.wrap_exceptions def create_credential_create_credential_basic_details(ctx, from_json, connection_id, credential_key, user_name, password, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -272,10 +271,10 @@ def create_credential_create_credential_basic_details(ctx, from_json, connection @cli_util.wrap_exceptions def create_credential_execute_grantee(ctx, from_json, connection_id, credential_key, execute_grantee_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') kwargs = {} @@ -308,10 +307,10 @@ def create_credential_execute_grantee(ctx, from_json, connection_id, credential_ @cli_util.wrap_exceptions def create_credential_public_synonym(ctx, from_json, connection_id, credential_key, public_synonym_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') kwargs = {} @@ -355,7 +354,7 @@ def create_credential_public_synonym(ctx, from_json, connection_id, credential_k @cli_util.wrap_exceptions def create_database_tools_database_api_gateway_config_pool(ctx, from_json, database_api_gateway_config_id, type, display_name, pool_route_value, database_tools_connection_id, max_pool_size, min_pool_size, initial_pool_size, jwt_profile_jwk_url, jwt_profile_issuer, jwt_profile_audience, jwt_profile_role_claim_name, database_actions_status, rest_enabled_sql_status, advanced_properties): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') kwargs = {} @@ -428,7 +427,7 @@ def create_database_tools_database_api_gateway_config_pool(ctx, from_json, datab @cli_util.wrap_exceptions def create_database_tools_database_api_gateway_config_pool_create_database_tools_database_api_gateway_config_pool_default_details(ctx, from_json, database_api_gateway_config_id, display_name, pool_route_value, database_tools_connection_id, max_pool_size, min_pool_size, initial_pool_size, jwt_profile_jwk_url, jwt_profile_issuer, jwt_profile_audience, jwt_profile_role_claim_name, database_actions_status, rest_enabled_sql_status, advanced_properties): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') kwargs = {} @@ -493,10 +492,10 @@ def create_database_tools_database_api_gateway_config_pool_create_database_tools @cli_util.wrap_exceptions def create_database_tools_database_api_gateway_config_pool_api_spec(ctx, from_json, database_api_gateway_config_id, pool_key, type, display_name, content): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') kwargs = {} @@ -529,10 +528,10 @@ def create_database_tools_database_api_gateway_config_pool_api_spec(ctx, from_js @cli_util.wrap_exceptions def create_database_tools_database_api_gateway_config_pool_api_spec_create_database_tools_database_api_gateway_config_pool_api_spec_default_details(ctx, from_json, database_api_gateway_config_id, pool_key, display_name, content): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') kwargs = {} @@ -574,10 +573,10 @@ def create_database_tools_database_api_gateway_config_pool_api_spec_create_datab @cli_util.wrap_exceptions def create_database_tools_database_api_gateway_config_pool_auto_api_spec(ctx, from_json, database_api_gateway_config_id, pool_key, type, display_name, database_object_name, database_object_type, description, alias, operations, security_schemes, scope, roles): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') kwargs = {} @@ -636,10 +635,10 @@ def create_database_tools_database_api_gateway_config_pool_auto_api_spec(ctx, fr @cli_util.wrap_exceptions def create_database_tools_database_api_gateway_config_pool_auto_api_spec_create_database_tools_database_api_gateway_config_pool_auto_api_spec_default_details(ctx, from_json, database_api_gateway_config_id, pool_key, display_name, database_object_name, database_object_type, description, alias, operations, security_schemes, scope, roles): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') kwargs = {} @@ -692,10 +691,10 @@ def create_database_tools_database_api_gateway_config_pool_auto_api_spec_create_ @cli_util.wrap_exceptions def delete_credential(ctx, from_json, connection_id, credential_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') kwargs = {} @@ -724,13 +723,13 @@ def delete_credential(ctx, from_json, connection_id, credential_key, if_match): @cli_util.wrap_exceptions def delete_credential_execute_grantee(ctx, from_json, connection_id, credential_key, execute_grantee_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') - if isinstance(execute_grantee_key, six.string_types) and len(execute_grantee_key.strip()) == 0: + if isinstance(execute_grantee_key, str) and len(execute_grantee_key.strip()) == 0: raise click.UsageError('Parameter --execute-grantee-key cannot be whitespace or empty string') kwargs = {} @@ -760,13 +759,13 @@ def delete_credential_execute_grantee(ctx, from_json, connection_id, credential_ @cli_util.wrap_exceptions def delete_credential_public_synonym(ctx, from_json, connection_id, credential_key, public_synonym_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') - if isinstance(public_synonym_key, six.string_types) and len(public_synonym_key.strip()) == 0: + if isinstance(public_synonym_key, str) and len(public_synonym_key.strip()) == 0: raise click.UsageError('Parameter --public-synonym-key cannot be whitespace or empty string') kwargs = {} @@ -795,10 +794,10 @@ def delete_credential_public_synonym(ctx, from_json, connection_id, credential_k @cli_util.wrap_exceptions def delete_database_tools_database_api_gateway_config_pool(ctx, from_json, database_api_gateway_config_id, pool_key, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') kwargs = {} @@ -827,13 +826,13 @@ def delete_database_tools_database_api_gateway_config_pool(ctx, from_json, datab @cli_util.wrap_exceptions def delete_database_tools_database_api_gateway_config_pool_api_spec(ctx, from_json, database_api_gateway_config_id, pool_key, api_spec_key, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') - if isinstance(api_spec_key, six.string_types) and len(api_spec_key.strip()) == 0: + if isinstance(api_spec_key, str) and len(api_spec_key.strip()) == 0: raise click.UsageError('Parameter --api-spec-key cannot be whitespace or empty string') kwargs = {} @@ -863,13 +862,13 @@ def delete_database_tools_database_api_gateway_config_pool_api_spec(ctx, from_js @cli_util.wrap_exceptions def delete_database_tools_database_api_gateway_config_pool_auto_api_spec(ctx, from_json, database_api_gateway_config_id, pool_key, auto_api_spec_key, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') - if isinstance(auto_api_spec_key, six.string_types) and len(auto_api_spec_key.strip()) == 0: + if isinstance(auto_api_spec_key, str) and len(auto_api_spec_key.strip()) == 0: raise click.UsageError('Parameter --auto-api-spec-key cannot be whitespace or empty string') kwargs = {} @@ -901,7 +900,7 @@ def delete_database_tools_database_api_gateway_config_pool_auto_api_spec(ctx, fr @cli_util.wrap_exceptions def execute_sql_database_tools_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, type, output_parameterconflict, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -967,7 +966,7 @@ def execute_sql_database_tools_connection(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def execute_sql_database_tools_connection_execute_sql_database_tools_connection_asynchronous_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, input, output_parameterconflict, timeout_in_seconds, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -1037,7 +1036,7 @@ def execute_sql_database_tools_connection_execute_sql_database_tools_connection_ @cli_util.wrap_exceptions def execute_sql_database_tools_connection_execute_sql_database_tools_connection_synchronous_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, input, output_parameterconflict, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -1107,7 +1106,7 @@ def execute_sql_database_tools_connection_execute_sql_database_tools_connection_ @cli_util.wrap_exceptions def execute_sql_database_tools_connection_execute_sql_output_object_storage_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, output_object, if_match, output_result_disposition_templates, output_time_of_deletion): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -1174,10 +1173,10 @@ def execute_sql_database_tools_connection_execute_sql_output_object_storage_deta @cli_util.wrap_exceptions def get_credential(ctx, from_json, connection_id, credential_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') kwargs = {} @@ -1205,13 +1204,13 @@ def get_credential(ctx, from_json, connection_id, credential_key, if_match): @cli_util.wrap_exceptions def get_credential_execute_grantee(ctx, from_json, connection_id, credential_key, execute_grantee_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') - if isinstance(execute_grantee_key, six.string_types) and len(execute_grantee_key.strip()) == 0: + if isinstance(execute_grantee_key, str) and len(execute_grantee_key.strip()) == 0: raise click.UsageError('Parameter --execute-grantee-key cannot be whitespace or empty string') kwargs = {} @@ -1240,13 +1239,13 @@ def get_credential_execute_grantee(ctx, from_json, connection_id, credential_key @cli_util.wrap_exceptions def get_credential_public_synonym(ctx, from_json, connection_id, credential_key, public_synonym_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') - if isinstance(public_synonym_key, six.string_types) and len(public_synonym_key.strip()) == 0: + if isinstance(public_synonym_key, str) and len(public_synonym_key.strip()) == 0: raise click.UsageError('Parameter --public-synonym-key cannot be whitespace or empty string') kwargs = {} @@ -1275,7 +1274,7 @@ def get_credential_public_synonym(ctx, from_json, connection_id, credential_key, @cli_util.wrap_exceptions def get_database_tools_database_api_gateway_config_content(ctx, from_json, file, database_api_gateway_config_id, if_match, if_none_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') kwargs = {} @@ -1325,10 +1324,10 @@ def get_database_tools_database_api_gateway_config_content(ctx, from_json, file, @cli_util.wrap_exceptions def get_database_tools_database_api_gateway_config_global(ctx, from_json, database_api_gateway_config_id, global_key, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(global_key, six.string_types) and len(global_key.strip()) == 0: + if isinstance(global_key, str) and len(global_key.strip()) == 0: raise click.UsageError('Parameter --global-key cannot be whitespace or empty string') kwargs = {} @@ -1355,10 +1354,10 @@ def get_database_tools_database_api_gateway_config_global(ctx, from_json, databa @cli_util.wrap_exceptions def get_database_tools_database_api_gateway_config_pool(ctx, from_json, database_api_gateway_config_id, pool_key, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') kwargs = {} @@ -1386,13 +1385,13 @@ def get_database_tools_database_api_gateway_config_pool(ctx, from_json, database @cli_util.wrap_exceptions def get_database_tools_database_api_gateway_config_pool_api_spec(ctx, from_json, database_api_gateway_config_id, pool_key, api_spec_key, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') - if isinstance(api_spec_key, six.string_types) and len(api_spec_key.strip()) == 0: + if isinstance(api_spec_key, str) and len(api_spec_key.strip()) == 0: raise click.UsageError('Parameter --api-spec-key cannot be whitespace or empty string') kwargs = {} @@ -1421,13 +1420,13 @@ def get_database_tools_database_api_gateway_config_pool_api_spec(ctx, from_json, @cli_util.wrap_exceptions def get_database_tools_database_api_gateway_config_pool_auto_api_spec(ctx, from_json, database_api_gateway_config_id, pool_key, auto_api_spec_key, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') - if isinstance(auto_api_spec_key, six.string_types) and len(auto_api_spec_key.strip()) == 0: + if isinstance(auto_api_spec_key, str) and len(auto_api_spec_key.strip()) == 0: raise click.UsageError('Parameter --auto-api-spec-key cannot be whitespace or empty string') kwargs = {} @@ -1455,10 +1454,10 @@ def get_database_tools_database_api_gateway_config_pool_auto_api_spec(ctx, from_ @cli_util.wrap_exceptions def get_property_set(ctx, from_json, connection_id, property_set_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(property_set_key, six.string_types) and len(property_set_key.strip()) == 0: + if isinstance(property_set_key, str) and len(property_set_key.strip()) == 0: raise click.UsageError('Parameter --property-set-key cannot be whitespace or empty string') kwargs = {} @@ -1486,13 +1485,13 @@ def get_property_set(ctx, from_json, connection_id, property_set_key, if_match): @cli_util.wrap_exceptions def get_user_credential(ctx, from_json, connection_id, user_key, credential_key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(user_key, six.string_types) and len(user_key.strip()) == 0: + if isinstance(user_key, str) and len(user_key.strip()) == 0: raise click.UsageError('Parameter --user-key cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') kwargs = {} @@ -1518,7 +1517,7 @@ def get_user_credential(ctx, from_json, connection_id, user_key, credential_key, @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1550,10 +1549,10 @@ def list_credential_execute_grantees(ctx, from_json, all_pages, page_size, conne if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') kwargs = {} @@ -1614,10 +1613,10 @@ def list_credential_public_synonyms(ctx, from_json, all_pages, page_size, connec if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') kwargs = {} @@ -1677,7 +1676,7 @@ def list_credentials(ctx, from_json, all_pages, page_size, connection_id, if_mat if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -1754,10 +1753,10 @@ def list_database_tools_database_api_gateway_config_pool_api_specs(ctx, from_jso if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') kwargs = {} @@ -1821,10 +1820,10 @@ def list_database_tools_database_api_gateway_config_pool_auto_api_specs(ctx, fro if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') kwargs = {} @@ -1887,7 +1886,7 @@ def list_database_tools_database_api_gateway_config_pools(ctx, from_json, all_pa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') kwargs = {} @@ -1947,10 +1946,10 @@ def list_user_credentials(ctx, from_json, all_pages, page_size, connection_id, u if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(user_key, six.string_types) and len(user_key.strip()) == 0: + if isinstance(user_key, str) and len(user_key.strip()) == 0: raise click.UsageError('Parameter --user-key cannot be whitespace or empty string') kwargs = {} @@ -2010,7 +2009,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2067,7 +2066,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2184,10 +2183,10 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def update_credential(ctx, from_json, connection_id, credential_key, type, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') kwargs = {} @@ -2221,10 +2220,10 @@ def update_credential(ctx, from_json, connection_id, credential_key, type, if_ma @cli_util.wrap_exceptions def update_credential_update_credential_basic_details(ctx, from_json, connection_id, credential_key, user_name, password, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(credential_key, six.string_types) and len(credential_key.strip()) == 0: + if isinstance(credential_key, str) and len(credential_key.strip()) == 0: raise click.UsageError('Parameter --credential-key cannot be whitespace or empty string') kwargs = {} @@ -2273,10 +2272,10 @@ def update_credential_update_credential_basic_details(ctx, from_json, connection @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_global(ctx, from_json, force, database_api_gateway_config_id, global_key, type, pool_route, pool_routing_header, database_api_status, http_port, https_port, certificate_bundle, document_root, advanced_properties, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(global_key, six.string_types) and len(global_key.strip()) == 0: + if isinstance(global_key, str) and len(global_key.strip()) == 0: raise click.UsageError('Parameter --global-key cannot be whitespace or empty string') if not force: if certificate_bundle or advanced_properties: @@ -2345,10 +2344,10 @@ def update_database_tools_database_api_gateway_config_global(ctx, from_json, for @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_global_update_database_tools_database_api_gateway_config_global_default_details(ctx, from_json, force, database_api_gateway_config_id, global_key, pool_route, pool_routing_header, database_api_status, http_port, https_port, certificate_bundle, document_root, advanced_properties, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(global_key, six.string_types) and len(global_key.strip()) == 0: + if isinstance(global_key, str) and len(global_key.strip()) == 0: raise click.UsageError('Parameter --global-key cannot be whitespace or empty string') if not force: if certificate_bundle or advanced_properties: @@ -2419,10 +2418,10 @@ def update_database_tools_database_api_gateway_config_global_update_database_too @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_global_database_api_gateway_config_certificate_bundle_file_name(ctx, from_json, force, database_api_gateway_config_id, global_key, pool_route, pool_routing_header, database_api_status, http_port, https_port, document_root, advanced_properties, if_match, certificate_bundle_certificate_public, certificate_bundle_certificate_private_key): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(global_key, six.string_types) and len(global_key.strip()) == 0: + if isinstance(global_key, str) and len(global_key.strip()) == 0: raise click.UsageError('Parameter --global-key cannot be whitespace or empty string') if not force: if advanced_properties: @@ -2495,10 +2494,10 @@ def update_database_tools_database_api_gateway_config_global_database_api_gatewa @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_global_database_api_gateway_config_certificate_bundle_self_signed(ctx, from_json, force, database_api_gateway_config_id, global_key, pool_route, pool_routing_header, database_api_status, http_port, https_port, document_root, advanced_properties, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(global_key, six.string_types) and len(global_key.strip()) == 0: + if isinstance(global_key, str) and len(global_key.strip()) == 0: raise click.UsageError('Parameter --global-key cannot be whitespace or empty string') if not force: if advanced_properties: @@ -2572,10 +2571,10 @@ def update_database_tools_database_api_gateway_config_global_database_api_gatewa @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_pool(ctx, from_json, force, database_api_gateway_config_id, pool_key, type, display_name, pool_route_value, database_tools_connection_id, max_pool_size, min_pool_size, initial_pool_size, jwt_profile_jwk_url, jwt_profile_issuer, jwt_profile_audience, jwt_profile_role_claim_name, database_actions_status, rest_enabled_sql_status, advanced_properties, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') if not force: if advanced_properties: @@ -2664,10 +2663,10 @@ def update_database_tools_database_api_gateway_config_pool(ctx, from_json, force @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_pool_update_database_tools_database_api_gateway_config_pool_default_details(ctx, from_json, force, database_api_gateway_config_id, pool_key, display_name, pool_route_value, database_tools_connection_id, max_pool_size, min_pool_size, initial_pool_size, jwt_profile_jwk_url, jwt_profile_issuer, jwt_profile_audience, jwt_profile_role_claim_name, database_actions_status, rest_enabled_sql_status, advanced_properties, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') if not force: if advanced_properties: @@ -2747,13 +2746,13 @@ def update_database_tools_database_api_gateway_config_pool_update_database_tools @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_pool_api_spec(ctx, from_json, database_api_gateway_config_id, pool_key, api_spec_key, type, display_name, content, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') - if isinstance(api_spec_key, six.string_types) and len(api_spec_key.strip()) == 0: + if isinstance(api_spec_key, str) and len(api_spec_key.strip()) == 0: raise click.UsageError('Parameter --api-spec-key cannot be whitespace or empty string') kwargs = {} @@ -2795,13 +2794,13 @@ def update_database_tools_database_api_gateway_config_pool_api_spec(ctx, from_js @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_pool_api_spec_update_database_tools_database_api_gateway_config_pool_api_spec_default_details(ctx, from_json, database_api_gateway_config_id, pool_key, api_spec_key, display_name, content, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') - if isinstance(api_spec_key, six.string_types) and len(api_spec_key.strip()) == 0: + if isinstance(api_spec_key, str) and len(api_spec_key.strip()) == 0: raise click.UsageError('Parameter --api-spec-key cannot be whitespace or empty string') kwargs = {} @@ -2853,13 +2852,13 @@ def update_database_tools_database_api_gateway_config_pool_api_spec_update_datab @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_pool_auto_api_spec(ctx, from_json, force, database_api_gateway_config_id, pool_key, auto_api_spec_key, type, display_name, database_object_name, database_object_type, description, alias, operations, security_schemes, scope, roles, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') - if isinstance(auto_api_spec_key, six.string_types) and len(auto_api_spec_key.strip()) == 0: + if isinstance(auto_api_spec_key, str) and len(auto_api_spec_key.strip()) == 0: raise click.UsageError('Parameter --auto-api-spec-key cannot be whitespace or empty string') if not force: if operations or security_schemes or roles: @@ -2934,13 +2933,13 @@ def update_database_tools_database_api_gateway_config_pool_auto_api_spec(ctx, fr @cli_util.wrap_exceptions def update_database_tools_database_api_gateway_config_pool_auto_api_spec_update_database_tools_database_api_gateway_config_pool_auto_api_spec_default_details(ctx, from_json, force, database_api_gateway_config_id, pool_key, auto_api_spec_key, display_name, database_object_name, database_object_type, description, alias, operations, security_schemes, scope, roles, if_match): - if isinstance(database_api_gateway_config_id, six.string_types) and len(database_api_gateway_config_id.strip()) == 0: + if isinstance(database_api_gateway_config_id, str) and len(database_api_gateway_config_id.strip()) == 0: raise click.UsageError('Parameter --database-api-gateway-config-id cannot be whitespace or empty string') - if isinstance(pool_key, six.string_types) and len(pool_key.strip()) == 0: + if isinstance(pool_key, str) and len(pool_key.strip()) == 0: raise click.UsageError('Parameter --pool-key cannot be whitespace or empty string') - if isinstance(auto_api_spec_key, six.string_types) and len(auto_api_spec_key.strip()) == 0: + if isinstance(auto_api_spec_key, str) and len(auto_api_spec_key.strip()) == 0: raise click.UsageError('Parameter --auto-api-spec-key cannot be whitespace or empty string') if not force: if operations or security_schemes or roles: @@ -3006,10 +3005,10 @@ def update_database_tools_database_api_gateway_config_pool_auto_api_spec_update_ @cli_util.wrap_exceptions def update_property_set(ctx, from_json, connection_id, property_set_key, key, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(property_set_key, six.string_types) and len(property_set_key.strip()) == 0: + if isinstance(property_set_key, str) and len(property_set_key.strip()) == 0: raise click.UsageError('Parameter --property-set-key cannot be whitespace or empty string') kwargs = {} @@ -3049,10 +3048,10 @@ def update_property_set(ctx, from_json, connection_id, property_set_key, key, if @cli_util.wrap_exceptions def update_property_set_update_property_set_apex_document_generator_details(ctx, from_json, connection_id, property_set_key, print_server_type, credential_key, autonomous_database_resource_principal_status, object_storage_namespace, object_storage_bucket_compartment_id, object_storage_endpoint, function_id, invoke_endpoint, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(property_set_key, six.string_types) and len(property_set_key.strip()) == 0: + if isinstance(property_set_key, str) and len(property_set_key.strip()) == 0: raise click.UsageError('Parameter --property-set-key cannot be whitespace or empty string') kwargs = {} @@ -3111,10 +3110,10 @@ def update_property_set_update_property_set_apex_document_generator_details(ctx, @cli_util.wrap_exceptions def update_property_set_update_property_set_oracle_database_external_authentication_details(ctx, from_json, force, connection_id, property_set_key, identity_provider, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(property_set_key, six.string_types) and len(property_set_key.strip()) == 0: + if isinstance(property_set_key, str) and len(property_set_key.strip()) == 0: raise click.UsageError('Parameter --property-set-key cannot be whitespace or empty string') if not force: if identity_provider: @@ -3155,10 +3154,10 @@ def update_property_set_update_property_set_oracle_database_external_authenticat @cli_util.wrap_exceptions def update_property_set_update_property_set_apex_fa_integration_details(ctx, from_json, force, connection_id, property_set_key, authentication_substitutions, instance_dbms_credential_enabled, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') - if isinstance(property_set_key, six.string_types) and len(property_set_key.strip()) == 0: + if isinstance(property_set_key, str) and len(property_set_key.strip()) == 0: raise click.UsageError('Parameter --property-set-key cannot be whitespace or empty string') if not force: if authentication_substitutions: @@ -3201,7 +3200,7 @@ def update_property_set_update_property_set_apex_fa_integration_details(ctx, fro @cli_util.wrap_exceptions def validate_database_tools_connection(ctx, from_json, connection_id, type, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -3231,7 +3230,7 @@ def validate_database_tools_connection(ctx, from_json, connection_id, type, if_m @cli_util.wrap_exceptions def validate_database_tools_connection_validate_database_tools_connection_postgresql_details(ctx, from_json, connection_id, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -3262,7 +3261,7 @@ def validate_database_tools_connection_validate_database_tools_connection_postgr @cli_util.wrap_exceptions def validate_database_tools_connection_validate_database_tools_connection_my_sql_details(ctx, from_json, connection_id, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -3293,7 +3292,7 @@ def validate_database_tools_connection_validate_database_tools_connection_my_sql @cli_util.wrap_exceptions def validate_database_tools_connection_validate_database_tools_connection_oracle_database_details(ctx, from_json, connection_id, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -3325,7 +3324,7 @@ def validate_database_tools_connection_validate_database_tools_connection_oracle @cli_util.wrap_exceptions def validate_database_tools_identity_credential(ctx, from_json, identity_id, type, if_match): - if isinstance(identity_id, six.string_types) and len(identity_id.strip()) == 0: + if isinstance(identity_id, str) and len(identity_id.strip()) == 0: raise click.UsageError('Parameter --identity-id cannot be whitespace or empty string') kwargs = {} @@ -3355,7 +3354,7 @@ def validate_database_tools_identity_credential(ctx, from_json, identity_id, typ @cli_util.wrap_exceptions def validate_database_tools_identity_credential_validate_database_tools_identity_credential_oracle_database_resource_principal_details(ctx, from_json, identity_id, if_match): - if isinstance(identity_id, six.string_types) and len(identity_id.strip()) == 0: + if isinstance(identity_id, str) and len(identity_id.strip()) == 0: raise click.UsageError('Parameter --identity-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/datacc/src/oci_cli_baseinfra/generated/baseinfra_cli.py b/services/datacc/src/oci_cli_baseinfra/generated/baseinfra_cli.py index 4f1d7bc81..39014f6d6 100644 --- a/services/datacc/src/oci_cli_baseinfra/generated/baseinfra_cli.py +++ b/services/datacc/src/oci_cli_baseinfra/generated/baseinfra_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -122,7 +121,7 @@ def vm_cluster_network_summary_group(): @cli_util.wrap_exceptions def activate_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, activation_zip_file, infrastructure_id, if_match): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -183,7 +182,7 @@ def activate_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def change_infrastructure_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, infrastructure_id, compartment_id, if_match): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -244,7 +243,7 @@ def change_infrastructure_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_vm_cluster_network_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_cluster_network_id, compartment_id, if_match): - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -305,7 +304,7 @@ def change_vm_cluster_network_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_vm_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_instance_id, compartment_id, if_match): - if isinstance(vm_instance_id, six.string_types) and len(vm_instance_id.strip()) == 0: + if isinstance(vm_instance_id, str) and len(vm_instance_id.strip()) == 0: raise click.UsageError('Parameter --vm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -748,7 +747,7 @@ def create_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, infrastructure_id, if_match, is_force_delete): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -806,7 +805,7 @@ def delete_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_vm_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_cluster_network_id, if_match): - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -862,7 +861,7 @@ def delete_vm_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_instance_id, if_match): - if isinstance(vm_instance_id, six.string_types) and len(vm_instance_id.strip()) == 0: + if isinstance(vm_instance_id, str) and len(vm_instance_id.strip()) == 0: raise click.UsageError('Parameter --vm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -914,7 +913,7 @@ def delete_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def download_infrastructure_config_file(ctx, from_json, file, infrastructure_id): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -959,7 +958,7 @@ def download_infrastructure_config_file(ctx, from_json, file, infrastructure_id) @cli_util.wrap_exceptions def download_infrastructure_validation_script(ctx, from_json, file, infrastructure_id): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -1093,7 +1092,7 @@ def generate_recommended_vm_cluster_network(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def get_infrastructure(ctx, from_json, infrastructure_id): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -1115,7 +1114,7 @@ def get_infrastructure(ctx, from_json, infrastructure_id): @cli_util.wrap_exceptions def get_infrastructure_scale_option(ctx, from_json, infrastructure_id): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -1137,7 +1136,7 @@ def get_infrastructure_scale_option(ctx, from_json, infrastructure_id): @cli_util.wrap_exceptions def get_maintenance_execution(ctx, from_json, maintenance_execution_id): - if isinstance(maintenance_execution_id, six.string_types) and len(maintenance_execution_id.strip()) == 0: + if isinstance(maintenance_execution_id, str) and len(maintenance_execution_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-execution-id cannot be whitespace or empty string') kwargs = {} @@ -1159,7 +1158,7 @@ def get_maintenance_execution(ctx, from_json, maintenance_execution_id): @cli_util.wrap_exceptions def get_maintenance_run(ctx, from_json, maintenance_run_id): - if isinstance(maintenance_run_id, six.string_types) and len(maintenance_run_id.strip()) == 0: + if isinstance(maintenance_run_id, str) and len(maintenance_run_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-run-id cannot be whitespace or empty string') kwargs = {} @@ -1181,7 +1180,7 @@ def get_maintenance_run(ctx, from_json, maintenance_run_id): @cli_util.wrap_exceptions def get_vm_cluster_network(ctx, from_json, vm_cluster_network_id): - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} @@ -1203,7 +1202,7 @@ def get_vm_cluster_network(ctx, from_json, vm_cluster_network_id): @cli_util.wrap_exceptions def get_vm_instance(ctx, from_json, vm_instance_id): - if isinstance(vm_instance_id, six.string_types) and len(vm_instance_id.strip()) == 0: + if isinstance(vm_instance_id, str) and len(vm_instance_id.strip()) == 0: raise click.UsageError('Parameter --vm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1225,7 +1224,7 @@ def get_vm_instance(ctx, from_json, vm_instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1615,7 +1614,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1669,7 +1668,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1770,7 +1769,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def migrate_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_instance_id, if_match): - if isinstance(vm_instance_id, six.string_types) and len(vm_instance_id.strip()) == 0: + if isinstance(vm_instance_id, str) and len(vm_instance_id.strip()) == 0: raise click.UsageError('Parameter --vm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1827,7 +1826,7 @@ def migrate_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def reschedule_maintenance_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_run_id, time_scheduled, reason, if_match): - if isinstance(maintenance_run_id, six.string_types) and len(maintenance_run_id.strip()) == 0: + if isinstance(maintenance_run_id, str) and len(maintenance_run_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-run-id cannot be whitespace or empty string') kwargs = {} @@ -1890,7 +1889,7 @@ def reschedule_maintenance_run(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def restart_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_instance_id, if_match): - if isinstance(vm_instance_id, six.string_types) and len(vm_instance_id.strip()) == 0: + if isinstance(vm_instance_id, str) and len(vm_instance_id.strip()) == 0: raise click.UsageError('Parameter --vm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1946,7 +1945,7 @@ def restart_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def scale_infrastructure_storage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, infrastructure_id, ssd_configuration_requested, if_match): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -2010,7 +2009,7 @@ def scale_infrastructure_storage(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def scale_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_instance_id, memory_size_in_gbs, cpus_enabled, if_match): - if isinstance(vm_instance_id, six.string_types) and len(vm_instance_id.strip()) == 0: + if isinstance(vm_instance_id, str) and len(vm_instance_id.strip()) == 0: raise click.UsageError('Parameter --vm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2075,7 +2074,7 @@ def scale_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def start_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_instance_id, if_match): - if isinstance(vm_instance_id, six.string_types) and len(vm_instance_id.strip()) == 0: + if isinstance(vm_instance_id, str) and len(vm_instance_id.strip()) == 0: raise click.UsageError('Parameter --vm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2130,7 +2129,7 @@ def start_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def stop_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_instance_id, if_match): - if isinstance(vm_instance_id, six.string_types) and len(vm_instance_id.strip()) == 0: + if isinstance(vm_instance_id, str) and len(vm_instance_id.strip()) == 0: raise click.UsageError('Parameter --vm-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2213,7 +2212,7 @@ def stop_vm_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def update_infrastructure(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, infrastructure_id, display_name, description, system_model, shape, cloud_control_plane_server1, cloud_control_plane_server2, netmask, gateway, admin_networkcidr, data_disk_percentage, contacts, dns_servers, ntp_servers, client_bond_mode, backup_bond_mode, cps_bond_mode, client_bond_iface, backup_bond_iface, cps_bond_iface, acfs_size_in_gbs, corporate_proxy, vlan_id, maintenance_window, defined_tags, freeform_tags, if_match): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') if not force: if contacts or dns_servers or ntp_servers or maintenance_window or defined_tags or freeform_tags: @@ -2357,7 +2356,7 @@ def update_infrastructure(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_maintenance_run(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, patching_mode, custom_action_timeout_in_mins, maintenance_run_id, is_custom_action_timeout_enabled, defined_tags, freeform_tags, if_match): - if isinstance(maintenance_run_id, six.string_types) and len(maintenance_run_id.strip()) == 0: + if isinstance(maintenance_run_id, str) and len(maintenance_run_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-run-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -2445,7 +2444,7 @@ def update_maintenance_run(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_vm_cluster_network(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_cluster_network_id, display_name, scans, listener_port, listener_port_ssl, dns_servers, ntp_servers, vm_networks, freeform_tags, defined_tags, if_match): - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') if not force: if scans or dns_servers or ntp_servers or vm_networks or freeform_tags or defined_tags: @@ -2541,7 +2540,7 @@ def update_vm_cluster_network(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_vm_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_instance_id, description, display_name, data_storage_size_in_gbs, defined_tags, freeform_tags, if_match): - if isinstance(vm_instance_id, six.string_types) and len(vm_instance_id.strip()) == 0: + if isinstance(vm_instance_id, str) and len(vm_instance_id.strip()) == 0: raise click.UsageError('Parameter --vm-instance-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -2620,7 +2619,7 @@ def update_vm_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def validate_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, validation_zip_file, infrastructure_id, if_match): - if isinstance(infrastructure_id, six.string_types) and len(infrastructure_id.strip()) == 0: + if isinstance(infrastructure_id, str) and len(infrastructure_id.strip()) == 0: raise click.UsageError('Parameter --infrastructure-id cannot be whitespace or empty string') kwargs = {} @@ -2680,7 +2679,7 @@ def validate_infrastructure(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def validate_vm_cluster_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vm_cluster_network_id, if_match): - if isinstance(vm_cluster_network_id, six.string_types) and len(vm_cluster_network_id.strip()) == 0: + if isinstance(vm_cluster_network_id, str) and len(vm_cluster_network_id.strip()) == 0: raise click.UsageError('Parameter --vm-cluster-network-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/dblm/src/oci_cli_db_life_cycle_management/generated/dblifecyclemanagement_cli.py b/services/dblm/src/oci_cli_db_life_cycle_management/generated/dblifecyclemanagement_cli.py index 6a05ce673..0dcad2a24 100644 --- a/services/dblm/src/oci_cli_db_life_cycle_management/generated/dblifecyclemanagement_cli.py +++ b/services/dblm/src/oci_cli_db_life_cycle_management/generated/dblifecyclemanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -218,7 +217,7 @@ def get_vulnerability(ctx, from_json, compartment_id, database_release, lifecycl @cli_util.wrap_exceptions def get_vulnerability_scan(ctx, from_json, vulnerability_scan_id): - if isinstance(vulnerability_scan_id, six.string_types) and len(vulnerability_scan_id.strip()) == 0: + if isinstance(vulnerability_scan_id, str) and len(vulnerability_scan_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-scan-id cannot be whitespace or empty string') kwargs = {} @@ -240,7 +239,7 @@ def get_vulnerability_scan(ctx, from_json, vulnerability_scan_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -644,7 +643,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -701,7 +700,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/dbmulticloud/src/oci_cli_db_multicloud_aws_provider/generated/dbmulticloudawsprovider_cli.py b/services/dbmulticloud/src/oci_cli_db_multicloud_aws_provider/generated/dbmulticloudawsprovider_cli.py index 849c41d47..0fd24c44b 100644 --- a/services/dbmulticloud/src/oci_cli_db_multicloud_aws_provider/generated/dbmulticloudawsprovider_cli.py +++ b/services/dbmulticloud/src/oci_cli_db_multicloud_aws_provider/generated/dbmulticloudawsprovider_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -87,7 +86,7 @@ def oracle_db_aws_key_group(): @cli_util.wrap_exceptions def change_oracle_db_aws_identity_connector_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_aws_identity_connector_id, compartment_id, if_match): - if isinstance(oracle_db_aws_identity_connector_id, six.string_types) and len(oracle_db_aws_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_aws_identity_connector_id, str) and len(oracle_db_aws_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-identity-connector-id cannot be whitespace or empty string') kwargs = {} @@ -150,7 +149,7 @@ def change_oracle_db_aws_identity_connector_compartment(ctx, from_json, wait_for @cli_util.wrap_exceptions def change_oracle_db_aws_key_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_aws_key_id, compartment_id, if_match): - if isinstance(oracle_db_aws_key_id, six.string_types) and len(oracle_db_aws_key_id.strip()) == 0: + if isinstance(oracle_db_aws_key_id, str) and len(oracle_db_aws_key_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-key-id cannot be whitespace or empty string') kwargs = {} @@ -394,7 +393,7 @@ def create_oracle_db_aws_key(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_oracle_db_aws_identity_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_aws_identity_connector_id, if_match): - if isinstance(oracle_db_aws_identity_connector_id, six.string_types) and len(oracle_db_aws_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_aws_identity_connector_id, str) and len(oracle_db_aws_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-identity-connector-id cannot be whitespace or empty string') kwargs = {} @@ -450,7 +449,7 @@ def delete_oracle_db_aws_identity_connector(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def delete_oracle_db_aws_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_aws_key_id, if_match): - if isinstance(oracle_db_aws_key_id, six.string_types) and len(oracle_db_aws_key_id.strip()) == 0: + if isinstance(oracle_db_aws_key_id, str) and len(oracle_db_aws_key_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-key-id cannot be whitespace or empty string') kwargs = {} @@ -501,7 +500,7 @@ def delete_oracle_db_aws_key(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def get_oracle_db_aws_identity_connector(ctx, from_json, oracle_db_aws_identity_connector_id): - if isinstance(oracle_db_aws_identity_connector_id, six.string_types) and len(oracle_db_aws_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_aws_identity_connector_id, str) and len(oracle_db_aws_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-identity-connector-id cannot be whitespace or empty string') kwargs = {} @@ -526,7 +525,7 @@ def get_oracle_db_aws_identity_connector(ctx, from_json, oracle_db_aws_identity_ @cli_util.wrap_exceptions def get_oracle_db_aws_key(ctx, from_json, oracle_db_aws_key_id, limit, page, sort_order): - if isinstance(oracle_db_aws_key_id, six.string_types) and len(oracle_db_aws_key_id.strip()) == 0: + if isinstance(oracle_db_aws_key_id, str) and len(oracle_db_aws_key_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-key-id cannot be whitespace or empty string') kwargs = {} @@ -687,7 +686,7 @@ def list_oracle_db_aws_keys(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def refresh_oracle_db_aws_identity_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_aws_identity_connector_id, if_match): - if isinstance(oracle_db_aws_identity_connector_id, six.string_types) and len(oracle_db_aws_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_aws_identity_connector_id, str) and len(oracle_db_aws_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-identity-connector-id cannot be whitespace or empty string') kwargs = {} @@ -743,7 +742,7 @@ def refresh_oracle_db_aws_identity_connector(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def refresh_oracle_db_aws_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_aws_key_id, oracle_db_aws_connector_id, if_match): - if isinstance(oracle_db_aws_key_id, six.string_types) and len(oracle_db_aws_key_id.strip()) == 0: + if isinstance(oracle_db_aws_key_id, str) and len(oracle_db_aws_key_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-key-id cannot be whitespace or empty string') kwargs = {} @@ -807,7 +806,7 @@ def refresh_oracle_db_aws_key(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def replicate_oracle_db_aws_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_aws_key_id, target_region, action, if_match): - if isinstance(oracle_db_aws_key_id, six.string_types) and len(oracle_db_aws_key_id.strip()) == 0: + if isinstance(oracle_db_aws_key_id, str) and len(oracle_db_aws_key_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-key-id cannot be whitespace or empty string') kwargs = {} @@ -885,7 +884,7 @@ def replicate_oracle_db_aws_key(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_oracle_db_aws_identity_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_aws_identity_connector_id, display_name, resource_id, oidc_scope, issuer_url, service_role_details, aws_location, aws_sts_private_endpoint, aws_account_id, freeform_tags, defined_tags, if_match): - if isinstance(oracle_db_aws_identity_connector_id, six.string_types) and len(oracle_db_aws_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_aws_identity_connector_id, str) and len(oracle_db_aws_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-identity-connector-id cannot be whitespace or empty string') if not force: if service_role_details or freeform_tags or defined_tags: @@ -986,7 +985,7 @@ def update_oracle_db_aws_identity_connector(ctx, from_json, force, wait_for_stat @cli_util.wrap_exceptions def update_oracle_db_aws_key(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_aws_key_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(oracle_db_aws_key_id, six.string_types) and len(oracle_db_aws_key_id.strip()) == 0: + if isinstance(oracle_db_aws_key_id, str) and len(oracle_db_aws_key_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-aws-key-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/generated/dbmulticloudgcpprovider_cli.py b/services/dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/generated/dbmulticloudgcpprovider_cli.py index 765c93983..8d3aefc3b 100644 --- a/services/dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/generated/dbmulticloudgcpprovider_cli.py +++ b/services/dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/generated/dbmulticloudgcpprovider_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -94,7 +93,7 @@ def oracle_db_gcp_key_group(): @cli_util.wrap_exceptions def change_oracle_db_gcp_identity_connector_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_identity_connector_id, compartment_id, if_match): - if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_gcp_identity_connector_id, str) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string') kwargs = {} @@ -157,7 +156,7 @@ def change_oracle_db_gcp_identity_connector_compartment(ctx, from_json, wait_for @cli_util.wrap_exceptions def change_oracle_db_gcp_key_ring_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_key_ring_id, compartment_id, if_match): - if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0: + if isinstance(oracle_db_gcp_key_ring_id, str) and len(oracle_db_gcp_key_ring_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string') kwargs = {} @@ -389,7 +388,7 @@ def create_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_oracle_db_gcp_identity_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_identity_connector_id, if_match): - if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_gcp_identity_connector_id, str) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string') kwargs = {} @@ -445,7 +444,7 @@ def delete_oracle_db_gcp_identity_connector(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def delete_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_key_ring_id, if_match): - if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0: + if isinstance(oracle_db_gcp_key_ring_id, str) and len(oracle_db_gcp_key_ring_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string') kwargs = {} @@ -496,7 +495,7 @@ def delete_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def get_oracle_db_gcp_identity_connector(ctx, from_json, oracle_db_gcp_identity_connector_id): - if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_gcp_identity_connector_id, str) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string') kwargs = {} @@ -518,7 +517,7 @@ def get_oracle_db_gcp_identity_connector(ctx, from_json, oracle_db_gcp_identity_ @cli_util.wrap_exceptions def get_oracle_db_gcp_key(ctx, from_json, oracle_db_gcp_key_id): - if isinstance(oracle_db_gcp_key_id, six.string_types) and len(oracle_db_gcp_key_id.strip()) == 0: + if isinstance(oracle_db_gcp_key_id, str) and len(oracle_db_gcp_key_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-key-id cannot be whitespace or empty string') kwargs = {} @@ -543,7 +542,7 @@ def get_oracle_db_gcp_key(ctx, from_json, oracle_db_gcp_key_id): @cli_util.wrap_exceptions def get_oracle_db_gcp_key_ring(ctx, from_json, oracle_db_gcp_key_ring_id, limit, page, sort_order): - if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0: + if isinstance(oracle_db_gcp_key_ring_id, str) and len(oracle_db_gcp_key_ring_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string') kwargs = {} @@ -770,7 +769,7 @@ def list_oracle_db_gcp_keys(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def refresh_oracle_db_gcp_identity_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_identity_connector_id, if_match): - if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_gcp_identity_connector_id, str) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string') kwargs = {} @@ -826,7 +825,7 @@ def refresh_oracle_db_gcp_identity_connector(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def refresh_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_key_ring_id, oracle_db_gcp_connector_id, if_match): - if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0: + if isinstance(oracle_db_gcp_key_ring_id, str) and len(oracle_db_gcp_key_ring_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string') kwargs = {} @@ -890,7 +889,7 @@ def refresh_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def replicate_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_key_ring_id, target_region, action, if_match): - if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0: + if isinstance(oracle_db_gcp_key_ring_id, str) and len(oracle_db_gcp_key_ring_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string') kwargs = {} @@ -968,7 +967,7 @@ def replicate_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_oracle_db_gcp_identity_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_identity_connector_id, display_name, issuer_url, project_id, resource_id, gcp_location, gcp_workload_identity_pool_id, gcp_workload_identity_provider_id, gcp_resource_service_agent_id, freeform_tags, defined_tags, if_match): - if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: + if isinstance(oracle_db_gcp_identity_connector_id, str) and len(oracle_db_gcp_identity_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1069,7 +1068,7 @@ def update_oracle_db_gcp_identity_connector(ctx, from_json, force, wait_for_stat @cli_util.wrap_exceptions def update_oracle_db_gcp_key_ring(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_key_ring_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0: + if isinstance(oracle_db_gcp_key_ring_id, str) and len(oracle_db_gcp_key_ring_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/dbmulticloud/src/oci_cli_multi_cloud_resource_discovery/generated/multicloudresourcediscovery_cli.py b/services/dbmulticloud/src/oci_cli_multi_cloud_resource_discovery/generated/multicloudresourcediscovery_cli.py index c58201ba4..479b8134a 100644 --- a/services/dbmulticloud/src/oci_cli_multi_cloud_resource_discovery/generated/multicloudresourcediscovery_cli.py +++ b/services/dbmulticloud/src/oci_cli_multi_cloud_resource_discovery/generated/multicloudresourcediscovery_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -89,7 +88,7 @@ def multi_cloud_resource_discovery_group(): @cli_util.wrap_exceptions def change_multi_cloud_resource_discovery_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, multi_cloud_resource_discovery_id, compartment_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(multi_cloud_resource_discovery_id, six.string_types) and len(multi_cloud_resource_discovery_id.strip()) == 0: + if isinstance(multi_cloud_resource_discovery_id, str) and len(multi_cloud_resource_discovery_id.strip()) == 0: raise click.UsageError('Parameter --multi-cloud-resource-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -239,7 +238,7 @@ def create_multi_cloud_resource_discovery(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def delete_multi_cloud_resource_discovery(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, multi_cloud_resource_discovery_id, if_match): - if isinstance(multi_cloud_resource_discovery_id, six.string_types) and len(multi_cloud_resource_discovery_id.strip()) == 0: + if isinstance(multi_cloud_resource_discovery_id, str) and len(multi_cloud_resource_discovery_id.strip()) == 0: raise click.UsageError('Parameter --multi-cloud-resource-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -293,7 +292,7 @@ def delete_multi_cloud_resource_discovery(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def get_multi_cloud_resource_discovery(ctx, from_json, multi_cloud_resource_discovery_id, limit, page, sort_order): - if isinstance(multi_cloud_resource_discovery_id, six.string_types) and len(multi_cloud_resource_discovery_id.strip()) == 0: + if isinstance(multi_cloud_resource_discovery_id, str) and len(multi_cloud_resource_discovery_id.strip()) == 0: raise click.UsageError('Parameter --multi-cloud-resource-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -408,7 +407,7 @@ def list_multi_cloud_resource_discoveries(ctx, from_json, all_pages, page_size, @cli_util.wrap_exceptions def update_multi_cloud_resource_discovery(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, multi_cloud_resource_discovery_id, compartment_id, display_name, oracle_db_connector_id, resource_type, freeform_tags, defined_tags, if_match): - if isinstance(multi_cloud_resource_discovery_id, six.string_types) and len(multi_cloud_resource_discovery_id.strip()) == 0: + if isinstance(multi_cloud_resource_discovery_id, str) and len(multi_cloud_resource_discovery_id.strip()) == 0: raise click.UsageError('Parameter --multi-cloud-resource-discovery-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_container/generated/oracledbazureblobcontainer_cli.py b/services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_container/generated/oracledbazureblobcontainer_cli.py index 6e8d4ce59..e077753b7 100644 --- a/services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_container/generated/oracledbazureblobcontainer_cli.py +++ b/services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_container/generated/oracledbazureblobcontainer_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -89,7 +88,7 @@ def oracle_db_azure_blob_container_group(): @cli_util.wrap_exceptions def change_oracle_db_azure_blob_container_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_blob_container_id, compartment_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(oracle_db_azure_blob_container_id, six.string_types) and len(oracle_db_azure_blob_container_id.strip()) == 0: + if isinstance(oracle_db_azure_blob_container_id, str) and len(oracle_db_azure_blob_container_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-blob-container-id cannot be whitespace or empty string') kwargs = {} @@ -243,7 +242,7 @@ def create_oracle_db_azure_blob_container(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def delete_oracle_db_azure_blob_container(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_blob_container_id, if_match): - if isinstance(oracle_db_azure_blob_container_id, six.string_types) and len(oracle_db_azure_blob_container_id.strip()) == 0: + if isinstance(oracle_db_azure_blob_container_id, str) and len(oracle_db_azure_blob_container_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-blob-container-id cannot be whitespace or empty string') kwargs = {} @@ -297,7 +296,7 @@ def delete_oracle_db_azure_blob_container(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def get_oracle_db_azure_blob_container(ctx, from_json, oracle_db_azure_blob_container_id, limit, page, sort_order): - if isinstance(oracle_db_azure_blob_container_id, six.string_types) and len(oracle_db_azure_blob_container_id.strip()) == 0: + if isinstance(oracle_db_azure_blob_container_id, str) and len(oracle_db_azure_blob_container_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-blob-container-id cannot be whitespace or empty string') kwargs = {} @@ -411,7 +410,7 @@ def list_oracle_db_azure_blob_containers(ctx, from_json, all_pages, page_size, c @cli_util.wrap_exceptions def update_oracle_db_azure_blob_container(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_blob_container_id, compartment_id, display_name, private_endpoint_ip_address, private_endpoint_dns_alias, azure_storage_account_name, azure_storage_container_name, freeform_tags, defined_tags, if_match): - if isinstance(oracle_db_azure_blob_container_id, six.string_types) and len(oracle_db_azure_blob_container_id.strip()) == 0: + if isinstance(oracle_db_azure_blob_container_id, str) and len(oracle_db_azure_blob_container_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-blob-container-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_mount/generated/oracledbazureblobmount_cli.py b/services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_mount/generated/oracledbazureblobmount_cli.py index b7872d269..bb2d3d0df 100644 --- a/services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_mount/generated/oracledbazureblobmount_cli.py +++ b/services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_mount/generated/oracledbazureblobmount_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -89,7 +88,7 @@ def oracle_db_azure_blob_mount_group(): @cli_util.wrap_exceptions def change_oracle_db_azure_blob_mount_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_blob_mount_id, compartment_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(oracle_db_azure_blob_mount_id, six.string_types) and len(oracle_db_azure_blob_mount_id.strip()) == 0: + if isinstance(oracle_db_azure_blob_mount_id, str) and len(oracle_db_azure_blob_mount_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-blob-mount-id cannot be whitespace or empty string') kwargs = {} @@ -235,7 +234,7 @@ def create_oracle_db_azure_blob_mount(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_oracle_db_azure_blob_mount(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_blob_mount_id, if_match): - if isinstance(oracle_db_azure_blob_mount_id, six.string_types) and len(oracle_db_azure_blob_mount_id.strip()) == 0: + if isinstance(oracle_db_azure_blob_mount_id, str) and len(oracle_db_azure_blob_mount_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-blob-mount-id cannot be whitespace or empty string') kwargs = {} @@ -289,7 +288,7 @@ def delete_oracle_db_azure_blob_mount(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def get_oracle_db_azure_blob_mount(ctx, from_json, oracle_db_azure_blob_mount_id, limit, page, sort_order): - if isinstance(oracle_db_azure_blob_mount_id, six.string_types) and len(oracle_db_azure_blob_mount_id.strip()) == 0: + if isinstance(oracle_db_azure_blob_mount_id, str) and len(oracle_db_azure_blob_mount_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-blob-mount-id cannot be whitespace or empty string') kwargs = {} @@ -401,7 +400,7 @@ def list_oracle_db_azure_blob_mounts(ctx, from_json, all_pages, page_size, compa @cli_util.wrap_exceptions def update_oracle_db_azure_blob_mount(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_blob_mount_id, compartment_id, display_name, oracle_db_azure_connector_id, oracle_db_azure_blob_container_id, freeform_tags, defined_tags, if_match): - if isinstance(oracle_db_azure_blob_mount_id, six.string_types) and len(oracle_db_azure_blob_mount_id.strip()) == 0: + if isinstance(oracle_db_azure_blob_mount_id, str) and len(oracle_db_azure_blob_mount_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-blob-mount-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/dbmulticloud/src/oci_cli_oracle_db_azure_connector/generated/oracledbazureconnector_cli.py b/services/dbmulticloud/src/oci_cli_oracle_db_azure_connector/generated/oracledbazureconnector_cli.py index 14865e324..6bc97c44e 100644 --- a/services/dbmulticloud/src/oci_cli_oracle_db_azure_connector/generated/oracledbazureconnector_cli.py +++ b/services/dbmulticloud/src/oci_cli_oracle_db_azure_connector/generated/oracledbazureconnector_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -89,7 +88,7 @@ def oracle_db_azure_connector_group(): @cli_util.wrap_exceptions def change_oracle_db_azure_connector_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_connector_id, compartment_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(oracle_db_azure_connector_id, six.string_types) and len(oracle_db_azure_connector_id.strip()) == 0: + if isinstance(oracle_db_azure_connector_id, str) and len(oracle_db_azure_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-connector-id cannot be whitespace or empty string') kwargs = {} @@ -250,7 +249,7 @@ def create_oracle_db_azure_connector(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_oracle_db_azure_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_connector_id, if_match): - if isinstance(oracle_db_azure_connector_id, six.string_types) and len(oracle_db_azure_connector_id.strip()) == 0: + if isinstance(oracle_db_azure_connector_id, str) and len(oracle_db_azure_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-connector-id cannot be whitespace or empty string') kwargs = {} @@ -304,7 +303,7 @@ def delete_oracle_db_azure_connector(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def get_oracle_db_azure_connector(ctx, from_json, oracle_db_azure_connector_id, limit, page, sort_order): - if isinstance(oracle_db_azure_connector_id, six.string_types) and len(oracle_db_azure_connector_id.strip()) == 0: + if isinstance(oracle_db_azure_connector_id, str) and len(oracle_db_azure_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-connector-id cannot be whitespace or empty string') kwargs = {} @@ -412,7 +411,7 @@ def list_oracle_db_azure_connectors(ctx, from_json, all_pages, page_size, compar @cli_util.wrap_exceptions def patch_oracle_db_azure_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_connector_id, new_version, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(oracle_db_azure_connector_id, six.string_types) and len(oracle_db_azure_connector_id.strip()) == 0: + if isinstance(oracle_db_azure_connector_id, str) and len(oracle_db_azure_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-connector-id cannot be whitespace or empty string') kwargs = {} @@ -483,7 +482,7 @@ def patch_oracle_db_azure_connector(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def refresh_oracle_db_azure_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_connector_id, if_match): - if isinstance(oracle_db_azure_connector_id, six.string_types) and len(oracle_db_azure_connector_id.strip()) == 0: + if isinstance(oracle_db_azure_connector_id, str) and len(oracle_db_azure_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-connector-id cannot be whitespace or empty string') kwargs = {} @@ -555,7 +554,7 @@ def refresh_oracle_db_azure_connector(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_oracle_db_azure_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_connector_id, compartment_id, display_name, db_cluster_resource_id, azure_identity_mechanism, azure_tenant_id, azure_subscription_id, azure_resource_group, access_token, private_endpoint_ip_address, private_endpoint_dns_alias, freeform_tags, defined_tags, if_match): - if isinstance(oracle_db_azure_connector_id, six.string_types) and len(oracle_db_azure_connector_id.strip()) == 0: + if isinstance(oracle_db_azure_connector_id, str) and len(oracle_db_azure_connector_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-connector-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/dbmulticloud/src/oci_cli_oracle_db_azure_key/generated/oracledbazurekey_cli.py b/services/dbmulticloud/src/oci_cli_oracle_db_azure_key/generated/oracledbazurekey_cli.py index 731fa3884..fe18eec16 100644 --- a/services/dbmulticloud/src/oci_cli_oracle_db_azure_key/generated/oracledbazurekey_cli.py +++ b/services/dbmulticloud/src/oci_cli_oracle_db_azure_key/generated/oracledbazurekey_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -78,7 +77,7 @@ def oracle_db_azure_key_group(): @cli_util.wrap_exceptions def get_oracle_db_azure_key(ctx, from_json, oracle_db_azure_key_id, limit, page, sort_order): - if isinstance(oracle_db_azure_key_id, six.string_types) and len(oracle_db_azure_key_id.strip()) == 0: + if isinstance(oracle_db_azure_key_id, str) and len(oracle_db_azure_key_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-key-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/dbmulticloud/src/oci_cli_oracle_db_azure_vault/generated/oracledbazurevault_cli.py b/services/dbmulticloud/src/oci_cli_oracle_db_azure_vault/generated/oracledbazurevault_cli.py index 214f4a18d..6362957c0 100644 --- a/services/dbmulticloud/src/oci_cli_oracle_db_azure_vault/generated/oracledbazurevault_cli.py +++ b/services/dbmulticloud/src/oci_cli_oracle_db_azure_vault/generated/oracledbazurevault_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -89,7 +88,7 @@ def oracle_db_azure_vault_group(): @cli_util.wrap_exceptions def change_oracle_db_azure_vault_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_vault_id, compartment_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(oracle_db_azure_vault_id, six.string_types) and len(oracle_db_azure_vault_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_id, str) and len(oracle_db_azure_vault_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-id cannot be whitespace or empty string') kwargs = {} @@ -253,7 +252,7 @@ def create_oracle_db_azure_vault(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_oracle_db_azure_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_vault_id, if_match): - if isinstance(oracle_db_azure_vault_id, six.string_types) and len(oracle_db_azure_vault_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_id, str) and len(oracle_db_azure_vault_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-id cannot be whitespace or empty string') kwargs = {} @@ -307,7 +306,7 @@ def delete_oracle_db_azure_vault(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def get_oracle_db_azure_vault(ctx, from_json, oracle_db_azure_vault_id, limit, page, sort_order): - if isinstance(oracle_db_azure_vault_id, six.string_types) and len(oracle_db_azure_vault_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_id, str) and len(oracle_db_azure_vault_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-id cannot be whitespace or empty string') kwargs = {} @@ -409,7 +408,7 @@ def list_oracle_db_azure_vaults(ctx, from_json, all_pages, page_size, compartmen @cli_util.wrap_exceptions def refresh_oracle_db_azure_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_vault_id, oracle_db_azure_connector_id, if_match): - if isinstance(oracle_db_azure_vault_id, six.string_types) and len(oracle_db_azure_vault_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_id, str) and len(oracle_db_azure_vault_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-id cannot be whitespace or empty string') kwargs = {} @@ -473,7 +472,7 @@ def refresh_oracle_db_azure_vault(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def replicate_oracle_db_azure_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_vault_id, target_region, action, if_match): - if isinstance(oracle_db_azure_vault_id, six.string_types) and len(oracle_db_azure_vault_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_id, str) and len(oracle_db_azure_vault_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-id cannot be whitespace or empty string') kwargs = {} @@ -551,7 +550,7 @@ def replicate_oracle_db_azure_vault(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_oracle_db_azure_vault(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_vault_id, compartment_id, oracle_db_connector_id, display_name, oracle_db_azure_resource_group, azure_vault_id, type, location, properties, freeform_tags, defined_tags, if_match): - if isinstance(oracle_db_azure_vault_id, six.string_types) and len(oracle_db_azure_vault_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_id, str) and len(oracle_db_azure_vault_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-id cannot be whitespace or empty string') if not force: if properties or freeform_tags or defined_tags: diff --git a/services/dbmulticloud/src/oci_cli_oracle_db_azure_vault_association/generated/oracledbazurevaultassociation_cli.py b/services/dbmulticloud/src/oci_cli_oracle_db_azure_vault_association/generated/oracledbazurevaultassociation_cli.py index a24100dc5..0b9e84f4c 100644 --- a/services/dbmulticloud/src/oci_cli_oracle_db_azure_vault_association/generated/oracledbazurevaultassociation_cli.py +++ b/services/dbmulticloud/src/oci_cli_oracle_db_azure_vault_association/generated/oracledbazurevaultassociation_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -79,7 +78,7 @@ def oracle_db_azure_vault_association_group(): @cli_util.wrap_exceptions def cascading_delete_oracle_db_azure_vault_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_vault_association_id, if_match): - if isinstance(oracle_db_azure_vault_association_id, six.string_types) and len(oracle_db_azure_vault_association_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_association_id, str) and len(oracle_db_azure_vault_association_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-association-id cannot be whitespace or empty string') kwargs = {} @@ -144,7 +143,7 @@ def cascading_delete_oracle_db_azure_vault_association(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def change_oracle_db_azure_vault_association_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_vault_association_id, compartment_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(oracle_db_azure_vault_association_id, six.string_types) and len(oracle_db_azure_vault_association_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_association_id, str) and len(oracle_db_azure_vault_association_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-association-id cannot be whitespace or empty string') kwargs = {} @@ -290,7 +289,7 @@ def create_oracle_db_azure_vault_association(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def delete_oracle_db_azure_vault_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_vault_association_id, if_match): - if isinstance(oracle_db_azure_vault_association_id, six.string_types) and len(oracle_db_azure_vault_association_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_association_id, str) and len(oracle_db_azure_vault_association_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-association-id cannot be whitespace or empty string') kwargs = {} @@ -344,7 +343,7 @@ def delete_oracle_db_azure_vault_association(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def get_oracle_db_azure_vault_association(ctx, from_json, oracle_db_azure_vault_association_id, limit, page, sort_order): - if isinstance(oracle_db_azure_vault_association_id, six.string_types) and len(oracle_db_azure_vault_association_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_association_id, str) and len(oracle_db_azure_vault_association_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-association-id cannot be whitespace or empty string') kwargs = {} @@ -456,7 +455,7 @@ def list_oracle_db_azure_vault_associations(ctx, from_json, all_pages, page_size @cli_util.wrap_exceptions def update_oracle_db_azure_vault_association(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_azure_vault_association_id, compartment_id, display_name, oracle_db_azure_vault_id, oracle_db_azure_connector_id, freeform_tags, defined_tags, if_match): - if isinstance(oracle_db_azure_vault_association_id, six.string_types) and len(oracle_db_azure_vault_association_id.strip()) == 0: + if isinstance(oracle_db_azure_vault_association_id, str) and len(oracle_db_azure_vault_association_id.strip()) == 0: raise click.UsageError('Parameter --oracle-db-azure-vault-association-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/dbmulticloud/src/oci_cli_work_request/generated/workrequest_cli.py b/services/dbmulticloud/src/oci_cli_work_request/generated/workrequest_cli.py index ae2ffcf78..9cb34a1ee 100644 --- a/services/dbmulticloud/src/oci_cli_work_request/generated/workrequest_cli.py +++ b/services/dbmulticloud/src/oci_cli_work_request/generated/workrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -91,7 +90,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -115,7 +114,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -146,7 +145,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -203,7 +202,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/ddfs/src/oci_cli_instance/generated/instance_cli.py b/services/ddfs/src/oci_cli_instance/generated/instance_cli.py index 4f0c1a0a5..3e72045b7 100644 --- a/services/ddfs/src/oci_cli_instance/generated/instance_cli.py +++ b/services/ddfs/src/oci_cli_instance/generated/instance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -72,7 +71,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -101,7 +100,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, compartment_id, if_match): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -235,7 +234,7 @@ def create_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, if_match): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -286,7 +285,7 @@ def delete_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def get_instance(ctx, from_json, instance_id): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') kwargs = {} @@ -308,7 +307,7 @@ def get_instance(ctx, from_json, instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -401,7 +400,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -458,7 +457,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -580,7 +579,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(instance_id, six.string_types) and len(instance_id.strip()) == 0: + if isinstance(instance_id, str) and len(instance_id.strip()) == 0: raise click.UsageError('Parameter --instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/delegate_access_control/src/oci_cli_delegate_access_control/generated/delegateaccesscontrol_cli.py b/services/delegate_access_control/src/oci_cli_delegate_access_control/generated/delegateaccesscontrol_cli.py index 2c7182a5a..b7e21513a 100644 --- a/services/delegate_access_control/src/oci_cli_delegate_access_control/generated/delegateaccesscontrol_cli.py +++ b/services/delegate_access_control/src/oci_cli_delegate_access_control/generated/delegateaccesscontrol_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -97,7 +96,7 @@ def delegation_subscription_group(): @cli_util.wrap_exceptions def approve_delegated_resource_access_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, delegated_resource_access_request_id, approver_comment, additional_message, time_approved_for_access, if_match): - if isinstance(delegated_resource_access_request_id, six.string_types) and len(delegated_resource_access_request_id.strip()) == 0: + if isinstance(delegated_resource_access_request_id, str) and len(delegated_resource_access_request_id.strip()) == 0: raise click.UsageError('Parameter --delegated-resource-access-request-id cannot be whitespace or empty string') kwargs = {} @@ -166,7 +165,7 @@ def approve_delegated_resource_access_request(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def change_delegation_control_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, delegation_control_id, compartment_id, if_match): - if isinstance(delegation_control_id, six.string_types) and len(delegation_control_id.strip()) == 0: + if isinstance(delegation_control_id, str) and len(delegation_control_id.strip()) == 0: raise click.UsageError('Parameter --delegation-control-id cannot be whitespace or empty string') kwargs = {} @@ -229,7 +228,7 @@ def change_delegation_control_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_delegation_subscription_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, delegation_subscription_id, compartment_id, if_match): - if isinstance(delegation_subscription_id, six.string_types) and len(delegation_subscription_id.strip()) == 0: + if isinstance(delegation_subscription_id, str) and len(delegation_subscription_id.strip()) == 0: raise click.UsageError('Parameter --delegation-subscription-id cannot be whitespace or empty string') kwargs = {} @@ -467,7 +466,7 @@ def create_delegation_subscription(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_delegation_control(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, delegation_control_id, description, if_match): - if isinstance(delegation_control_id, six.string_types) and len(delegation_control_id.strip()) == 0: + if isinstance(delegation_control_id, str) and len(delegation_control_id.strip()) == 0: raise click.UsageError('Parameter --delegation-control-id cannot be whitespace or empty string') kwargs = {} @@ -525,7 +524,7 @@ def delete_delegation_control(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_delegation_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, delegation_subscription_id, if_match): - if isinstance(delegation_subscription_id, six.string_types) and len(delegation_subscription_id.strip()) == 0: + if isinstance(delegation_subscription_id, str) and len(delegation_subscription_id.strip()) == 0: raise click.UsageError('Parameter --delegation-subscription-id cannot be whitespace or empty string') kwargs = {} @@ -576,7 +575,7 @@ def delete_delegation_subscription(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def get_delegated_resource_access_request(ctx, from_json, delegated_resource_access_request_id): - if isinstance(delegated_resource_access_request_id, six.string_types) and len(delegated_resource_access_request_id.strip()) == 0: + if isinstance(delegated_resource_access_request_id, str) and len(delegated_resource_access_request_id.strip()) == 0: raise click.UsageError('Parameter --delegated-resource-access-request-id cannot be whitespace or empty string') kwargs = {} @@ -599,7 +598,7 @@ def get_delegated_resource_access_request(ctx, from_json, delegated_resource_acc @cli_util.wrap_exceptions def get_delegated_resource_access_request_audit_log_report(ctx, from_json, delegated_resource_access_request_id, is_process_tree_enabled): - if isinstance(delegated_resource_access_request_id, six.string_types) and len(delegated_resource_access_request_id.strip()) == 0: + if isinstance(delegated_resource_access_request_id, str) and len(delegated_resource_access_request_id.strip()) == 0: raise click.UsageError('Parameter --delegated-resource-access-request-id cannot be whitespace or empty string') kwargs = {} @@ -623,7 +622,7 @@ def get_delegated_resource_access_request_audit_log_report(ctx, from_json, deleg @cli_util.wrap_exceptions def get_delegation_control(ctx, from_json, delegation_control_id): - if isinstance(delegation_control_id, six.string_types) and len(delegation_control_id.strip()) == 0: + if isinstance(delegation_control_id, str) and len(delegation_control_id.strip()) == 0: raise click.UsageError('Parameter --delegation-control-id cannot be whitespace or empty string') kwargs = {} @@ -645,7 +644,7 @@ def get_delegation_control(ctx, from_json, delegation_control_id): @cli_util.wrap_exceptions def get_delegation_subscription(ctx, from_json, delegation_subscription_id): - if isinstance(delegation_subscription_id, six.string_types) and len(delegation_subscription_id.strip()) == 0: + if isinstance(delegation_subscription_id, str) and len(delegation_subscription_id.strip()) == 0: raise click.UsageError('Parameter --delegation-subscription-id cannot be whitespace or empty string') kwargs = {} @@ -667,7 +666,7 @@ def get_delegation_subscription(ctx, from_json, delegation_subscription_id): @cli_util.wrap_exceptions def get_service_provider(ctx, from_json, service_provider_id): - if isinstance(service_provider_id, six.string_types) and len(service_provider_id.strip()) == 0: + if isinstance(service_provider_id, str) and len(service_provider_id.strip()) == 0: raise click.UsageError('Parameter --service-provider-id cannot be whitespace or empty string') kwargs = {} @@ -689,7 +688,7 @@ def get_service_provider(ctx, from_json, service_provider_id): @cli_util.wrap_exceptions def get_service_provider_action(ctx, from_json, service_provider_action_id): - if isinstance(service_provider_action_id, six.string_types) and len(service_provider_action_id.strip()) == 0: + if isinstance(service_provider_action_id, str) and len(service_provider_action_id.strip()) == 0: raise click.UsageError('Parameter --service-provider-action-id cannot be whitespace or empty string') kwargs = {} @@ -720,7 +719,7 @@ def list_delegated_resource_access_request_histories(ctx, from_json, all_pages, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(delegated_resource_access_request_id, six.string_types) and len(delegated_resource_access_request_id.strip()) == 0: + if isinstance(delegated_resource_access_request_id, str) and len(delegated_resource_access_request_id.strip()) == 0: raise click.UsageError('Parameter --delegated-resource-access-request-id cannot be whitespace or empty string') kwargs = {} @@ -847,7 +846,7 @@ def list_delegation_control_resources(ctx, from_json, all_pages, page_size, dele if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(delegation_control_id, six.string_types) and len(delegation_control_id.strip()) == 0: + if isinstance(delegation_control_id, str) and len(delegation_control_id.strip()) == 0: raise click.UsageError('Parameter --delegation-control-id cannot be whitespace or empty string') kwargs = {} @@ -1090,7 +1089,7 @@ def list_service_provider_interactions(ctx, from_json, all_pages, page_size, del if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(delegated_resource_access_request_id, six.string_types) and len(delegated_resource_access_request_id.strip()) == 0: + if isinstance(delegated_resource_access_request_id, str) and len(delegated_resource_access_request_id.strip()) == 0: raise click.UsageError('Parameter --delegated-resource-access-request-id cannot be whitespace or empty string') kwargs = {} @@ -1205,7 +1204,7 @@ def list_service_providers(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def reject_delegated_resource_access_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, delegated_resource_access_request_id, approver_comment, if_match): - if isinstance(delegated_resource_access_request_id, six.string_types) and len(delegated_resource_access_request_id.strip()) == 0: + if isinstance(delegated_resource_access_request_id, str) and len(delegated_resource_access_request_id.strip()) == 0: raise click.UsageError('Parameter --delegated-resource-access-request-id cannot be whitespace or empty string') kwargs = {} @@ -1268,7 +1267,7 @@ def reject_delegated_resource_access_request(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def revoke_delegated_resource_access_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, delegated_resource_access_request_id, approver_comment, if_match): - if isinstance(delegated_resource_access_request_id, six.string_types) and len(delegated_resource_access_request_id.strip()) == 0: + if isinstance(delegated_resource_access_request_id, str) and len(delegated_resource_access_request_id.strip()) == 0: raise click.UsageError('Parameter --delegated-resource-access-request-id cannot be whitespace or empty string') kwargs = {} @@ -1328,7 +1327,7 @@ def revoke_delegated_resource_access_request(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def service_provider_interaction_request(ctx, from_json, delegated_resource_access_request_id, more_info_details, if_match): - if isinstance(delegated_resource_access_request_id, six.string_types) and len(delegated_resource_access_request_id.strip()) == 0: + if isinstance(delegated_resource_access_request_id, str) and len(delegated_resource_access_request_id.strip()) == 0: raise click.UsageError('Parameter --delegated-resource-access-request-id cannot be whitespace or empty string') kwargs = {} @@ -1379,7 +1378,7 @@ def service_provider_interaction_request(ctx, from_json, delegated_resource_acce @cli_util.wrap_exceptions def update_delegation_control(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, delegation_control_id, display_name, description, num_approvals_required, delegation_subscription_ids, is_auto_approve_during_maintenance, resource_ids, pre_approved_service_provider_action_names, notification_topic_id, notification_message_format, freeform_tags, defined_tags, if_match): - if isinstance(delegation_control_id, six.string_types) and len(delegation_control_id.strip()) == 0: + if isinstance(delegation_control_id, str) and len(delegation_control_id.strip()) == 0: raise click.UsageError('Parameter --delegation-control-id cannot be whitespace or empty string') if not force: if delegation_subscription_ids or resource_ids or pre_approved_service_provider_action_names or freeform_tags or defined_tags: @@ -1483,7 +1482,7 @@ def update_delegation_control(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_delegation_subscription(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, delegation_subscription_id, description, freeform_tags, defined_tags, if_match): - if isinstance(delegation_subscription_id, six.string_types) and len(delegation_subscription_id.strip()) == 0: + if isinstance(delegation_subscription_id, str) and len(delegation_subscription_id.strip()) == 0: raise click.UsageError('Parameter --delegation-subscription-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/delegate_access_control/src/oci_cli_work_request/generated/workrequest_cli.py b/services/delegate_access_control/src/oci_cli_work_request/generated/workrequest_cli.py index 7faf2b6ba..19ee962c3 100644 --- a/services/delegate_access_control/src/oci_cli_work_request/generated/workrequest_cli.py +++ b/services/delegate_access_control/src/oci_cli_work_request/generated/workrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -59,7 +58,7 @@ def work_request_group(): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -90,7 +89,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -147,7 +146,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/demand_signal/src/oci_cli_occ_demand_signal/generated/occdemandsignal_cli.py b/services/demand_signal/src/oci_cli_occ_demand_signal/generated/occdemandsignal_cli.py index 2055437a6..5f8c802a3 100644 --- a/services/demand_signal/src/oci_cli_occ_demand_signal/generated/occdemandsignal_cli.py +++ b/services/demand_signal/src/oci_cli_occ_demand_signal/generated/occdemandsignal_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -52,7 +51,7 @@ def occ_demand_signal_group(): @cli_util.wrap_exceptions def change_occ_demand_signal_compartment(ctx, from_json, occ_demand_signal_id, compartment_id, if_match): - if isinstance(occ_demand_signal_id, six.string_types) and len(occ_demand_signal_id.strip()) == 0: + if isinstance(occ_demand_signal_id, str) and len(occ_demand_signal_id.strip()) == 0: raise click.UsageError('Parameter --occ-demand-signal-id cannot be whitespace or empty string') kwargs = {} @@ -155,7 +154,7 @@ def create_occ_demand_signal(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_occ_demand_signal(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_demand_signal_id, if_match): - if isinstance(occ_demand_signal_id, six.string_types) and len(occ_demand_signal_id.strip()) == 0: + if isinstance(occ_demand_signal_id, str) and len(occ_demand_signal_id.strip()) == 0: raise click.UsageError('Parameter --occ-demand-signal-id cannot be whitespace or empty string') kwargs = {} @@ -214,7 +213,7 @@ def delete_occ_demand_signal(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def get_occ_demand_signal(ctx, from_json, occ_demand_signal_id): - if isinstance(occ_demand_signal_id, six.string_types) and len(occ_demand_signal_id.strip()) == 0: + if isinstance(occ_demand_signal_id, str) and len(occ_demand_signal_id.strip()) == 0: raise click.UsageError('Parameter --occ-demand-signal-id cannot be whitespace or empty string') kwargs = {} @@ -302,7 +301,7 @@ def list_occ_demand_signals(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def patch_occ_demand_signal(ctx, from_json, occ_demand_signal_id, items, if_match): - if isinstance(occ_demand_signal_id, six.string_types) and len(occ_demand_signal_id.strip()) == 0: + if isinstance(occ_demand_signal_id, str) and len(occ_demand_signal_id.strip()) == 0: raise click.UsageError('Parameter --occ-demand-signal-id cannot be whitespace or empty string') kwargs = {} @@ -346,7 +345,7 @@ def patch_occ_demand_signal(ctx, from_json, occ_demand_signal_id, items, if_matc @cli_util.wrap_exceptions def update_occ_demand_signal(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_demand_signal_id, display_name, is_active, freeform_tags, defined_tags, if_match): - if isinstance(occ_demand_signal_id, six.string_types) and len(occ_demand_signal_id.strip()) == 0: + if isinstance(occ_demand_signal_id, str) and len(occ_demand_signal_id.strip()) == 0: raise click.UsageError('Parameter --occ-demand-signal-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/demand_signal/src/oci_cli_occ_metric_alarm/generated/occmetricalarm_cli.py b/services/demand_signal/src/oci_cli_occ_metric_alarm/generated/occmetricalarm_cli.py index 4fd6c469e..0b9050881 100644 --- a/services/demand_signal/src/oci_cli_occ_metric_alarm/generated/occmetricalarm_cli.py +++ b/services/demand_signal/src/oci_cli_occ_metric_alarm/generated/occmetricalarm_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -520,7 +519,7 @@ def create_occ_metric_alarm_compute_resource_configuration(ctx, from_json, wait_ @cli_util.wrap_exceptions def delete_occ_metric_alarm(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_metric_alarm_id, if_match): - if isinstance(occ_metric_alarm_id, six.string_types) and len(occ_metric_alarm_id.strip()) == 0: + if isinstance(occ_metric_alarm_id, str) and len(occ_metric_alarm_id.strip()) == 0: raise click.UsageError('Parameter --occ-metric-alarm-id cannot be whitespace or empty string') kwargs = {} @@ -579,7 +578,7 @@ def delete_occ_metric_alarm(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def get_occ_metric_alarm(ctx, from_json, occ_metric_alarm_id): - if isinstance(occ_metric_alarm_id, six.string_types) and len(occ_metric_alarm_id.strip()) == 0: + if isinstance(occ_metric_alarm_id, str) and len(occ_metric_alarm_id.strip()) == 0: raise click.UsageError('Parameter --occ-metric-alarm-id cannot be whitespace or empty string') kwargs = {} @@ -679,7 +678,7 @@ def list_occ_metric_alarms(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def update_occ_metric_alarm(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, occ_metric_alarm_id, display_name, description, lifecycle_state, is_active, subscribers, frequency, threshold, threshold_type, freeform_tags, defined_tags, if_match): - if isinstance(occ_metric_alarm_id, six.string_types) and len(occ_metric_alarm_id.strip()) == 0: + if isinstance(occ_metric_alarm_id, str) and len(occ_metric_alarm_id.strip()) == 0: raise click.UsageError('Parameter --occ-metric-alarm-id cannot be whitespace or empty string') if not force: if subscribers or freeform_tags or defined_tags: diff --git a/services/desktops/src/oci_cli_desktop_service/generated/desktopservice_cli.py b/services/desktops/src/oci_cli_desktop_service/generated/desktopservice_cli.py index 87b520070..0dd6c551e 100644 --- a/services/desktops/src/oci_cli_desktop_service/generated/desktopservice_cli.py +++ b/services/desktops/src/oci_cli_desktop_service/generated/desktopservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -70,7 +69,7 @@ def desktop_pool_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -99,7 +98,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_desktop_pool_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, desktop_pool_id, compartment_id, if_match): - if isinstance(desktop_pool_id, six.string_types) and len(desktop_pool_id.strip()) == 0: + if isinstance(desktop_pool_id, str) and len(desktop_pool_id.strip()) == 0: raise click.UsageError('Parameter --desktop-pool-id cannot be whitespace or empty string') kwargs = {} @@ -291,7 +290,7 @@ def create_desktop_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_desktop(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, desktop_id, if_match): - if isinstance(desktop_id, six.string_types) and len(desktop_id.strip()) == 0: + if isinstance(desktop_id, str) and len(desktop_id.strip()) == 0: raise click.UsageError('Parameter --desktop-id cannot be whitespace or empty string') kwargs = {} @@ -348,7 +347,7 @@ def delete_desktop(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_desktop_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, desktop_pool_id, if_match, are_volumes_preserved): - if isinstance(desktop_pool_id, six.string_types) and len(desktop_pool_id.strip()) == 0: + if isinstance(desktop_pool_id, str) and len(desktop_pool_id.strip()) == 0: raise click.UsageError('Parameter --desktop-pool-id cannot be whitespace or empty string') kwargs = {} @@ -401,7 +400,7 @@ def delete_desktop_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_desktop(ctx, from_json, desktop_id): - if isinstance(desktop_id, six.string_types) and len(desktop_id.strip()) == 0: + if isinstance(desktop_id, str) and len(desktop_id.strip()) == 0: raise click.UsageError('Parameter --desktop-id cannot be whitespace or empty string') kwargs = {} @@ -423,7 +422,7 @@ def get_desktop(ctx, from_json, desktop_id): @cli_util.wrap_exceptions def get_desktop_pool(ctx, from_json, desktop_pool_id): - if isinstance(desktop_pool_id, six.string_types) and len(desktop_pool_id.strip()) == 0: + if isinstance(desktop_pool_id, str) and len(desktop_pool_id.strip()) == 0: raise click.UsageError('Parameter --desktop-pool-id cannot be whitespace or empty string') kwargs = {} @@ -445,7 +444,7 @@ def get_desktop_pool(ctx, from_json, desktop_pool_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -483,7 +482,7 @@ def list_desktop_pool_desktops(ctx, from_json, all_pages, page_size, compartment if sort_by and not availability_domain and not all_pages: raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter') - if isinstance(desktop_pool_id, six.string_types) and len(desktop_pool_id.strip()) == 0: + if isinstance(desktop_pool_id, str) and len(desktop_pool_id.strip()) == 0: raise click.UsageError('Parameter --desktop-pool-id cannot be whitespace or empty string') kwargs = {} @@ -558,7 +557,7 @@ def list_desktop_pool_volumes(ctx, from_json, all_pages, page_size, desktop_pool if sort_by and not availability_domain and not all_pages: raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter') - if isinstance(desktop_pool_id, six.string_types) and len(desktop_pool_id.strip()) == 0: + if isinstance(desktop_pool_id, str) and len(desktop_pool_id.strip()) == 0: raise click.UsageError('Parameter --desktop-pool-id cannot be whitespace or empty string') kwargs = {} @@ -765,7 +764,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -822,7 +821,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -937,7 +936,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def start_desktop(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, desktop_id, if_match): - if isinstance(desktop_id, six.string_types) and len(desktop_id.strip()) == 0: + if isinstance(desktop_id, str) and len(desktop_id.strip()) == 0: raise click.UsageError('Parameter --desktop-id cannot be whitespace or empty string') kwargs = {} @@ -992,7 +991,7 @@ def start_desktop(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def start_desktop_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, desktop_pool_id, if_match): - if isinstance(desktop_pool_id, six.string_types) and len(desktop_pool_id.strip()) == 0: + if isinstance(desktop_pool_id, str) and len(desktop_pool_id.strip()) == 0: raise click.UsageError('Parameter --desktop-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1048,7 +1047,7 @@ def start_desktop_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def stop_desktop(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, desktop_id, if_match, is_soft_stop): - if isinstance(desktop_id, six.string_types) and len(desktop_id.strip()) == 0: + if isinstance(desktop_id, str) and len(desktop_id.strip()) == 0: raise click.UsageError('Parameter --desktop-id cannot be whitespace or empty string') kwargs = {} @@ -1105,7 +1104,7 @@ def stop_desktop(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def stop_desktop_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, desktop_pool_id, if_match): - if isinstance(desktop_pool_id, six.string_types) and len(desktop_pool_id.strip()) == 0: + if isinstance(desktop_pool_id, str) and len(desktop_pool_id.strip()) == 0: raise click.UsageError('Parameter --desktop-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1164,7 +1163,7 @@ def stop_desktop_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_desktop(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, desktop_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(desktop_id, six.string_types) and len(desktop_id.strip()) == 0: + if isinstance(desktop_id, str) and len(desktop_id.strip()) == 0: raise click.UsageError('Parameter --desktop-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1256,7 +1255,7 @@ def update_desktop(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_desktop_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, desktop_pool_id, display_name, description, maximum_size, standby_size, device_policy, availability_policy, contact_details, time_start_scheduled, time_stop_scheduled, freeform_tags, defined_tags, session_lifecycle_actions, image, network_configuration, private_access_details, security_attributes, boot_volume_size_in_gbs, if_match): - if isinstance(desktop_pool_id, six.string_types) and len(desktop_pool_id.strip()) == 0: + if isinstance(desktop_pool_id, str) and len(desktop_pool_id.strip()) == 0: raise click.UsageError('Parameter --desktop-pool-id cannot be whitespace or empty string') if not force: if device_policy or availability_policy or freeform_tags or defined_tags or session_lifecycle_actions or image or network_configuration or private_access_details or security_attributes: diff --git a/services/devops/src/oci_cli_devops/devops_cli_extended.py b/services/devops/src/oci_cli_devops/devops_cli_extended.py index 919f43a5e..c1d3c619c 100644 --- a/services/devops/src/oci_cli_devops/devops_cli_extended.py +++ b/services/devops/src/oci_cli_devops/devops_cli_extended.py @@ -9,7 +9,6 @@ from oci_cli import custom_types # noqa: F401 from oci_cli import json_skeleton_utils # noqa: F401 from oci_cli.aliasing import CommandGroupWithAlias -import six # oci devops deploy-artifact deploy-artifact-summary list-deploy-artifacts -> oci devops deploy-artifact deploy-artifact-summary list cli_util.rename_command(devops_cli, devops_cli.deploy_artifact_summary_group, devops_cli.list_deploy_artifacts, "list") @@ -1435,7 +1434,7 @@ def pull_request_comment_group(): @cli_util.wrap_exceptions def summarize_repository_analytics(ctx, from_json, repository_id, repository_metrics, start_time, author_email, aggregation_duration, end_time, group_by, limit, page): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -1487,7 +1486,7 @@ def summarize_repository_analytics(ctx, from_json, repository_id, repository_met @cli_util.wrap_exceptions def summarize_project_repository_analytics(ctx, from_json, project_id, repository_metrics, start_time, author_email, aggregation_duration, end_time, group_by, limit, page): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/devops/src/oci_cli_devops/generated/devops_cli.py b/services/devops/src/oci_cli_devops/generated/devops_cli.py index 542ed4ab5..6896e0679 100644 --- a/services/devops/src/oci_cli_devops/generated/devops_cli.py +++ b/services/devops/src/oci_cli_devops/generated/devops_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -327,7 +326,7 @@ def repository_ref_group(): @cli_util.wrap_exceptions def approve_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, deploy_stage_id, action, reason, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -388,7 +387,7 @@ def approve_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def cancel_build_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, reason, build_run_id, if_match): - if isinstance(build_run_id, six.string_types) and len(build_run_id.strip()) == 0: + if isinstance(build_run_id, str) and len(build_run_id.strip()) == 0: raise click.UsageError('Parameter --build-run-id cannot be whitespace or empty string') kwargs = {} @@ -445,7 +444,7 @@ def cancel_build_run(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def cancel_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, reason, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -501,7 +500,7 @@ def cancel_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def cancel_scheduled_cascading_project_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -557,7 +556,7 @@ def cancel_scheduled_cascading_project_deletion(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_project_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, compartment_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -4605,7 +4604,7 @@ def create_deployment_create_single_deploy_stage_redeployment_details(ctx, from_ @cli_util.wrap_exceptions def create_or_update_git_ref(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, ref_name, ref_type, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -4668,7 +4667,7 @@ def create_or_update_git_ref(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def create_or_update_git_ref_create_or_update_git_branch_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, ref_name, commit_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -4733,7 +4732,7 @@ def create_or_update_git_ref_create_or_update_git_branch_details(ctx, from_json, @cli_util.wrap_exceptions def create_or_update_git_ref_create_or_update_git_tag_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, ref_name, object_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -4795,7 +4794,7 @@ def create_or_update_git_ref_create_or_update_git_tag_details(ctx, from_json, wa @cli_util.wrap_exceptions def create_or_update_protected_branch(ctx, from_json, repository_id, branch_name, protection_levels, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -4981,7 +4980,7 @@ def create_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def create_pull_request_attachment(ctx, from_json, pull_request_id, content_disposition, create_pull_request_attachment_body): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -5015,7 +5014,7 @@ def create_pull_request_attachment(ctx, from_json, pull_request_id, content_disp @cli_util.wrap_exceptions def create_pull_request_comment(ctx, from_json, pull_request_id, data, parent_id, file_path, commit_id, file_type, line_number): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -5746,7 +5745,7 @@ def create_trigger_create_bitbucket_server_trigger_details(ctx, from_json, wait_ @cli_util.wrap_exceptions def decline_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pull_request_id, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -5798,7 +5797,7 @@ def decline_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_build_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, build_pipeline_id, if_match): - if isinstance(build_pipeline_id, six.string_types) and len(build_pipeline_id.strip()) == 0: + if isinstance(build_pipeline_id, str) and len(build_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -5854,7 +5853,7 @@ def delete_build_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_build_pipeline_stage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, build_pipeline_stage_id, if_match): - if isinstance(build_pipeline_stage_id, six.string_types) and len(build_pipeline_stage_id.strip()) == 0: + if isinstance(build_pipeline_stage_id, str) and len(build_pipeline_stage_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-stage-id cannot be whitespace or empty string') kwargs = {} @@ -5910,7 +5909,7 @@ def delete_build_pipeline_stage(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -5966,7 +5965,7 @@ def delete_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_deploy_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_artifact_id, if_match): - if isinstance(deploy_artifact_id, six.string_types) and len(deploy_artifact_id.strip()) == 0: + if isinstance(deploy_artifact_id, str) and len(deploy_artifact_id.strip()) == 0: raise click.UsageError('Parameter --deploy-artifact-id cannot be whitespace or empty string') kwargs = {} @@ -6022,7 +6021,7 @@ def delete_deploy_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_deploy_environment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_environment_id, if_match): - if isinstance(deploy_environment_id, six.string_types) and len(deploy_environment_id.strip()) == 0: + if isinstance(deploy_environment_id, str) and len(deploy_environment_id.strip()) == 0: raise click.UsageError('Parameter --deploy-environment-id cannot be whitespace or empty string') kwargs = {} @@ -6078,7 +6077,7 @@ def delete_deploy_environment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_deploy_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_pipeline_id, if_match): - if isinstance(deploy_pipeline_id, six.string_types) and len(deploy_pipeline_id.strip()) == 0: + if isinstance(deploy_pipeline_id, str) and len(deploy_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --deploy-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -6134,7 +6133,7 @@ def delete_deploy_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_deploy_stage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') kwargs = {} @@ -6190,7 +6189,7 @@ def delete_deploy_stage(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_git_ref(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, ref_name, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -6251,7 +6250,7 @@ def delete_git_ref(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -6304,7 +6303,7 @@ def delete_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_project_repository_settings(ctx, from_json, project_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -6330,7 +6329,7 @@ def delete_project_repository_settings(ctx, from_json, project_id, if_match): @cli_util.wrap_exceptions def delete_protected_branch(ctx, from_json, repository_id, branch_name, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -6364,7 +6363,7 @@ def delete_protected_branch(ctx, from_json, repository_id, branch_name, if_match @cli_util.wrap_exceptions def delete_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pull_request_id, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -6426,10 +6425,10 @@ def delete_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_pull_request_attachment(ctx, from_json, pull_request_id, attachment_id, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(attachment_id, six.string_types) and len(attachment_id.strip()) == 0: + if isinstance(attachment_id, str) and len(attachment_id.strip()) == 0: raise click.UsageError('Parameter --attachment-id cannot be whitespace or empty string') kwargs = {} @@ -6457,10 +6456,10 @@ def delete_pull_request_attachment(ctx, from_json, pull_request_id, attachment_i @cli_util.wrap_exceptions def delete_pull_request_comment(ctx, from_json, pull_request_id, comment_id, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(comment_id, six.string_types) and len(comment_id.strip()) == 0: + if isinstance(comment_id, str) and len(comment_id.strip()) == 0: raise click.UsageError('Parameter --comment-id cannot be whitespace or empty string') kwargs = {} @@ -6491,10 +6490,10 @@ def delete_pull_request_comment(ctx, from_json, pull_request_id, comment_id, if_ @cli_util.wrap_exceptions def delete_ref(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, ref_name, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(ref_name, six.string_types) and len(ref_name.strip()) == 0: + if isinstance(ref_name, str) and len(ref_name.strip()) == 0: raise click.UsageError('Parameter --ref-name cannot be whitespace or empty string') kwargs = {} @@ -6551,7 +6550,7 @@ def delete_ref(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_repository(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -6604,7 +6603,7 @@ def delete_repository(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_repository_settings(ctx, from_json, repository_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -6633,7 +6632,7 @@ def delete_repository_settings(ctx, from_json, repository_id, if_match): @cli_util.wrap_exceptions def delete_trigger(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_id, if_match): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') kwargs = {} @@ -6684,7 +6683,7 @@ def delete_trigger(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def get_build_pipeline(ctx, from_json, build_pipeline_id): - if isinstance(build_pipeline_id, six.string_types) and len(build_pipeline_id.strip()) == 0: + if isinstance(build_pipeline_id, str) and len(build_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -6706,7 +6705,7 @@ def get_build_pipeline(ctx, from_json, build_pipeline_id): @cli_util.wrap_exceptions def get_build_pipeline_stage(ctx, from_json, build_pipeline_stage_id): - if isinstance(build_pipeline_stage_id, six.string_types) and len(build_pipeline_stage_id.strip()) == 0: + if isinstance(build_pipeline_stage_id, str) and len(build_pipeline_stage_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-stage-id cannot be whitespace or empty string') kwargs = {} @@ -6728,7 +6727,7 @@ def get_build_pipeline_stage(ctx, from_json, build_pipeline_stage_id): @cli_util.wrap_exceptions def get_build_run(ctx, from_json, build_run_id): - if isinstance(build_run_id, six.string_types) and len(build_run_id.strip()) == 0: + if isinstance(build_run_id, str) and len(build_run_id.strip()) == 0: raise click.UsageError('Parameter --build-run-id cannot be whitespace or empty string') kwargs = {} @@ -6751,10 +6750,10 @@ def get_build_run(ctx, from_json, build_run_id): @cli_util.wrap_exceptions def get_commit(ctx, from_json, repository_id, commit_id): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(commit_id, six.string_types) and len(commit_id.strip()) == 0: + if isinstance(commit_id, str) and len(commit_id.strip()) == 0: raise click.UsageError('Parameter --commit-id cannot be whitespace or empty string') kwargs = {} @@ -6781,7 +6780,7 @@ def get_commit(ctx, from_json, repository_id, commit_id): @cli_util.wrap_exceptions def get_commit_diff(ctx, from_json, repository_id, target_version, base_version, target_repository_id, is_comparison_from_merge_base): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -6810,7 +6809,7 @@ def get_commit_diff(ctx, from_json, repository_id, target_version, base_version, @cli_util.wrap_exceptions def get_connection(ctx, from_json, connection_id): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -6832,7 +6831,7 @@ def get_connection(ctx, from_json, connection_id): @cli_util.wrap_exceptions def get_deploy_artifact(ctx, from_json, deploy_artifact_id): - if isinstance(deploy_artifact_id, six.string_types) and len(deploy_artifact_id.strip()) == 0: + if isinstance(deploy_artifact_id, str) and len(deploy_artifact_id.strip()) == 0: raise click.UsageError('Parameter --deploy-artifact-id cannot be whitespace or empty string') kwargs = {} @@ -6854,7 +6853,7 @@ def get_deploy_artifact(ctx, from_json, deploy_artifact_id): @cli_util.wrap_exceptions def get_deploy_environment(ctx, from_json, deploy_environment_id): - if isinstance(deploy_environment_id, six.string_types) and len(deploy_environment_id.strip()) == 0: + if isinstance(deploy_environment_id, str) and len(deploy_environment_id.strip()) == 0: raise click.UsageError('Parameter --deploy-environment-id cannot be whitespace or empty string') kwargs = {} @@ -6876,7 +6875,7 @@ def get_deploy_environment(ctx, from_json, deploy_environment_id): @cli_util.wrap_exceptions def get_deploy_pipeline(ctx, from_json, deploy_pipeline_id): - if isinstance(deploy_pipeline_id, six.string_types) and len(deploy_pipeline_id.strip()) == 0: + if isinstance(deploy_pipeline_id, str) and len(deploy_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --deploy-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -6898,7 +6897,7 @@ def get_deploy_pipeline(ctx, from_json, deploy_pipeline_id): @cli_util.wrap_exceptions def get_deploy_stage(ctx, from_json, deploy_stage_id): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') kwargs = {} @@ -6920,7 +6919,7 @@ def get_deploy_stage(ctx, from_json, deploy_stage_id): @cli_util.wrap_exceptions def get_deployment(ctx, from_json, deployment_id): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -6946,10 +6945,10 @@ def get_deployment(ctx, from_json, deployment_id): @cli_util.wrap_exceptions def get_file_diff(ctx, from_json, repository_id, file_path, base_version, target_version, is_comparison_from_merge_base): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(file_path, six.string_types) and len(file_path.strip()) == 0: + if isinstance(file_path, str) and len(file_path.strip()) == 0: raise click.UsageError('Parameter --file-path cannot be whitespace or empty string') kwargs = {} @@ -6977,10 +6976,10 @@ def get_file_diff(ctx, from_json, repository_id, file_path, base_version, target @cli_util.wrap_exceptions def get_mirror_record(ctx, from_json, repository_id, mirror_record_type): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(mirror_record_type, six.string_types) and len(mirror_record_type.strip()) == 0: + if isinstance(mirror_record_type, str) and len(mirror_record_type.strip()) == 0: raise click.UsageError('Parameter --mirror-record-type cannot be whitespace or empty string') kwargs = {} @@ -7005,7 +7004,7 @@ def get_mirror_record(ctx, from_json, repository_id, mirror_record_type): @cli_util.wrap_exceptions def get_object(ctx, from_json, repository_id, file_path, ref_name): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -7034,10 +7033,10 @@ def get_object(ctx, from_json, repository_id, file_path, ref_name): @cli_util.wrap_exceptions def get_object_content(ctx, from_json, file, repository_id, sha, file_path): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(sha, six.string_types) and len(sha.strip()) == 0: + if isinstance(sha, str) and len(sha.strip()) == 0: raise click.UsageError('Parameter --sha cannot be whitespace or empty string') kwargs = {} @@ -7084,7 +7083,7 @@ def get_object_content(ctx, from_json, file, repository_id, sha, file_path): @cli_util.wrap_exceptions def get_project(ctx, from_json, project_id): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -7107,10 +7106,10 @@ def get_project(ctx, from_json, project_id): @cli_util.wrap_exceptions def get_project_notification_preference(ctx, from_json, project_id, principal_id): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') - if isinstance(principal_id, six.string_types) and len(principal_id.strip()) == 0: + if isinstance(principal_id, str) and len(principal_id.strip()) == 0: raise click.UsageError('Parameter --principal-id cannot be whitespace or empty string') kwargs = {} @@ -7133,7 +7132,7 @@ def get_project_notification_preference(ctx, from_json, project_id, principal_id @cli_util.wrap_exceptions def get_project_repository_settings(ctx, from_json, project_id): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -7155,7 +7154,7 @@ def get_project_repository_settings(ctx, from_json, project_id): @cli_util.wrap_exceptions def get_pull_request(ctx, from_json, pull_request_id): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -7178,10 +7177,10 @@ def get_pull_request(ctx, from_json, pull_request_id): @cli_util.wrap_exceptions def get_pull_request_attachment(ctx, from_json, pull_request_id, attachment_id): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(attachment_id, six.string_types) and len(attachment_id.strip()) == 0: + if isinstance(attachment_id, str) and len(attachment_id.strip()) == 0: raise click.UsageError('Parameter --attachment-id cannot be whitespace or empty string') kwargs = {} @@ -7206,10 +7205,10 @@ def get_pull_request_attachment(ctx, from_json, pull_request_id, attachment_id): @cli_util.wrap_exceptions def get_pull_request_attachment_content(ctx, from_json, file, pull_request_id, attachment_id): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(attachment_id, six.string_types) and len(attachment_id.strip()) == 0: + if isinstance(attachment_id, str) and len(attachment_id.strip()) == 0: raise click.UsageError('Parameter --attachment-id cannot be whitespace or empty string') kwargs = {} @@ -7255,10 +7254,10 @@ def get_pull_request_attachment_content(ctx, from_json, file, pull_request_id, a @cli_util.wrap_exceptions def get_pull_request_comment(ctx, from_json, pull_request_id, comment_id): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(comment_id, six.string_types) and len(comment_id.strip()) == 0: + if isinstance(comment_id, str) and len(comment_id.strip()) == 0: raise click.UsageError('Parameter --comment-id cannot be whitespace or empty string') kwargs = {} @@ -7282,10 +7281,10 @@ def get_pull_request_comment(ctx, from_json, pull_request_id, comment_id): @cli_util.wrap_exceptions def get_pull_request_notification_preference(ctx, from_json, pull_request_id, principal_id): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(principal_id, six.string_types) and len(principal_id.strip()) == 0: + if isinstance(principal_id, str) and len(principal_id.strip()) == 0: raise click.UsageError('Parameter --principal-id cannot be whitespace or empty string') kwargs = {} @@ -7309,10 +7308,10 @@ def get_pull_request_notification_preference(ctx, from_json, pull_request_id, pr @cli_util.wrap_exceptions def get_ref(ctx, from_json, repository_id, ref_name): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(ref_name, six.string_types) and len(ref_name.strip()) == 0: + if isinstance(ref_name, str) and len(ref_name.strip()) == 0: raise click.UsageError('Parameter --ref-name cannot be whitespace or empty string') kwargs = {} @@ -7339,7 +7338,7 @@ def get_ref(ctx, from_json, repository_id, ref_name): @cli_util.wrap_exceptions def get_repo_file_diff(ctx, from_json, repository_id, base_version, target_version, file_path, is_comparison_from_merge_base): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -7371,7 +7370,7 @@ def get_repo_file_diff(ctx, from_json, repository_id, base_version, target_versi @cli_util.wrap_exceptions def get_repo_file_lines(ctx, from_json, repository_id, revision, file_path, start_line_number, limit): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -7401,7 +7400,7 @@ def get_repo_file_lines(ctx, from_json, repository_id, revision, file_path, star @cli_util.wrap_exceptions def get_repository(ctx, from_json, repository_id, fields): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -7428,7 +7427,7 @@ def get_repository(ctx, from_json, repository_id, fields): @cli_util.wrap_exceptions def get_repository_archive_content(ctx, from_json, file, repository_id, ref_name, format): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -7480,10 +7479,10 @@ def get_repository_archive_content(ctx, from_json, file, repository_id, ref_name @cli_util.wrap_exceptions def get_repository_file_lines(ctx, from_json, repository_id, file_path, revision, start_line_number, limit): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(file_path, six.string_types) and len(file_path.strip()) == 0: + if isinstance(file_path, str) and len(file_path.strip()) == 0: raise click.UsageError('Parameter --file-path cannot be whitespace or empty string') kwargs = {} @@ -7512,10 +7511,10 @@ def get_repository_file_lines(ctx, from_json, repository_id, file_path, revision @cli_util.wrap_exceptions def get_repository_notification_preference(ctx, from_json, repository_id, principal_id): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(principal_id, six.string_types) and len(principal_id.strip()) == 0: + if isinstance(principal_id, str) and len(principal_id.strip()) == 0: raise click.UsageError('Parameter --principal-id cannot be whitespace or empty string') kwargs = {} @@ -7538,7 +7537,7 @@ def get_repository_notification_preference(ctx, from_json, repository_id, princi @cli_util.wrap_exceptions def get_repository_settings(ctx, from_json, repository_id): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -7560,7 +7559,7 @@ def get_repository_settings(ctx, from_json, repository_id): @cli_util.wrap_exceptions def get_trigger(ctx, from_json, trigger_id): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') kwargs = {} @@ -7582,7 +7581,7 @@ def get_trigger(ctx, from_json, trigger_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -7606,10 +7605,10 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def like_pull_request_comment(ctx, from_json, pull_request_id, comment_id, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(comment_id, six.string_types) and len(comment_id.strip()) == 0: + if isinstance(comment_id, str) and len(comment_id.strip()) == 0: raise click.UsageError('Parameter --comment-id cannot be whitespace or empty string') kwargs = {} @@ -7643,7 +7642,7 @@ def list_authors(ctx, from_json, all_pages, page_size, repository_id, ref_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -7833,7 +7832,7 @@ def list_build_run_snapshots(ctx, from_json, all_pages, page_size, pull_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -7966,7 +7965,7 @@ def list_commit_diffs(ctx, from_json, all_pages, page_size, repository_id, base_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -8034,7 +8033,7 @@ def list_commits(ctx, from_json, all_pages, page_size, repository_id, ref_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -8497,7 +8496,7 @@ def list_deployments(ctx, from_json, all_pages, page_size, deploy_pipeline_id, i @cli_util.wrap_exceptions def list_fork_sync_statuses(ctx, from_json, all_pages, repository_id, branch_name_query_param, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -8530,7 +8529,7 @@ def list_mirror_records(ctx, from_json, all_pages, page_size, repository_id, lim if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -8589,7 +8588,7 @@ def list_paths(ctx, from_json, all_pages, page_size, repository_id, ref, paths_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -8654,7 +8653,7 @@ def list_project_commit_analytics_authors(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -8775,7 +8774,7 @@ def list_protected_branches(ctx, from_json, all_pages, page_size, repository_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -8834,7 +8833,7 @@ def list_pull_request_activities(ctx, from_json, all_pages, page_size, pull_requ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -8893,7 +8892,7 @@ def list_pull_request_attachments(ctx, from_json, all_pages, page_size, pull_req if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -8953,7 +8952,7 @@ def list_pull_request_authors(ctx, from_json, all_pages, page_size, repository_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -9012,7 +9011,7 @@ def list_pull_request_comments(ctx, from_json, all_pages, page_size, pull_reques if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -9163,7 +9162,7 @@ def list_refs(ctx, from_json, all_pages, page_size, repository_id, ref_type, com if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -9291,7 +9290,7 @@ def list_repository_commit_analytics_authors(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -9413,7 +9412,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -9470,7 +9469,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -9589,7 +9588,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def merge_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pull_request_id, action_type, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -9652,7 +9651,7 @@ def merge_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def merge_pull_request_execute_merge_pull_request_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pull_request_id, commit_message, merge_strategy, post_merge_action, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -9718,7 +9717,7 @@ def merge_pull_request_execute_merge_pull_request_details(ctx, from_json, wait_f @cli_util.wrap_exceptions def merge_pull_request_validate_merge_pull_request_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pull_request_id, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -9779,7 +9778,7 @@ def merge_pull_request_validate_merge_pull_request_details(ctx, from_json, wait_ @cli_util.wrap_exceptions def mirror_repository(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -9834,7 +9833,7 @@ def mirror_repository(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def patch_pull_request(ctx, from_json, pull_request_id, items, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -9871,10 +9870,10 @@ def patch_pull_request(ctx, from_json, pull_request_id, items, if_match): @cli_util.wrap_exceptions def put_repository_ref(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, ref_name, ref_type, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(ref_name, six.string_types) and len(ref_name.strip()) == 0: + if isinstance(ref_name, str) and len(ref_name.strip()) == 0: raise click.UsageError('Parameter --ref-name cannot be whitespace or empty string') kwargs = {} @@ -9937,10 +9936,10 @@ def put_repository_ref(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def put_repository_ref_put_repository_tag_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, ref_name, object_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(ref_name, six.string_types) and len(ref_name.strip()) == 0: + if isinstance(ref_name, str) and len(ref_name.strip()) == 0: raise click.UsageError('Parameter --ref-name cannot be whitespace or empty string') kwargs = {} @@ -10005,10 +10004,10 @@ def put_repository_ref_put_repository_tag_details(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def put_repository_ref_put_repository_branch_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, ref_name, commit_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(ref_name, six.string_types) and len(ref_name.strip()) == 0: + if isinstance(ref_name, str) and len(ref_name.strip()) == 0: raise click.UsageError('Parameter --ref-name cannot be whitespace or empty string') kwargs = {} @@ -10071,7 +10070,7 @@ def put_repository_ref_put_repository_branch_details(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def reopen_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pull_request_id, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -10123,7 +10122,7 @@ def reopen_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def review_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pull_request_id, action, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -10179,7 +10178,7 @@ def review_pull_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def schedule_cascading_project_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -10238,7 +10237,7 @@ def schedule_cascading_project_deletion(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def summarize_project_repository_analytics(ctx, from_json, project_id, repository_metrics, start_time, author_email, aggregation_duration, end_time, group_by, limit, page): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') kwargs = {} @@ -10290,7 +10289,7 @@ def summarize_project_repository_analytics(ctx, from_json, project_id, repositor @cli_util.wrap_exceptions def summarize_repository_analytics(ctx, from_json, repository_id, repository_metrics, start_time, author_email, aggregation_duration, end_time, group_by, limit, page): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -10341,7 +10340,7 @@ def summarize_repository_analytics(ctx, from_json, repository_id, repository_met @cli_util.wrap_exceptions def sync_repository(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, sync_merge_strategy, source_branch, destination_branch, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') kwargs = {} @@ -10620,10 +10619,10 @@ def trigger_deployment_dry_run_create_single_deploy_stage_redeployment_details(c @cli_util.wrap_exceptions def unlike_pull_request_comment(ctx, from_json, pull_request_id, comment_id, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(comment_id, six.string_types) and len(comment_id.strip()) == 0: + if isinstance(comment_id, str) and len(comment_id.strip()) == 0: raise click.UsageError('Parameter --comment-id cannot be whitespace or empty string') kwargs = {} @@ -10651,7 +10650,7 @@ def unlike_pull_request_comment(ctx, from_json, pull_request_id, comment_id, if_ @cli_util.wrap_exceptions def unsubscribe_pull_request(ctx, from_json, file, pull_request_id, token, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') kwargs = {} @@ -10708,7 +10707,7 @@ def unsubscribe_pull_request(ctx, from_json, file, pull_request_id, token, if_ma @cli_util.wrap_exceptions def update_build_pipeline(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, build_pipeline_id, description, display_name, build_pipeline_parameters, freeform_tags, defined_tags, if_match): - if isinstance(build_pipeline_id, six.string_types) and len(build_pipeline_id.strip()) == 0: + if isinstance(build_pipeline_id, str) and len(build_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-id cannot be whitespace or empty string') if not force: if build_pipeline_parameters or freeform_tags or defined_tags: @@ -10793,7 +10792,7 @@ def update_build_pipeline(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_build_pipeline_stage(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, build_pipeline_stage_id, build_pipeline_stage_type, display_name, description, build_pipeline_stage_predecessor_collection, freeform_tags, defined_tags, if_match): - if isinstance(build_pipeline_stage_id, six.string_types) and len(build_pipeline_stage_id.strip()) == 0: + if isinstance(build_pipeline_stage_id, str) and len(build_pipeline_stage_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-stage-id cannot be whitespace or empty string') if not force: if build_pipeline_stage_predecessor_collection or freeform_tags or defined_tags: @@ -10879,7 +10878,7 @@ def update_build_pipeline_stage(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_build_pipeline_stage_update_wait_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, build_pipeline_stage_id, display_name, description, build_pipeline_stage_predecessor_collection, freeform_tags, defined_tags, wait_criteria, if_match): - if isinstance(build_pipeline_stage_id, six.string_types) and len(build_pipeline_stage_id.strip()) == 0: + if isinstance(build_pipeline_stage_id, str) and len(build_pipeline_stage_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-stage-id cannot be whitespace or empty string') if not force: if build_pipeline_stage_predecessor_collection or freeform_tags or defined_tags or wait_criteria: @@ -10975,7 +10974,7 @@ def update_build_pipeline_stage_update_wait_stage_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_build_pipeline_stage_update_build_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, build_pipeline_stage_id, display_name, description, build_pipeline_stage_predecessor_collection, freeform_tags, defined_tags, image, build_spec_file, stage_execution_timeout_in_seconds, build_source_collection, primary_build_source, build_runner_shape_config, private_access_config, if_match): - if isinstance(build_pipeline_stage_id, six.string_types) and len(build_pipeline_stage_id.strip()) == 0: + if isinstance(build_pipeline_stage_id, str) and len(build_pipeline_stage_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-stage-id cannot be whitespace or empty string') if not force: if build_pipeline_stage_predecessor_collection or freeform_tags or defined_tags or build_source_collection or build_runner_shape_config or private_access_config: @@ -11084,7 +11083,7 @@ def update_build_pipeline_stage_update_build_stage_details(ctx, from_json, force @cli_util.wrap_exceptions def update_build_pipeline_stage_update_trigger_deployment_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, build_pipeline_stage_id, display_name, description, build_pipeline_stage_predecessor_collection, freeform_tags, defined_tags, deploy_pipeline_id, is_pass_all_parameters_enabled, if_match): - if isinstance(build_pipeline_stage_id, six.string_types) and len(build_pipeline_stage_id.strip()) == 0: + if isinstance(build_pipeline_stage_id, str) and len(build_pipeline_stage_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-stage-id cannot be whitespace or empty string') if not force: if build_pipeline_stage_predecessor_collection or freeform_tags or defined_tags: @@ -11177,7 +11176,7 @@ def update_build_pipeline_stage_update_trigger_deployment_stage_details(ctx, fro @cli_util.wrap_exceptions def update_build_pipeline_stage_update_deliver_artifact_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, build_pipeline_stage_id, display_name, description, build_pipeline_stage_predecessor_collection, freeform_tags, defined_tags, deliver_artifact_collection, if_match): - if isinstance(build_pipeline_stage_id, six.string_types) and len(build_pipeline_stage_id.strip()) == 0: + if isinstance(build_pipeline_stage_id, str) and len(build_pipeline_stage_id.strip()) == 0: raise click.UsageError('Parameter --build-pipeline-stage-id cannot be whitespace or empty string') if not force: if build_pipeline_stage_predecessor_collection or freeform_tags or defined_tags or deliver_artifact_collection: @@ -11264,7 +11263,7 @@ def update_build_pipeline_stage_update_deliver_artifact_stage_details(ctx, from_ @cli_util.wrap_exceptions def update_build_run(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, build_run_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(build_run_id, six.string_types) and len(build_run_id.strip()) == 0: + if isinstance(build_run_id, str) and len(build_run_id.strip()) == 0: raise click.UsageError('Parameter --build-run-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -11338,7 +11337,7 @@ def update_build_run(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, connection_type, description, display_name, freeform_tags, defined_tags, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -11420,7 +11419,7 @@ def update_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_connection_update_github_access_token_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, description, display_name, freeform_tags, defined_tags, access_token, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -11507,7 +11506,7 @@ def update_connection_update_github_access_token_connection_details(ctx, from_js @cli_util.wrap_exceptions def update_connection_update_vbs_access_token_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, description, display_name, freeform_tags, defined_tags, access_token, base_url, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -11598,7 +11597,7 @@ def update_connection_update_vbs_access_token_connection_details(ctx, from_json, @cli_util.wrap_exceptions def update_connection_update_bitbucket_server_access_token_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, description, display_name, freeform_tags, defined_tags, access_token, base_url, tls_verify_config, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or tls_verify_config: @@ -11690,7 +11689,7 @@ def update_connection_update_bitbucket_server_access_token_connection_details(ct @cli_util.wrap_exceptions def update_connection_update_gitlab_access_token_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, description, display_name, freeform_tags, defined_tags, access_token, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -11777,7 +11776,7 @@ def update_connection_update_gitlab_access_token_connection_details(ctx, from_js @cli_util.wrap_exceptions def update_connection_update_bitbucket_cloud_app_password_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, description, display_name, freeform_tags, defined_tags, username, app_password, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -11868,7 +11867,7 @@ def update_connection_update_bitbucket_cloud_app_password_connection_details(ctx @cli_util.wrap_exceptions def update_connection_update_gitlab_server_access_token_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, description, display_name, freeform_tags, defined_tags, access_token, base_url, tls_verify_config, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or tls_verify_config: @@ -11962,7 +11961,7 @@ def update_connection_update_gitlab_server_access_token_connection_details(ctx, @cli_util.wrap_exceptions def update_deploy_artifact(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_artifact_id, description, display_name, deploy_artifact_type, deploy_artifact_source, argument_substitution_mode, freeform_tags, defined_tags, if_match): - if isinstance(deploy_artifact_id, six.string_types) and len(deploy_artifact_id.strip()) == 0: + if isinstance(deploy_artifact_id, str) and len(deploy_artifact_id.strip()) == 0: raise click.UsageError('Parameter --deploy-artifact-id cannot be whitespace or empty string') if not force: if deploy_artifact_source or freeform_tags or defined_tags: @@ -12056,7 +12055,7 @@ def update_deploy_artifact(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_deploy_artifact_generic_deploy_artifact_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_artifact_id, deploy_artifact_source_repository_id, deploy_artifact_source_deploy_artifact_path, deploy_artifact_source_deploy_artifact_version, description, display_name, deploy_artifact_type, argument_substitution_mode, freeform_tags, defined_tags, if_match): - if isinstance(deploy_artifact_id, six.string_types) and len(deploy_artifact_id.strip()) == 0: + if isinstance(deploy_artifact_id, str) and len(deploy_artifact_id.strip()) == 0: raise click.UsageError('Parameter --deploy-artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -12153,7 +12152,7 @@ def update_deploy_artifact_generic_deploy_artifact_source(ctx, from_json, force, @cli_util.wrap_exceptions def update_deploy_artifact_helm_repository_deploy_artifact_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_artifact_id, deploy_artifact_source_chart_url, deploy_artifact_source_deploy_artifact_version, description, display_name, deploy_artifact_type, argument_substitution_mode, freeform_tags, defined_tags, if_match, deploy_artifact_source_helm_verification_key_source): - if isinstance(deploy_artifact_id, six.string_types) and len(deploy_artifact_id.strip()) == 0: + if isinstance(deploy_artifact_id, str) and len(deploy_artifact_id.strip()) == 0: raise click.UsageError('Parameter --deploy-artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -12251,7 +12250,7 @@ def update_deploy_artifact_helm_repository_deploy_artifact_source(ctx, from_json @cli_util.wrap_exceptions def update_deploy_artifact_ocir_deploy_artifact_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_artifact_id, deploy_artifact_source_image_uri, description, display_name, deploy_artifact_type, argument_substitution_mode, freeform_tags, defined_tags, if_match, deploy_artifact_source_image_digest): - if isinstance(deploy_artifact_id, six.string_types) and len(deploy_artifact_id.strip()) == 0: + if isinstance(deploy_artifact_id, str) and len(deploy_artifact_id.strip()) == 0: raise click.UsageError('Parameter --deploy-artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -12348,7 +12347,7 @@ def update_deploy_artifact_ocir_deploy_artifact_source(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_deploy_artifact_helm_command_spec_artifact_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_artifact_id, deploy_artifact_source_base64_encoded_content, deploy_artifact_source_helm_artifact_source_type, description, display_name, deploy_artifact_type, argument_substitution_mode, freeform_tags, defined_tags, if_match): - if isinstance(deploy_artifact_id, six.string_types) and len(deploy_artifact_id.strip()) == 0: + if isinstance(deploy_artifact_id, str) and len(deploy_artifact_id.strip()) == 0: raise click.UsageError('Parameter --deploy-artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -12442,7 +12441,7 @@ def update_deploy_artifact_helm_command_spec_artifact_source(ctx, from_json, for @cli_util.wrap_exceptions def update_deploy_artifact_inline_deploy_artifact_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_artifact_id, deploy_artifact_source_base64_encoded_content, description, display_name, deploy_artifact_type, argument_substitution_mode, freeform_tags, defined_tags, if_match): - if isinstance(deploy_artifact_id, six.string_types) and len(deploy_artifact_id.strip()) == 0: + if isinstance(deploy_artifact_id, str) and len(deploy_artifact_id.strip()) == 0: raise click.UsageError('Parameter --deploy-artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -12536,7 +12535,7 @@ def update_deploy_artifact_inline_deploy_artifact_source(ctx, from_json, force, @cli_util.wrap_exceptions def update_deploy_environment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_environment_id, deploy_environment_type, description, display_name, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(deploy_environment_id, six.string_types) and len(deploy_environment_id.strip()) == 0: + if isinstance(deploy_environment_id, str) and len(deploy_environment_id.strip()) == 0: raise click.UsageError('Parameter --deploy-environment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or security_attributes: @@ -12624,7 +12623,7 @@ def update_deploy_environment(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_deploy_environment_update_function_deploy_environment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_environment_id, description, display_name, freeform_tags, defined_tags, security_attributes, function_id, if_match): - if isinstance(deploy_environment_id, six.string_types) and len(deploy_environment_id.strip()) == 0: + if isinstance(deploy_environment_id, str) and len(deploy_environment_id.strip()) == 0: raise click.UsageError('Parameter --deploy-environment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or security_attributes: @@ -12716,7 +12715,7 @@ def update_deploy_environment_update_function_deploy_environment_details(ctx, fr @cli_util.wrap_exceptions def update_deploy_environment_update_compute_instance_group_deploy_environment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_environment_id, description, display_name, freeform_tags, defined_tags, security_attributes, compute_instance_group_selectors, if_match): - if isinstance(deploy_environment_id, six.string_types) and len(deploy_environment_id.strip()) == 0: + if isinstance(deploy_environment_id, str) and len(deploy_environment_id.strip()) == 0: raise click.UsageError('Parameter --deploy-environment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or security_attributes or compute_instance_group_selectors: @@ -12809,7 +12808,7 @@ def update_deploy_environment_update_compute_instance_group_deploy_environment_d @cli_util.wrap_exceptions def update_deploy_environment_update_oke_cluster_deploy_environment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_environment_id, description, display_name, freeform_tags, defined_tags, security_attributes, cluster_id, network_channel, if_match): - if isinstance(deploy_environment_id, six.string_types) and len(deploy_environment_id.strip()) == 0: + if isinstance(deploy_environment_id, str) and len(deploy_environment_id.strip()) == 0: raise click.UsageError('Parameter --deploy-environment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or security_attributes or network_channel: @@ -12901,7 +12900,7 @@ def update_deploy_environment_update_oke_cluster_deploy_environment_details(ctx, @cli_util.wrap_exceptions def update_deploy_pipeline(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_pipeline_id, description, display_name, deploy_pipeline_parameters, freeform_tags, defined_tags, if_match): - if isinstance(deploy_pipeline_id, six.string_types) and len(deploy_pipeline_id.strip()) == 0: + if isinstance(deploy_pipeline_id, str) and len(deploy_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --deploy-pipeline-id cannot be whitespace or empty string') if not force: if deploy_pipeline_parameters or freeform_tags or defined_tags: @@ -12986,7 +12985,7 @@ def update_deploy_pipeline(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_deploy_stage(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, deploy_stage_type, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags: @@ -13072,7 +13071,7 @@ def update_deploy_stage(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_deploy_stage_update_oke_canary_traffic_shift_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, rollout_policy, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or rollout_policy: @@ -13162,7 +13161,7 @@ def update_deploy_stage_update_oke_canary_traffic_shift_deploy_stage_details(ctx @cli_util.wrap_exceptions def update_deploy_stage_update_oke_canary_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, kubernetes_manifest_deploy_artifact_ids, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or kubernetes_manifest_deploy_artifact_ids: @@ -13273,7 +13272,7 @@ def update_deploy_stage_update_oke_canary_deploy_stage_details(ctx, from_json, f @cli_util.wrap_exceptions def update_deploy_stage_update_oke_helm_chart_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, oke_cluster_deploy_environment_id, helm_chart_deploy_artifact_id, values_artifact_ids, release_name, is_uninstall_on_stage_delete, helm_command_artifact_ids, purpose, namespace, timeout_in_seconds, rollback_policy, set_values, set_string, are_hooks_enabled, should_reuse_values, should_reset_values, is_force_enabled, should_cleanup_on_fail, max_history, should_skip_crds, should_skip_render_subchart_notes, should_not_wait, is_debug_enabled, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or values_artifact_ids or helm_command_artifact_ids or rollback_policy or set_values or set_string: @@ -13432,7 +13431,7 @@ def update_deploy_stage_update_oke_helm_chart_deploy_stage_details(ctx, from_jso @cli_util.wrap_exceptions def update_deploy_stage_update_compute_instance_group_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, compute_instance_group_deploy_environment_id, deployment_spec_deploy_artifact_id, deploy_artifact_ids, rollout_policy, rollback_policy, failure_policy, load_balancer_config, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or deploy_artifact_ids or rollout_policy or rollback_policy or failure_policy or load_balancer_config: @@ -13540,7 +13539,7 @@ def update_deploy_stage_update_compute_instance_group_deploy_stage_details(ctx, @cli_util.wrap_exceptions def update_deploy_stage_update_oke_canary_approval_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, approval_policy, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or approval_policy: @@ -13632,7 +13631,7 @@ def update_deploy_stage_update_oke_canary_approval_deploy_stage_details(ctx, fro @cli_util.wrap_exceptions def update_deploy_stage_update_shell_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, container_config, command_spec_deploy_artifact_id, timeout_in_seconds, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or container_config: @@ -13731,7 +13730,7 @@ def update_deploy_stage_update_shell_deploy_stage_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_deploy_stage_update_oke_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, oke_cluster_deploy_environment_id, kubernetes_manifest_deploy_artifact_ids, namespace, rollback_policy, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or kubernetes_manifest_deploy_artifact_ids or rollback_policy: @@ -13830,7 +13829,7 @@ def update_deploy_stage_update_oke_deploy_stage_details(ctx, from_json, force, w @cli_util.wrap_exceptions def update_deploy_stage_update_compute_instance_group_canary_approval_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, approval_policy, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or approval_policy: @@ -13925,7 +13924,7 @@ def update_deploy_stage_update_compute_instance_group_canary_approval_deploy_sta @cli_util.wrap_exceptions def update_deploy_stage_update_load_balancer_traffic_shift_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, blue_backend_ips, green_backend_ips, traffic_shift_target, rollout_policy, load_balancer_config, rollback_policy, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or blue_backend_ips or green_backend_ips or rollout_policy or load_balancer_config or rollback_policy: @@ -14030,7 +14029,7 @@ def update_deploy_stage_update_load_balancer_traffic_shift_deploy_stage_details( @cli_util.wrap_exceptions def update_deploy_stage_update_oke_blue_green_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, kubernetes_manifest_deploy_artifact_ids, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or kubernetes_manifest_deploy_artifact_ids: @@ -14120,7 +14119,7 @@ def update_deploy_stage_update_oke_blue_green_deploy_stage_details(ctx, from_jso @cli_util.wrap_exceptions def update_deploy_stage_update_wait_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, wait_criteria, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or wait_criteria: @@ -14209,7 +14208,7 @@ def update_deploy_stage_update_wait_deploy_stage_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_deploy_stage_update_oke_blue_green_traffic_shift_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags: @@ -14296,7 +14295,7 @@ def update_deploy_stage_update_oke_blue_green_traffic_shift_deploy_stage_details @cli_util.wrap_exceptions def update_deploy_stage_update_manual_approval_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, approval_policy, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or approval_policy: @@ -14390,7 +14389,7 @@ def update_deploy_stage_update_manual_approval_deploy_stage_details(ctx, from_js @cli_util.wrap_exceptions def update_deploy_stage_update_compute_instance_group_blue_green_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, deployment_spec_deploy_artifact_id, deploy_artifact_ids, rollout_policy, failure_policy, test_load_balancer_config, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or deploy_artifact_ids or rollout_policy or failure_policy or test_load_balancer_config: @@ -14495,7 +14494,7 @@ def update_deploy_stage_update_compute_instance_group_blue_green_deploy_stage_de @cli_util.wrap_exceptions def update_deploy_stage_update_compute_instance_group_canary_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, deployment_spec_deploy_artifact_id, deploy_artifact_ids, rollout_policy, test_load_balancer_config, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or deploy_artifact_ids or rollout_policy or test_load_balancer_config: @@ -14598,7 +14597,7 @@ def update_deploy_stage_update_compute_instance_group_canary_deploy_stage_detail @cli_util.wrap_exceptions def update_deploy_stage_update_function_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, function_deploy_environment_id, docker_image_deploy_artifact_id, config, max_memory_in_mbs, function_timeout_in_seconds, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or config: @@ -14699,7 +14698,7 @@ def update_deploy_stage_update_function_deploy_stage_details(ctx, from_json, for @cli_util.wrap_exceptions def update_deploy_stage_update_compute_instance_group_blue_green_traffic_shift_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags: @@ -14786,7 +14785,7 @@ def update_deploy_stage_update_compute_instance_group_blue_green_traffic_shift_d @cli_util.wrap_exceptions def update_deploy_stage_update_compute_instance_group_canary_traffic_shift_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, rollout_policy, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags or rollout_policy: @@ -14879,7 +14878,7 @@ def update_deploy_stage_update_compute_instance_group_canary_traffic_shift_deplo @cli_util.wrap_exceptions def update_deploy_stage_update_invoke_function_deploy_stage_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deploy_stage_id, description, display_name, deploy_stage_predecessor_collection, freeform_tags, defined_tags, function_deploy_environment_id, deploy_artifact_id, is_async, is_validation_enabled, if_match): - if isinstance(deploy_stage_id, six.string_types) and len(deploy_stage_id.strip()) == 0: + if isinstance(deploy_stage_id, str) and len(deploy_stage_id.strip()) == 0: raise click.UsageError('Parameter --deploy-stage-id cannot be whitespace or empty string') if not force: if deploy_stage_predecessor_collection or freeform_tags or defined_tags: @@ -14976,7 +14975,7 @@ def update_deploy_stage_update_invoke_function_deploy_stage_details(ctx, from_js @cli_util.wrap_exceptions def update_deployment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, deployment_type, display_name, freeform_tags, defined_tags, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15049,7 +15048,7 @@ def update_deployment(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_deployment_update_single_deploy_stage_deployment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15123,7 +15122,7 @@ def update_deployment_update_single_deploy_stage_deployment_details(ctx, from_js @cli_util.wrap_exceptions def update_deployment_update_deploy_pipeline_redeployment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15197,7 +15196,7 @@ def update_deployment_update_deploy_pipeline_redeployment_details(ctx, from_json @cli_util.wrap_exceptions def update_deployment_update_deploy_pipeline_deployment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15271,7 +15270,7 @@ def update_deployment_update_deploy_pipeline_deployment_details(ctx, from_json, @cli_util.wrap_exceptions def update_deployment_update_single_deploy_stage_redeployment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15346,7 +15345,7 @@ def update_deployment_update_single_deploy_stage_redeployment_details(ctx, from_ @cli_util.wrap_exceptions def update_project(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, project_id, description, notification_config, freeform_tags, defined_tags, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') if not force: if notification_config or freeform_tags or defined_tags: @@ -15420,10 +15419,10 @@ def update_project(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_project_notification_preference(ctx, from_json, notification_preference, project_id, principal_id, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') - if isinstance(principal_id, six.string_types) and len(principal_id.strip()) == 0: + if isinstance(principal_id, str) and len(principal_id.strip()) == 0: raise click.UsageError('Parameter --principal-id cannot be whitespace or empty string') kwargs = {} @@ -15457,7 +15456,7 @@ def update_project_notification_preference(ctx, from_json, notification_preferen @cli_util.wrap_exceptions def update_project_repository_settings(ctx, from_json, force, project_id, merge_settings, approval_rules, if_match): - if isinstance(project_id, six.string_types) and len(project_id.strip()) == 0: + if isinstance(project_id, str) and len(project_id.strip()) == 0: raise click.UsageError('Parameter --project-id cannot be whitespace or empty string') if not force: if merge_settings or approval_rules: @@ -15508,7 +15507,7 @@ def update_project_repository_settings(ctx, from_json, force, project_id, merge_ @cli_util.wrap_exceptions def update_pull_request(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, pull_request_id, display_name, description, destination_branch, reviewers, freeform_tags, defined_tags, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') if not force: if reviewers or freeform_tags or defined_tags: @@ -15588,10 +15587,10 @@ def update_pull_request(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_pull_request_comment(ctx, from_json, pull_request_id, comment_id, data, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(comment_id, six.string_types) and len(comment_id.strip()) == 0: + if isinstance(comment_id, str) and len(comment_id.strip()) == 0: raise click.UsageError('Parameter --comment-id cannot be whitespace or empty string') kwargs = {} @@ -15626,10 +15625,10 @@ def update_pull_request_comment(ctx, from_json, pull_request_id, comment_id, dat @cli_util.wrap_exceptions def update_pull_request_notification_preference(ctx, from_json, notification_preference, pull_request_id, principal_id, if_match): - if isinstance(pull_request_id, six.string_types) and len(pull_request_id.strip()) == 0: + if isinstance(pull_request_id, str) and len(pull_request_id.strip()) == 0: raise click.UsageError('Parameter --pull-request-id cannot be whitespace or empty string') - if isinstance(principal_id, six.string_types) and len(principal_id.strip()) == 0: + if isinstance(principal_id, str) and len(principal_id.strip()) == 0: raise click.UsageError('Parameter --principal-id cannot be whitespace or empty string') kwargs = {} @@ -15671,7 +15670,7 @@ def update_pull_request_notification_preference(ctx, from_json, notification_pre @cli_util.wrap_exceptions def update_repository(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, repository_id, name, description, default_branch, repository_type, mirror_repository_config, freeform_tags, defined_tags, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') if not force: if mirror_repository_config or freeform_tags or defined_tags: @@ -15754,10 +15753,10 @@ def update_repository(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_repository_notification_preference(ctx, from_json, notification_preference, repository_id, principal_id, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(principal_id, six.string_types) and len(principal_id.strip()) == 0: + if isinstance(principal_id, str) and len(principal_id.strip()) == 0: raise click.UsageError('Parameter --principal-id cannot be whitespace or empty string') kwargs = {} @@ -15792,7 +15791,7 @@ def update_repository_notification_preference(ctx, from_json, notification_prefe @cli_util.wrap_exceptions def update_repository_settings(ctx, from_json, force, repository_id, merge_checks, merge_settings, approval_rules, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') if not force: if merge_checks or merge_settings or approval_rules: @@ -15846,7 +15845,7 @@ def update_repository_settings(ctx, from_json, force, repository_id, merge_check @cli_util.wrap_exceptions def update_trigger(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_id, trigger_source, display_name, description, actions, freeform_tags, defined_tags, if_match): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') if not force: if actions or freeform_tags or defined_tags: @@ -15933,7 +15932,7 @@ def update_trigger(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_trigger_update_bitbucket_server_trigger_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_id, display_name, description, actions, freeform_tags, defined_tags, if_match): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') if not force: if actions or freeform_tags or defined_tags: @@ -16022,7 +16021,7 @@ def update_trigger_update_bitbucket_server_trigger_details(ctx, from_json, force @cli_util.wrap_exceptions def update_trigger_update_vbs_trigger_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_id, display_name, description, actions, freeform_tags, defined_tags, connection_id, if_match): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') if not force: if actions or freeform_tags or defined_tags: @@ -16113,7 +16112,7 @@ def update_trigger_update_vbs_trigger_details(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_trigger_update_gitlab_server_trigger_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_id, display_name, description, actions, freeform_tags, defined_tags, if_match): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') if not force: if actions or freeform_tags or defined_tags: @@ -16202,7 +16201,7 @@ def update_trigger_update_gitlab_server_trigger_details(ctx, from_json, force, w @cli_util.wrap_exceptions def update_trigger_update_devops_code_repository_trigger_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_id, display_name, description, actions, freeform_tags, defined_tags, repository_id, if_match): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') if not force: if actions or freeform_tags or defined_tags: @@ -16294,7 +16293,7 @@ def update_trigger_update_devops_code_repository_trigger_details(ctx, from_json, @cli_util.wrap_exceptions def update_trigger_update_github_trigger_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_id, display_name, description, actions, freeform_tags, defined_tags, connection_id, if_match): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') if not force: if actions or freeform_tags or defined_tags: @@ -16386,7 +16385,7 @@ def update_trigger_update_github_trigger_details(ctx, from_json, force, wait_for @cli_util.wrap_exceptions def update_trigger_update_gitlab_trigger_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_id, display_name, description, actions, freeform_tags, defined_tags, connection_id, if_match): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') if not force: if actions or freeform_tags or defined_tags: @@ -16478,7 +16477,7 @@ def update_trigger_update_gitlab_trigger_details(ctx, from_json, force, wait_for @cli_util.wrap_exceptions def update_trigger_update_bitbucket_cloud_trigger_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, trigger_id, display_name, description, actions, freeform_tags, defined_tags, connection_id, if_match): - if isinstance(trigger_id, six.string_types) and len(trigger_id.strip()) == 0: + if isinstance(trigger_id, str) and len(trigger_id.strip()) == 0: raise click.UsageError('Parameter --trigger-id cannot be whitespace or empty string') if not force: if actions or freeform_tags or defined_tags: @@ -16561,7 +16560,7 @@ def update_trigger_update_bitbucket_cloud_trigger_details(ctx, from_json, force, @cli_util.wrap_exceptions def validate_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/dif/src/oci_cli_stack/generated/stack_cli.py b/services/dif/src/oci_cli_stack/generated/stack_cli.py index 8579888bf..6ca6cbb16 100644 --- a/services/dif/src/oci_cli_stack/generated/stack_cli.py +++ b/services/dif/src/oci_cli_stack/generated/stack_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -100,7 +99,7 @@ def stack_collection_group(): @cli_util.wrap_exceptions def add_service(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, stack_templates, services, adb, ggcs, dataflow, objectstorage, genai, aidataplatform, omk, oke, if_match): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -183,7 +182,7 @@ def add_service(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -212,7 +211,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_stack_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, compartment_id, if_match): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -396,7 +395,7 @@ def create_stack(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_stack(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, if_match): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -469,7 +468,7 @@ def delete_stack(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def deploy_artifacts(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, stack_templates, services, subnet_id, adb, ggcs, dataflow, omk, oke, if_match): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -544,7 +543,7 @@ def deploy_artifacts(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_stack(ctx, from_json, stack_id): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -566,7 +565,7 @@ def get_stack(ctx, from_json, stack_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -659,7 +658,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -716,7 +715,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -855,7 +854,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_stack(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, notification_email, stack_templates, services, adb, ggcs, dataflow, objectstorage, genai, freeform_tags, defined_tags, if_match): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') if not force: if stack_templates or services or adb or ggcs or dataflow or objectstorage or genai or freeform_tags or defined_tags: diff --git a/services/disaster_recovery/src/oci_cli_disaster_recovery/generated/disasterrecovery_cli.py b/services/disaster_recovery/src/oci_cli_disaster_recovery/generated/disasterrecovery_cli.py index f18d19a6f..742025efb 100644 --- a/services/disaster_recovery/src/oci_cli_disaster_recovery/generated/disasterrecovery_cli.py +++ b/services/disaster_recovery/src/oci_cli_disaster_recovery/generated/disasterrecovery_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -100,7 +99,7 @@ def dr_plan_group(): @cli_util.wrap_exceptions def associate_dr_protection_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, role, dr_protection_group_id, peer_id, peer_region, if_match): - if isinstance(dr_protection_group_id, six.string_types) and len(dr_protection_group_id.strip()) == 0: + if isinstance(dr_protection_group_id, str) and len(dr_protection_group_id.strip()) == 0: raise click.UsageError('Parameter --dr-protection-group-id cannot be whitespace or empty string') kwargs = {} @@ -169,7 +168,7 @@ def associate_dr_protection_group(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def cancel_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, action_type, dr_plan_execution_id, if_match): - if isinstance(dr_plan_execution_id, six.string_types) and len(dr_plan_execution_id.strip()) == 0: + if isinstance(dr_plan_execution_id, str) and len(dr_plan_execution_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-execution-id cannot be whitespace or empty string') kwargs = {} @@ -231,7 +230,7 @@ def cancel_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -264,7 +263,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_dr_protection_group_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, dr_protection_group_id, if_match): - if isinstance(dr_protection_group_id, six.string_types) and len(dr_protection_group_id.strip()) == 0: + if isinstance(dr_protection_group_id, str) and len(dr_protection_group_id.strip()) == 0: raise click.UsageError('Parameter --dr-protection-group-id cannot be whitespace or empty string') kwargs = {} @@ -1329,7 +1328,7 @@ def create_dr_protection_group(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_automatic_dr_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, automatic_dr_configuration_id, if_match): - if isinstance(automatic_dr_configuration_id, six.string_types) and len(automatic_dr_configuration_id.strip()) == 0: + if isinstance(automatic_dr_configuration_id, str) and len(automatic_dr_configuration_id.strip()) == 0: raise click.UsageError('Parameter --automatic-dr-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1395,7 +1394,7 @@ def delete_automatic_dr_configuration(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_dr_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dr_plan_id, if_match): - if isinstance(dr_plan_id, six.string_types) and len(dr_plan_id.strip()) == 0: + if isinstance(dr_plan_id, str) and len(dr_plan_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-id cannot be whitespace or empty string') kwargs = {} @@ -1461,7 +1460,7 @@ def delete_dr_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dr_plan_execution_id, if_match): - if isinstance(dr_plan_execution_id, six.string_types) and len(dr_plan_execution_id.strip()) == 0: + if isinstance(dr_plan_execution_id, str) and len(dr_plan_execution_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-execution-id cannot be whitespace or empty string') kwargs = {} @@ -1519,7 +1518,7 @@ def delete_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_dr_protection_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dr_protection_group_id, if_match): - if isinstance(dr_protection_group_id, six.string_types) and len(dr_protection_group_id.strip()) == 0: + if isinstance(dr_protection_group_id, str) and len(dr_protection_group_id.strip()) == 0: raise click.UsageError('Parameter --dr-protection-group-id cannot be whitespace or empty string') kwargs = {} @@ -1577,7 +1576,7 @@ def delete_dr_protection_group(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def disassociate_dr_protection_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, dr_protection_group_id, if_match): - if isinstance(dr_protection_group_id, six.string_types) and len(dr_protection_group_id.strip()) == 0: + if isinstance(dr_protection_group_id, str) and len(dr_protection_group_id.strip()) == 0: raise click.UsageError('Parameter --dr-protection-group-id cannot be whitespace or empty string') kwargs = {} @@ -1639,7 +1638,7 @@ def disassociate_dr_protection_group(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def disassociate_dr_protection_group_disassociate_dr_protection_group_default_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dr_protection_group_id, if_match): - if isinstance(dr_protection_group_id, six.string_types) and len(dr_protection_group_id.strip()) == 0: + if isinstance(dr_protection_group_id, str) and len(dr_protection_group_id.strip()) == 0: raise click.UsageError('Parameter --dr-protection-group-id cannot be whitespace or empty string') kwargs = {} @@ -1698,7 +1697,7 @@ def disassociate_dr_protection_group_disassociate_dr_protection_group_default_de @cli_util.wrap_exceptions def get_automatic_dr_configuration(ctx, from_json, automatic_dr_configuration_id): - if isinstance(automatic_dr_configuration_id, six.string_types) and len(automatic_dr_configuration_id.strip()) == 0: + if isinstance(automatic_dr_configuration_id, str) and len(automatic_dr_configuration_id.strip()) == 0: raise click.UsageError('Parameter --automatic-dr-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1722,7 +1721,7 @@ def get_automatic_dr_configuration(ctx, from_json, automatic_dr_configuration_id @cli_util.wrap_exceptions def get_dr_plan(ctx, from_json, dr_plan_id): - if isinstance(dr_plan_id, six.string_types) and len(dr_plan_id.strip()) == 0: + if isinstance(dr_plan_id, str) and len(dr_plan_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-id cannot be whitespace or empty string') kwargs = {} @@ -1746,7 +1745,7 @@ def get_dr_plan(ctx, from_json, dr_plan_id): @cli_util.wrap_exceptions def get_dr_plan_execution(ctx, from_json, dr_plan_execution_id): - if isinstance(dr_plan_execution_id, six.string_types) and len(dr_plan_execution_id.strip()) == 0: + if isinstance(dr_plan_execution_id, str) and len(dr_plan_execution_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-execution-id cannot be whitespace or empty string') kwargs = {} @@ -1770,7 +1769,7 @@ def get_dr_plan_execution(ctx, from_json, dr_plan_execution_id): @cli_util.wrap_exceptions def get_dr_protection_group(ctx, from_json, dr_protection_group_id): - if isinstance(dr_protection_group_id, six.string_types) and len(dr_protection_group_id.strip()) == 0: + if isinstance(dr_protection_group_id, str) and len(dr_protection_group_id.strip()) == 0: raise click.UsageError('Parameter --dr-protection-group-id cannot be whitespace or empty string') kwargs = {} @@ -1794,7 +1793,7 @@ def get_dr_protection_group(ctx, from_json, dr_protection_group_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1828,7 +1827,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def ignore_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, group_id, dr_plan_execution_id, step_id, if_match): - if isinstance(dr_plan_execution_id, six.string_types) and len(dr_plan_execution_id.strip()) == 0: + if isinstance(dr_plan_execution_id, str) and len(dr_plan_execution_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-execution-id cannot be whitespace or empty string') kwargs = {} @@ -2227,7 +2226,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2292,7 +2291,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2421,7 +2420,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def pause_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, action_type, dr_plan_execution_id, if_match): - if isinstance(dr_plan_execution_id, six.string_types) and len(dr_plan_execution_id.strip()) == 0: + if isinstance(dr_plan_execution_id, str) and len(dr_plan_execution_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-execution-id cannot be whitespace or empty string') kwargs = {} @@ -2486,7 +2485,7 @@ def pause_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def refresh_dr_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, dr_plan_id, if_match): - if isinstance(dr_plan_id, six.string_types) and len(dr_plan_id.strip()) == 0: + if isinstance(dr_plan_id, str) and len(dr_plan_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-id cannot be whitespace or empty string') kwargs = {} @@ -2548,7 +2547,7 @@ def refresh_dr_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def refresh_dr_plan_refresh_dr_plan_default_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dr_plan_id, if_match): - if isinstance(dr_plan_id, six.string_types) and len(dr_plan_id.strip()) == 0: + if isinstance(dr_plan_id, str) and len(dr_plan_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-id cannot be whitespace or empty string') kwargs = {} @@ -2612,7 +2611,7 @@ def refresh_dr_plan_refresh_dr_plan_default_details(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def resume_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, action_type, dr_plan_execution_id, if_match): - if isinstance(dr_plan_execution_id, six.string_types) and len(dr_plan_execution_id.strip()) == 0: + if isinstance(dr_plan_execution_id, str) and len(dr_plan_execution_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-execution-id cannot be whitespace or empty string') kwargs = {} @@ -2682,7 +2681,7 @@ def resume_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def retry_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, group_id, dr_plan_execution_id, step_id, if_match): - if isinstance(dr_plan_execution_id, six.string_types) and len(dr_plan_execution_id.strip()) == 0: + if isinstance(dr_plan_execution_id, str) and len(dr_plan_execution_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-execution-id cannot be whitespace or empty string') kwargs = {} @@ -2766,7 +2765,7 @@ def retry_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_automatic_dr_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, automatic_dr_configuration_id, display_name, members, default_switchover_dr_plan_id, default_failover_dr_plan_id, freeform_tags, defined_tags, if_match): - if isinstance(automatic_dr_configuration_id, six.string_types) and len(automatic_dr_configuration_id.strip()) == 0: + if isinstance(automatic_dr_configuration_id, str) and len(automatic_dr_configuration_id.strip()) == 0: raise click.UsageError('Parameter --automatic-dr-configuration-id cannot be whitespace or empty string') if not force: if members or freeform_tags or defined_tags: @@ -2862,7 +2861,7 @@ def update_automatic_dr_configuration(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_dr_plan(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dr_plan_id, display_name, plan_groups, freeform_tags, defined_tags, if_match): - if isinstance(dr_plan_id, six.string_types) and len(dr_plan_id.strip()) == 0: + if isinstance(dr_plan_id, str) and len(dr_plan_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-id cannot be whitespace or empty string') if not force: if plan_groups or freeform_tags or defined_tags: @@ -2949,7 +2948,7 @@ def update_dr_plan(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_dr_plan_execution(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dr_plan_execution_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(dr_plan_execution_id, six.string_types) and len(dr_plan_execution_id.strip()) == 0: + if isinstance(dr_plan_execution_id, str) and len(dr_plan_execution_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-execution-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3037,7 +3036,7 @@ def update_dr_plan_execution(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_dr_protection_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dr_protection_group_id, display_name, log_location, members, freeform_tags, defined_tags, if_match): - if isinstance(dr_protection_group_id, six.string_types) and len(dr_protection_group_id.strip()) == 0: + if isinstance(dr_protection_group_id, str) and len(dr_protection_group_id.strip()) == 0: raise click.UsageError('Parameter --dr-protection-group-id cannot be whitespace or empty string') if not force: if log_location or members or freeform_tags or defined_tags: @@ -3118,7 +3117,7 @@ def update_dr_protection_group(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_dr_protection_group_role(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, role, dr_protection_group_id, if_match): - if isinstance(dr_protection_group_id, six.string_types) and len(dr_protection_group_id.strip()) == 0: + if isinstance(dr_protection_group_id, str) and len(dr_protection_group_id.strip()) == 0: raise click.UsageError('Parameter --dr-protection-group-id cannot be whitespace or empty string') kwargs = {} @@ -3181,7 +3180,7 @@ def update_dr_protection_group_role(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def verify_dr_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, dr_plan_id, if_match): - if isinstance(dr_plan_id, six.string_types) and len(dr_plan_id.strip()) == 0: + if isinstance(dr_plan_id, str) and len(dr_plan_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-id cannot be whitespace or empty string') kwargs = {} @@ -3243,7 +3242,7 @@ def verify_dr_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def verify_dr_plan_verify_dr_plan_default_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dr_plan_id, if_match): - if isinstance(dr_plan_id, six.string_types) and len(dr_plan_id.strip()) == 0: + if isinstance(dr_plan_id, str) and len(dr_plan_id.strip()) == 0: raise click.UsageError('Parameter --dr-plan-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/distributed_database/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py b/services/distributed_database/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py index a1cb090c5..23b04f43c 100644 --- a/services/distributed_database/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py +++ b/services/distributed_database/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -61,7 +60,7 @@ def distributed_database_group(): @cli_util.wrap_exceptions def add_distributed_autonomous_database_gds_control_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, public_ssh_key, subnet_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -125,7 +124,7 @@ def add_distributed_autonomous_database_gds_control_node(ctx, from_json, wait_fo @cli_util.wrap_exceptions def change_distributed_autonomous_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -186,7 +185,7 @@ def change_distributed_autonomous_database_compartment(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def change_distributed_autonomous_db_backup_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, db_backup_config, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -248,7 +247,7 @@ def change_distributed_autonomous_db_backup_config(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def configure_distributed_autonomous_database_gsm_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, ca_bundle_id, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -311,7 +310,7 @@ def configure_distributed_autonomous_database_gsm_wallet(ctx, from_json, wait_fo @cli_util.wrap_exceptions def configure_distributed_autonomous_database_gsms(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, old_gsm_names, is_latest_gsm_image, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -375,7 +374,7 @@ def configure_distributed_autonomous_database_gsms(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def configure_distributed_autonomous_database_sharding(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, is_rebalance_required, certificate_id, ca_bundle_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -550,7 +549,7 @@ def create_distributed_autonomous_database(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -603,7 +602,7 @@ def delete_distributed_autonomous_database(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def download_distributed_autonomous_database_gsm_certificate_signing_request(ctx, from_json, file, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -654,7 +653,7 @@ def download_distributed_autonomous_database_gsm_certificate_signing_request(ctx @cli_util.wrap_exceptions def generate_distributed_autonomous_database_gsm_certificate_signing_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match, ca_bundle_id): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -710,7 +709,7 @@ def generate_distributed_autonomous_database_gsm_certificate_signing_request(ctx @cli_util.wrap_exceptions def generate_distributed_autonomous_database_wallet(ctx, from_json, file, distributed_autonomous_database_id, password, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -763,7 +762,7 @@ def generate_distributed_autonomous_database_wallet(ctx, from_json, file, distri @cli_util.wrap_exceptions def get_distributed_autonomous_database(ctx, from_json, distributed_autonomous_database_id, metadata, if_none_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -789,7 +788,7 @@ def get_distributed_autonomous_database(ctx, from_json, distributed_autonomous_d @cli_util.wrap_exceptions def get_distributed_autonomous_database_raft_metric(ctx, from_json, distributed_autonomous_database_id): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -887,7 +886,7 @@ def list_distributed_autonomous_databases(ctx, from_json, all_pages, page_size, @cli_util.wrap_exceptions def move_distributed_autonomous_database_replication_unit(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, source_shard_name, destination_shard_name, replication_units, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -956,7 +955,7 @@ def move_distributed_autonomous_database_replication_unit(ctx, from_json, wait_f @cli_util.wrap_exceptions def patch_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, items, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1020,7 +1019,7 @@ def patch_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def recreate_failed_distributed_autonomous_database_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, resource_name, shard_group, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1078,7 +1077,7 @@ def recreate_failed_distributed_autonomous_database_resource(ctx, from_json, wai @cli_util.wrap_exceptions def rotate_distributed_autonomous_database_passwords(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1133,7 +1132,7 @@ def rotate_distributed_autonomous_database_passwords(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def start_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1188,7 +1187,7 @@ def start_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def stop_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1247,7 +1246,7 @@ def stop_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def update_distributed_autonomous_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1316,7 +1315,7 @@ def update_distributed_autonomous_database(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def upload_distributed_autonomous_database_signed_certificate_and_generate_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, ca_signed_certificate, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1376,7 +1375,7 @@ def upload_distributed_autonomous_database_signed_certificate_and_generate_walle @cli_util.wrap_exceptions def validate_distributed_autonomous_database_ca_bundle(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1434,7 +1433,7 @@ def validate_distributed_autonomous_database_ca_bundle(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def validate_distributed_autonomous_database_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, is_surrogate, resource_name, shard_group, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/distributed_database/src/oci_cli_distributed_db_private_endpoint_service/generated/distributeddbprivateendpointservice_cli.py b/services/distributed_database/src/oci_cli_distributed_db_private_endpoint_service/generated/distributeddbprivateendpointservice_cli.py index fec936692..e182efc97 100644 --- a/services/distributed_database/src/oci_cli_distributed_db_private_endpoint_service/generated/distributeddbprivateendpointservice_cli.py +++ b/services/distributed_database/src/oci_cli_distributed_db_private_endpoint_service/generated/distributeddbprivateendpointservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,7 +52,7 @@ def distributed_database_private_endpoint_group(): @cli_util.wrap_exceptions def change_distributed_database_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, distributed_database_private_endpoint_id, if_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -187,7 +186,7 @@ def create_distributed_database_private_endpoint(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def delete_distributed_database_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_private_endpoint_id, if_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -239,7 +238,7 @@ def delete_distributed_database_private_endpoint(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def get_distributed_database_private_endpoint(ctx, from_json, distributed_database_private_endpoint_id, if_none_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -327,7 +326,7 @@ def list_distributed_database_private_endpoints(ctx, from_json, all_pages, page_ @cli_util.wrap_exceptions def reinstate_proxy_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_private_endpoint_id, if_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -388,7 +387,7 @@ def reinstate_proxy_instance(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_distributed_database_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_private_endpoint_id, display_name, description, nsg_ids, freeform_tags, defined_tags, if_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') if not force: if nsg_ids or freeform_tags or defined_tags: diff --git a/services/distributed_database/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py b/services/distributed_database/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py index 987553e02..f476495a2 100644 --- a/services/distributed_database/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py +++ b/services/distributed_database/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -54,7 +53,7 @@ def distributed_database_group(): @cli_util.wrap_exceptions def add_distributed_database_gds_control_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, public_ssh_key, subnet_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -118,7 +117,7 @@ def add_distributed_database_gds_control_node(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def change_distributed_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -179,7 +178,7 @@ def change_distributed_database_compartment(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def change_distributed_db_backup_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, db_backup_config, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -241,7 +240,7 @@ def change_distributed_db_backup_config(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def configure_distributed_database_gsms(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, old_gsm_names, is_latest_gsm_image, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -303,7 +302,7 @@ def configure_distributed_database_gsms(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def configure_distributed_database_sharding(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, is_rebalance_required, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -481,7 +480,7 @@ def create_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, must_delete_infra, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -536,7 +535,7 @@ def delete_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def download_distributed_database_gsm_certificate_signing_request(ctx, from_json, file, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -587,7 +586,7 @@ def download_distributed_database_gsm_certificate_signing_request(ctx, from_json @cli_util.wrap_exceptions def generate_distributed_database_gsm_certificate_signing_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, ca_bundle_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -642,7 +641,7 @@ def generate_distributed_database_gsm_certificate_signing_request(ctx, from_json @cli_util.wrap_exceptions def generate_distributed_database_wallet(ctx, from_json, file, distributed_database_id, password, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -695,7 +694,7 @@ def generate_distributed_database_wallet(ctx, from_json, file, distributed_datab @cli_util.wrap_exceptions def get_distributed_database(ctx, from_json, distributed_database_id, metadata, if_none_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -721,7 +720,7 @@ def get_distributed_database(ctx, from_json, distributed_database_id, metadata, @cli_util.wrap_exceptions def get_distributed_database_raft_metric(ctx, from_json, distributed_database_id): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -819,7 +818,7 @@ def list_distributed_databases(ctx, from_json, all_pages, page_size, compartment @cli_util.wrap_exceptions def move_distributed_database_replication_unit(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, source_shard_name, destination_shard_name, replication_units, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -888,7 +887,7 @@ def move_distributed_database_replication_unit(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def patch_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, items, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -952,7 +951,7 @@ def patch_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def recreate_failed_distributed_database_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, resource_name, shard_group, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1010,7 +1009,7 @@ def recreate_failed_distributed_database_resource(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def rotate_distributed_database_passwords(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1065,7 +1064,7 @@ def rotate_distributed_database_passwords(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def start_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1120,7 +1119,7 @@ def start_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def stop_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1179,7 +1178,7 @@ def stop_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_distributed_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1248,7 +1247,7 @@ def update_distributed_database(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def upload_distributed_database_signed_certificate_and_generate_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, ca_signed_certificate, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1311,7 +1310,7 @@ def upload_distributed_database_signed_certificate_and_generate_wallet(ctx, from @cli_util.wrap_exceptions def validate_distributed_database_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, is_surrogate, resource_name, shard_group, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/distributed_database/src/oci_cli_distributed_db_work_request_service/generated/distributeddbworkrequestservice_cli.py b/services/distributed_database/src/oci_cli_distributed_db_work_request_service/generated/distributeddbworkrequestservice_cli.py index 2237c57da..315c28b97 100644 --- a/services/distributed_database/src/oci_cli_distributed_db_work_request_service/generated/distributeddbworkrequestservice_cli.py +++ b/services/distributed_database/src/oci_cli_distributed_db_work_request_service/generated/distributeddbworkrequestservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -55,7 +54,7 @@ def work_request_group(): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -86,7 +85,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -143,7 +142,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/distributed_database_v26/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py b/services/distributed_database_v26/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py index b7a38fd49..dc7adcf45 100644 --- a/services/distributed_database_v26/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py +++ b/services/distributed_database_v26/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -61,7 +60,7 @@ def distributed_database_group(): @cli_util.wrap_exceptions def add_distributed_autonomous_database_gds_control_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, public_ssh_key, subnet_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -125,7 +124,7 @@ def add_distributed_autonomous_database_gds_control_node(ctx, from_json, wait_fo @cli_util.wrap_exceptions def change_distributed_autonomous_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -186,7 +185,7 @@ def change_distributed_autonomous_database_compartment(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def change_distributed_autonomous_db_backup_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, db_backup_config, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -251,7 +250,7 @@ def change_distributed_autonomous_db_backup_config(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def configure_distributed_autonomous_database_auto_resource_management(ctx, from_json, distributed_autonomous_database_id, is_enabled, cool_off_period_in_minutes, max_move_ru_attempts, max_move_ru_unit, mode, action_type, notification_topic_ids, stream_ids, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -307,7 +306,7 @@ def configure_distributed_autonomous_database_auto_resource_management(ctx, from @cli_util.wrap_exceptions def configure_distributed_autonomous_database_gsm_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, ca_bundle_id, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -370,7 +369,7 @@ def configure_distributed_autonomous_database_gsm_wallet(ctx, from_json, wait_fo @cli_util.wrap_exceptions def configure_distributed_autonomous_database_gsms(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, old_gsm_names, is_latest_gsm_image, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -434,7 +433,7 @@ def configure_distributed_autonomous_database_gsms(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def configure_distributed_autonomous_database_sharding(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, is_rebalance_required, certificate_id, ca_bundle_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -633,7 +632,7 @@ def create_distributed_autonomous_database(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -687,7 +686,7 @@ def delete_distributed_autonomous_database(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def generate_distributed_autonomous_database_wallet(ctx, from_json, file, distributed_autonomous_database_id, password, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -740,7 +739,7 @@ def generate_distributed_autonomous_database_wallet(ctx, from_json, file, distri @cli_util.wrap_exceptions def get_distributed_autonomous_database(ctx, from_json, distributed_autonomous_database_id, metadata, if_none_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -766,7 +765,7 @@ def get_distributed_autonomous_database(ctx, from_json, distributed_autonomous_d @cli_util.wrap_exceptions def get_distributed_autonomous_database_raft_metric(ctx, from_json, distributed_autonomous_database_id): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -789,7 +788,7 @@ def get_distributed_autonomous_database_raft_metric(ctx, from_json, distributed_ @cli_util.wrap_exceptions def get_distributed_autonomous_database_ru_change_log(ctx, from_json, distributed_autonomous_database_id, source_shard_name): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -895,7 +894,7 @@ def list_distributed_autonomous_databases(ctx, from_json, all_pages, page_size, @cli_util.wrap_exceptions def move_distributed_autonomous_database_replication_unit(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, source_shard_name, destination_shard_name, replication_units, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -964,7 +963,7 @@ def move_distributed_autonomous_database_replication_unit(ctx, from_json, wait_f @cli_util.wrap_exceptions def patch_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, items, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1027,7 +1026,7 @@ def patch_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def recreate_failed_distributed_autonomous_database_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, resource_name, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1084,7 +1083,7 @@ def recreate_failed_distributed_autonomous_database_resource(ctx, from_json, wai @cli_util.wrap_exceptions def rotate_distributed_autonomous_database_passwords(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, database_details, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1144,7 +1143,7 @@ def rotate_distributed_autonomous_database_passwords(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def scale_distributed_autonomous_database_gsms(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1203,7 +1202,7 @@ def scale_distributed_autonomous_database_gsms(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def start_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1258,7 +1257,7 @@ def start_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def stop_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1318,7 +1317,7 @@ def stop_distributed_autonomous_database(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def update_distributed_autonomous_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, display_name, notification_topic_ids, freeform_tags, defined_tags, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') if not force: if notification_topic_ids or freeform_tags or defined_tags: @@ -1389,7 +1388,7 @@ def update_distributed_autonomous_database(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def validate_distributed_autonomous_database_ca_bundle(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} @@ -1445,7 +1444,7 @@ def validate_distributed_autonomous_database_ca_bundle(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def validate_distributed_autonomous_database_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_autonomous_database_id, is_surrogate, if_match): - if isinstance(distributed_autonomous_database_id, six.string_types) and len(distributed_autonomous_database_id.strip()) == 0: + if isinstance(distributed_autonomous_database_id, str) and len(distributed_autonomous_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-autonomous-database-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/distributed_database_v26/src/oci_cli_distributed_db_private_endpoint_service/generated/distributeddbprivateendpointservice_cli.py b/services/distributed_database_v26/src/oci_cli_distributed_db_private_endpoint_service/generated/distributeddbprivateendpointservice_cli.py index 8880dc10c..33fedc7b2 100644 --- a/services/distributed_database_v26/src/oci_cli_distributed_db_private_endpoint_service/generated/distributeddbprivateendpointservice_cli.py +++ b/services/distributed_database_v26/src/oci_cli_distributed_db_private_endpoint_service/generated/distributeddbprivateendpointservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,7 +52,7 @@ def distributed_database_private_endpoint_group(): @cli_util.wrap_exceptions def change_distributed_database_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, distributed_database_private_endpoint_id, if_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -189,7 +188,7 @@ def create_distributed_database_private_endpoint(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def delete_distributed_database_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_private_endpoint_id, if_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -241,7 +240,7 @@ def delete_distributed_database_private_endpoint(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def get_distributed_database_private_endpoint(ctx, from_json, distributed_database_private_endpoint_id, if_none_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -335,7 +334,7 @@ def list_distributed_database_private_endpoints(ctx, from_json, all_pages, page_ @cli_util.wrap_exceptions def patch_distributed_database_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_private_endpoint_id, items, if_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -397,7 +396,7 @@ def patch_distributed_database_private_endpoint(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def reinstate_proxy_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_private_endpoint_id, if_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -457,7 +456,7 @@ def reinstate_proxy_instance(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_distributed_database_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_private_endpoint_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(distributed_database_private_endpoint_id, six.string_types) and len(distributed_database_private_endpoint_id.strip()) == 0: + if isinstance(distributed_database_private_endpoint_id, str) and len(distributed_database_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-private-endpoint-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/distributed_database_v26/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py b/services/distributed_database_v26/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py index 269bbfc6d..d0f41267e 100644 --- a/services/distributed_database_v26/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py +++ b/services/distributed_database_v26/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -54,7 +53,7 @@ def distributed_database_group(): @cli_util.wrap_exceptions def add_distributed_database_gds_control_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, public_ssh_key, subnet_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -118,7 +117,7 @@ def add_distributed_database_gds_control_node(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def change_distributed_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -179,7 +178,7 @@ def change_distributed_database_compartment(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def change_distributed_db_backup_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, db_backup_config, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -244,7 +243,7 @@ def change_distributed_db_backup_config(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def configure_distributed_database_auto_resource_management(ctx, from_json, distributed_database_id, is_enabled, cool_off_period_in_minutes, max_move_ru_attempts, max_move_ru_unit, mode, action_type, notification_topic_ids, stream_ids, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -300,7 +299,7 @@ def configure_distributed_database_auto_resource_management(ctx, from_json, dist @cli_util.wrap_exceptions def configure_distributed_database_gsms(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, old_gsm_names, is_latest_gsm_image, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -362,7 +361,7 @@ def configure_distributed_database_gsms(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def configure_distributed_database_sharding(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, is_rebalance_required, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -563,7 +562,7 @@ def create_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -617,7 +616,7 @@ def delete_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def generate_distributed_database_wallet(ctx, from_json, file, distributed_database_id, password, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -670,7 +669,7 @@ def generate_distributed_database_wallet(ctx, from_json, file, distributed_datab @cli_util.wrap_exceptions def get_distributed_database(ctx, from_json, distributed_database_id, metadata, if_none_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -696,7 +695,7 @@ def get_distributed_database(ctx, from_json, distributed_database_id, metadata, @cli_util.wrap_exceptions def get_distributed_database_raft_metric(ctx, from_json, distributed_database_id): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -719,7 +718,7 @@ def get_distributed_database_raft_metric(ctx, from_json, distributed_database_id @cli_util.wrap_exceptions def get_distributed_database_ru_change_log(ctx, from_json, distributed_database_id, source_shard_name): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -825,7 +824,7 @@ def list_distributed_databases(ctx, from_json, all_pages, page_size, compartment @cli_util.wrap_exceptions def move_distributed_database_replication_unit(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, source_shard_name, destination_shard_name, replication_units, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -894,7 +893,7 @@ def move_distributed_database_replication_unit(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def patch_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, items, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -957,7 +956,7 @@ def patch_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def recreate_failed_distributed_database_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, resource_name, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1014,7 +1013,7 @@ def recreate_failed_distributed_database_resource(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def rotate_distributed_database_passwords(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, database_details, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1074,7 +1073,7 @@ def rotate_distributed_database_passwords(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def scale_distributed_database_gsms(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1133,7 +1132,7 @@ def scale_distributed_database_gsms(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def start_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1188,7 +1187,7 @@ def start_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def stop_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} @@ -1248,7 +1247,7 @@ def stop_distributed_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_distributed_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, display_name, notification_topic_ids, freeform_tags, defined_tags, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') if not force: if notification_topic_ids or freeform_tags or defined_tags: @@ -1320,7 +1319,7 @@ def update_distributed_database(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def validate_distributed_database_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, distributed_database_id, is_surrogate, if_match): - if isinstance(distributed_database_id, six.string_types) and len(distributed_database_id.strip()) == 0: + if isinstance(distributed_database_id, str) and len(distributed_database_id.strip()) == 0: raise click.UsageError('Parameter --distributed-database-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/distributed_database_v26/src/oci_cli_distributed_db_work_request_service/generated/distributeddbworkrequestservice_cli.py b/services/distributed_database_v26/src/oci_cli_distributed_db_work_request_service/generated/distributeddbworkrequestservice_cli.py index 84405389b..fd783173f 100644 --- a/services/distributed_database_v26/src/oci_cli_distributed_db_work_request_service/generated/distributeddbworkrequestservice_cli.py +++ b/services/distributed_database_v26/src/oci_cli_distributed_db_work_request_service/generated/distributeddbworkrequestservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -55,7 +54,7 @@ def work_request_group(): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -86,7 +85,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -143,7 +142,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/dns/src/oci_cli_dns/generated/dns_cli.py b/services/dns/src/oci_cli_dns/generated/dns_cli.py index 7a8819ad4..48cb76883 100644 --- a/services/dns/src/oci_cli_dns/generated/dns_cli.py +++ b/services/dns/src/oci_cli_dns/generated/dns_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -124,7 +123,7 @@ def records_group(): @cli_util.wrap_exceptions def change_resolver_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resolver_id, compartment_id, if_match, scope): - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') kwargs = {} @@ -196,7 +195,7 @@ def change_resolver_compartment(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def change_steering_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, steering_policy_id, compartment_id, if_match, scope): - if isinstance(steering_policy_id, six.string_types) and len(steering_policy_id.strip()) == 0: + if isinstance(steering_policy_id, str) and len(steering_policy_id.strip()) == 0: raise click.UsageError('Parameter --steering-policy-id cannot be whitespace or empty string') kwargs = {} @@ -265,7 +264,7 @@ def change_steering_policy_compartment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def change_tsig_key_compartment(ctx, from_json, tsig_key_id, compartment_id, if_match, scope): - if isinstance(tsig_key_id, six.string_types) and len(tsig_key_id.strip()) == 0: + if isinstance(tsig_key_id, str) and len(tsig_key_id.strip()) == 0: raise click.UsageError('Parameter --tsig-key-id cannot be whitespace or empty string') kwargs = {} @@ -304,7 +303,7 @@ def change_tsig_key_compartment(ctx, from_json, tsig_key_id, compartment_id, if_ @cli_util.wrap_exceptions def change_view_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, view_id, compartment_id, if_match, scope): - if isinstance(view_id, six.string_types) and len(view_id.strip()) == 0: + if isinstance(view_id, str) and len(view_id.strip()) == 0: raise click.UsageError('Parameter --view-id cannot be whitespace or empty string') kwargs = {} @@ -380,7 +379,7 @@ def change_view_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def change_zone_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, zone_id, compartment_id, if_match, scope): - if isinstance(zone_id, six.string_types) and len(zone_id.strip()) == 0: + if isinstance(zone_id, str) and len(zone_id.strip()) == 0: raise click.UsageError('Parameter --zone-id cannot be whitespace or empty string') kwargs = {} @@ -458,7 +457,7 @@ def change_zone_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def create_resolver_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resolver_id, name, is_forwarding, is_listening, endpoint_type, forwarding_address, listening_address, freeform_tags, defined_tags, scope): - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') kwargs = {} @@ -541,7 +540,7 @@ def create_resolver_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def create_resolver_endpoint_create_resolver_vnic_endpoint_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resolver_id, name, is_forwarding, is_listening, subnet_id, forwarding_address, listening_address, freeform_tags, defined_tags, nsg_ids, security_attributes, scope): - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') kwargs = {} @@ -1263,10 +1262,10 @@ def create_zone_from_zone_file(ctx, from_json, compartment_id, create_zone_from_ @cli_util.wrap_exceptions def delete_domain_records(ctx, from_json, zone_name_or_id, domain, if_match, if_unmodified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') - if isinstance(domain, six.string_types) and len(domain.strip()) == 0: + if isinstance(domain, str) and len(domain.strip()) == 0: raise click.UsageError('Parameter --domain cannot be whitespace or empty string') kwargs = {} @@ -1309,10 +1308,10 @@ def delete_domain_records(ctx, from_json, zone_name_or_id, domain, if_match, if_ @cli_util.wrap_exceptions def delete_resolver_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resolver_id, resolver_endpoint_name, if_match, if_unmodified_since, scope): - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') - if isinstance(resolver_endpoint_name, six.string_types) and len(resolver_endpoint_name.strip()) == 0: + if isinstance(resolver_endpoint_name, str) and len(resolver_endpoint_name.strip()) == 0: raise click.UsageError('Parameter --resolver-endpoint-name cannot be whitespace or empty string') kwargs = {} @@ -1381,13 +1380,13 @@ def delete_resolver_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_rr_set(ctx, from_json, zone_name_or_id, domain, rtype, if_match, if_unmodified_since, compartment_id, scope, view_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') - if isinstance(domain, six.string_types) and len(domain.strip()) == 0: + if isinstance(domain, str) and len(domain.strip()) == 0: raise click.UsageError('Parameter --domain cannot be whitespace or empty string') - if isinstance(rtype, six.string_types) and len(rtype.strip()) == 0: + if isinstance(rtype, str) and len(rtype.strip()) == 0: raise click.UsageError('Parameter --rtype cannot be whitespace or empty string') kwargs = {} @@ -1430,7 +1429,7 @@ def delete_rr_set(ctx, from_json, zone_name_or_id, domain, rtype, if_match, if_u @cli_util.wrap_exceptions def delete_steering_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, steering_policy_id, if_match, if_unmodified_since, scope): - if isinstance(steering_policy_id, six.string_types) and len(steering_policy_id.strip()) == 0: + if isinstance(steering_policy_id, str) and len(steering_policy_id.strip()) == 0: raise click.UsageError('Parameter --steering-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1493,7 +1492,7 @@ def delete_steering_policy(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_steering_policy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, steering_policy_attachment_id, if_match, if_unmodified_since, scope): - if isinstance(steering_policy_attachment_id, six.string_types) and len(steering_policy_attachment_id.strip()) == 0: + if isinstance(steering_policy_attachment_id, str) and len(steering_policy_attachment_id.strip()) == 0: raise click.UsageError('Parameter --steering-policy-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -1556,7 +1555,7 @@ def delete_steering_policy_attachment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_tsig_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tsig_key_id, if_match, if_unmodified_since, scope): - if isinstance(tsig_key_id, six.string_types) and len(tsig_key_id.strip()) == 0: + if isinstance(tsig_key_id, str) and len(tsig_key_id.strip()) == 0: raise click.UsageError('Parameter --tsig-key-id cannot be whitespace or empty string') kwargs = {} @@ -1621,7 +1620,7 @@ def delete_tsig_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_view(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, view_id, if_match, if_unmodified_since, scope): - if isinstance(view_id, six.string_types) and len(view_id.strip()) == 0: + if isinstance(view_id, str) and len(view_id.strip()) == 0: raise click.UsageError('Parameter --view-id cannot be whitespace or empty string') kwargs = {} @@ -1690,7 +1689,7 @@ def delete_view(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_zone(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, zone_name_or_id, if_match, if_unmodified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -1771,10 +1770,10 @@ def get_domain_records(ctx, from_json, all_pages, page_size, zone_name_or_id, do if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') - if isinstance(domain, six.string_types) and len(domain.strip()) == 0: + if isinstance(domain, str) and len(domain.strip()) == 0: raise click.UsageError('Parameter --domain cannot be whitespace or empty string') kwargs = {} @@ -1844,7 +1843,7 @@ def get_domain_records(ctx, from_json, all_pages, page_size, zone_name_or_id, do @cli_util.wrap_exceptions def get_resolver(ctx, from_json, resolver_id, if_modified_since, if_none_match, scope): - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') kwargs = {} @@ -1878,10 +1877,10 @@ def get_resolver(ctx, from_json, resolver_id, if_modified_since, if_none_match, @cli_util.wrap_exceptions def get_resolver_endpoint(ctx, from_json, resolver_id, resolver_endpoint_name, if_modified_since, if_none_match, scope): - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') - if isinstance(resolver_endpoint_name, six.string_types) and len(resolver_endpoint_name.strip()) == 0: + if isinstance(resolver_endpoint_name, str) and len(resolver_endpoint_name.strip()) == 0: raise click.UsageError('Parameter --resolver-endpoint-name cannot be whitespace or empty string') kwargs = {} @@ -1929,13 +1928,13 @@ def get_rr_set(ctx, from_json, all_pages, page_size, zone_name_or_id, domain, rt if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') - if isinstance(domain, six.string_types) and len(domain.strip()) == 0: + if isinstance(domain, str) and len(domain.strip()) == 0: raise click.UsageError('Parameter --domain cannot be whitespace or empty string') - if isinstance(rtype, six.string_types) and len(rtype.strip()) == 0: + if isinstance(rtype, str) and len(rtype.strip()) == 0: raise click.UsageError('Parameter --rtype cannot be whitespace or empty string') kwargs = {} @@ -2000,7 +1999,7 @@ def get_rr_set(ctx, from_json, all_pages, page_size, zone_name_or_id, domain, rt @cli_util.wrap_exceptions def get_steering_policy(ctx, from_json, steering_policy_id, if_none_match, if_modified_since, scope): - if isinstance(steering_policy_id, six.string_types) and len(steering_policy_id.strip()) == 0: + if isinstance(steering_policy_id, str) and len(steering_policy_id.strip()) == 0: raise click.UsageError('Parameter --steering-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2031,7 +2030,7 @@ def get_steering_policy(ctx, from_json, steering_policy_id, if_none_match, if_mo @cli_util.wrap_exceptions def get_steering_policy_attachment(ctx, from_json, steering_policy_attachment_id, if_none_match, if_modified_since, scope): - if isinstance(steering_policy_attachment_id, six.string_types) and len(steering_policy_attachment_id.strip()) == 0: + if isinstance(steering_policy_attachment_id, str) and len(steering_policy_attachment_id.strip()) == 0: raise click.UsageError('Parameter --steering-policy-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -2062,7 +2061,7 @@ def get_steering_policy_attachment(ctx, from_json, steering_policy_attachment_id @cli_util.wrap_exceptions def get_tsig_key(ctx, from_json, tsig_key_id, if_none_match, if_modified_since, scope): - if isinstance(tsig_key_id, six.string_types) and len(tsig_key_id.strip()) == 0: + if isinstance(tsig_key_id, str) and len(tsig_key_id.strip()) == 0: raise click.UsageError('Parameter --tsig-key-id cannot be whitespace or empty string') kwargs = {} @@ -2095,7 +2094,7 @@ def get_tsig_key(ctx, from_json, tsig_key_id, if_none_match, if_modified_since, @cli_util.wrap_exceptions def get_view(ctx, from_json, view_id, if_modified_since, if_none_match, scope): - if isinstance(view_id, six.string_types) and len(view_id.strip()) == 0: + if isinstance(view_id, str) and len(view_id.strip()) == 0: raise click.UsageError('Parameter --view-id cannot be whitespace or empty string') kwargs = {} @@ -2132,7 +2131,7 @@ def get_view(ctx, from_json, view_id, if_modified_since, if_none_match, scope): @cli_util.wrap_exceptions def get_zone(ctx, from_json, zone_name_or_id, if_none_match, if_modified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -2169,7 +2168,7 @@ def get_zone(ctx, from_json, zone_name_or_id, if_none_match, if_modified_since, @cli_util.wrap_exceptions def get_zone_content(ctx, from_json, file, zone_name_or_id, if_none_match, if_modified_since, scope, view_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -2243,7 +2242,7 @@ def get_zone_records(ctx, from_json, all_pages, page_size, zone_name_or_id, if_n if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -2321,7 +2320,7 @@ def list_resolver_endpoints(ctx, from_json, all_pages, page_size, resolver_id, n if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') kwargs = {} @@ -2874,10 +2873,10 @@ def list_zones(ctx, from_json, all_pages, page_size, compartment_id, limit, page @cli_util.wrap_exceptions def patch_domain_records(ctx, from_json, zone_name_or_id, domain, items, if_match, if_unmodified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') - if isinstance(domain, six.string_types) and len(domain.strip()) == 0: + if isinstance(domain, str) and len(domain.strip()) == 0: raise click.UsageError('Parameter --domain cannot be whitespace or empty string') kwargs = {} @@ -2931,13 +2930,13 @@ def patch_domain_records(ctx, from_json, zone_name_or_id, domain, items, if_matc @cli_util.wrap_exceptions def patch_rr_set(ctx, from_json, zone_name_or_id, domain, rtype, items, if_match, if_unmodified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') - if isinstance(domain, six.string_types) and len(domain.strip()) == 0: + if isinstance(domain, str) and len(domain.strip()) == 0: raise click.UsageError('Parameter --domain cannot be whitespace or empty string') - if isinstance(rtype, six.string_types) and len(rtype.strip()) == 0: + if isinstance(rtype, str) and len(rtype.strip()) == 0: raise click.UsageError('Parameter --rtype cannot be whitespace or empty string') kwargs = {} @@ -2990,7 +2989,7 @@ def patch_rr_set(ctx, from_json, zone_name_or_id, domain, rtype, items, if_match @cli_util.wrap_exceptions def patch_zone_records(ctx, from_json, zone_name_or_id, items, if_match, if_unmodified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -3042,7 +3041,7 @@ def patch_zone_records(ctx, from_json, zone_name_or_id, items, if_match, if_unmo @cli_util.wrap_exceptions def promote_zone_dnssec_key_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, zone_id, dnssec_key_version_uuid, if_match, if_unmodified_since, scope): - if isinstance(zone_id, six.string_types) and len(zone_id.strip()) == 0: + if isinstance(zone_id, str) and len(zone_id.strip()) == 0: raise click.UsageError('Parameter --zone-id cannot be whitespace or empty string') kwargs = {} @@ -3119,7 +3118,7 @@ def promote_zone_dnssec_key_version(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def stage_zone_dnssec_key_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, zone_id, predecessor_dnssec_key_version_uuid, if_match, if_unmodified_since, scope): - if isinstance(zone_id, six.string_types) and len(zone_id.strip()) == 0: + if isinstance(zone_id, str) and len(zone_id.strip()) == 0: raise click.UsageError('Parameter --zone-id cannot be whitespace or empty string') kwargs = {} @@ -3201,10 +3200,10 @@ def stage_zone_dnssec_key_version(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_domain_records(ctx, from_json, force, zone_name_or_id, domain, items, if_match, if_unmodified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') - if isinstance(domain, six.string_types) and len(domain.strip()) == 0: + if isinstance(domain, str) and len(domain.strip()) == 0: raise click.UsageError('Parameter --domain cannot be whitespace or empty string') if not force: if items: @@ -3268,7 +3267,7 @@ def update_domain_records(ctx, from_json, force, zone_name_or_id, domain, items, @cli_util.wrap_exceptions def update_resolver(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, resolver_id, display_name, freeform_tags, defined_tags, attached_views, rules, if_match, if_unmodified_since, scope): - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or attached_views or rules: @@ -3353,10 +3352,10 @@ def update_resolver(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_resolver_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, resolver_id, resolver_endpoint_name, endpoint_type, freeform_tags, defined_tags, if_match, if_unmodified_since, scope): - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') - if isinstance(resolver_endpoint_name, six.string_types) and len(resolver_endpoint_name.strip()) == 0: + if isinstance(resolver_endpoint_name, str) and len(resolver_endpoint_name.strip()) == 0: raise click.UsageError('Parameter --resolver-endpoint-name cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3437,10 +3436,10 @@ def update_resolver_endpoint(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_resolver_endpoint_update_resolver_vnic_endpoint_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, resolver_id, resolver_endpoint_name, freeform_tags, defined_tags, nsg_ids, security_attributes, if_match, if_unmodified_since, scope): - if isinstance(resolver_id, six.string_types) and len(resolver_id.strip()) == 0: + if isinstance(resolver_id, str) and len(resolver_id.strip()) == 0: raise click.UsageError('Parameter --resolver-id cannot be whitespace or empty string') - if isinstance(resolver_endpoint_name, six.string_types) and len(resolver_endpoint_name.strip()) == 0: + if isinstance(resolver_endpoint_name, str) and len(resolver_endpoint_name.strip()) == 0: raise click.UsageError('Parameter --resolver-endpoint-name cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -3529,13 +3528,13 @@ def update_resolver_endpoint_update_resolver_vnic_endpoint_details(ctx, from_jso @cli_util.wrap_exceptions def update_rr_set(ctx, from_json, force, zone_name_or_id, domain, rtype, items, if_match, if_unmodified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') - if isinstance(domain, six.string_types) and len(domain.strip()) == 0: + if isinstance(domain, str) and len(domain.strip()) == 0: raise click.UsageError('Parameter --domain cannot be whitespace or empty string') - if isinstance(rtype, six.string_types) and len(rtype.strip()) == 0: + if isinstance(rtype, str) and len(rtype.strip()) == 0: raise click.UsageError('Parameter --rtype cannot be whitespace or empty string') if not force: if items: @@ -3627,7 +3626,7 @@ def update_rr_set(ctx, from_json, force, zone_name_or_id, domain, rtype, items, @cli_util.wrap_exceptions def update_steering_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, steering_policy_id, display_name, ttl, health_check_monitor_id, template, freeform_tags, defined_tags, answers, rules, if_match, if_unmodified_since, scope): - if isinstance(steering_policy_id, six.string_types) and len(steering_policy_id.strip()) == 0: + if isinstance(steering_policy_id, str) and len(steering_policy_id.strip()) == 0: raise click.UsageError('Parameter --steering-policy-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or answers or rules: @@ -3717,7 +3716,7 @@ def update_steering_policy(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_steering_policy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, steering_policy_attachment_id, display_name, if_match, if_unmodified_since, scope): - if isinstance(steering_policy_attachment_id, six.string_types) and len(steering_policy_attachment_id.strip()) == 0: + if isinstance(steering_policy_attachment_id, str) and len(steering_policy_attachment_id.strip()) == 0: raise click.UsageError('Parameter --steering-policy-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -3788,7 +3787,7 @@ def update_steering_policy_attachment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_tsig_key(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tsig_key_id, freeform_tags, defined_tags, if_match, if_unmodified_since, scope): - if isinstance(tsig_key_id, six.string_types) and len(tsig_key_id.strip()) == 0: + if isinstance(tsig_key_id, str) and len(tsig_key_id.strip()) == 0: raise click.UsageError('Parameter --tsig-key-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3867,7 +3866,7 @@ def update_tsig_key(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_view(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, view_id, display_name, freeform_tags, defined_tags, if_match, if_unmodified_since, scope): - if isinstance(view_id, six.string_types) and len(view_id.strip()) == 0: + if isinstance(view_id, str) and len(view_id.strip()) == 0: raise click.UsageError('Parameter --view-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3974,7 +3973,7 @@ def update_view(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_zone(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, zone_name_or_id, freeform_tags, defined_tags, resolution_mode, dnssec_state, external_masters, external_downstreams, if_match, if_unmodified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or external_masters or external_downstreams: @@ -4068,7 +4067,7 @@ def update_zone(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_zone_records(ctx, from_json, force, zone_name_or_id, items, if_match, if_unmodified_since, scope, view_id, compartment_id): - if isinstance(zone_name_or_id, six.string_types) and len(zone_name_or_id.strip()) == 0: + if isinstance(zone_name_or_id, str) and len(zone_name_or_id.strip()) == 0: raise click.UsageError('Parameter --zone-name-or-id cannot be whitespace or empty string') if not force: if items: diff --git a/services/em_warehouse/src/oci_cli_em_warehouse/generated/emwarehouse_cli.py b/services/em_warehouse/src/oci_cli_em_warehouse/generated/emwarehouse_cli.py index c56050b8c..56d13f0b3 100644 --- a/services/em_warehouse/src/oci_cli_em_warehouse/generated/emwarehouse_cli.py +++ b/services/em_warehouse/src/oci_cli_em_warehouse/generated/emwarehouse_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -84,7 +83,7 @@ def etl_run_collection_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -113,7 +112,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_em_warehouse_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, em_warehouse_id, compartment_id, if_match): - if isinstance(em_warehouse_id, six.string_types) and len(em_warehouse_id.strip()) == 0: + if isinstance(em_warehouse_id, str) and len(em_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --em-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -243,7 +242,7 @@ def create_em_warehouse(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_em_warehouse(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, em_warehouse_id, if_match): - if isinstance(em_warehouse_id, six.string_types) and len(em_warehouse_id.strip()) == 0: + if isinstance(em_warehouse_id, str) and len(em_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --em-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -294,7 +293,7 @@ def delete_em_warehouse(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_em_warehouse(ctx, from_json, em_warehouse_id): - if isinstance(em_warehouse_id, six.string_types) and len(em_warehouse_id.strip()) == 0: + if isinstance(em_warehouse_id, str) and len(em_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --em-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -316,7 +315,7 @@ def get_em_warehouse(ctx, from_json, em_warehouse_id): @cli_util.wrap_exceptions def get_em_warehouse_resource_usage(ctx, from_json, em_warehouse_id): - if isinstance(em_warehouse_id, six.string_types) and len(em_warehouse_id.strip()) == 0: + if isinstance(em_warehouse_id, str) and len(em_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --em-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -338,7 +337,7 @@ def get_em_warehouse_resource_usage(ctx, from_json, em_warehouse_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -436,7 +435,7 @@ def list_etl_runs(ctx, from_json, all_pages, page_size, em_warehouse_id, compart if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(em_warehouse_id, six.string_types) and len(em_warehouse_id.strip()) == 0: + if isinstance(em_warehouse_id, str) and len(em_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --em-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -497,7 +496,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -554,7 +553,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -673,7 +672,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_em_warehouse(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, em_warehouse_id, compartment_id, em_bridge_id, freeform_tags, defined_tags, if_match): - if isinstance(em_warehouse_id, six.string_types) and len(em_warehouse_id.strip()) == 0: + if isinstance(em_warehouse_id, str) and len(em_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --em-warehouse-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/email/src/oci_cli_email/generated/email_cli.py b/services/email/src/oci_cli_email/generated/email_cli.py index ab0765b16..7d4b6f380 100644 --- a/services/email/src/oci_cli_email/generated/email_cli.py +++ b/services/email/src/oci_cli_email/generated/email_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -136,7 +135,7 @@ def work_request_log_entry_collection_group(): @cli_util.wrap_exceptions def add_email_domain_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_domain_id, type, compartment_id, related_resource_id, message, if_match): - if isinstance(email_domain_id, six.string_types) and len(email_domain_id.strip()) == 0: + if isinstance(email_domain_id, str) and len(email_domain_id.strip()) == 0: raise click.UsageError('Parameter --email-domain-id cannot be whitespace or empty string') kwargs = {} @@ -205,7 +204,7 @@ def add_email_domain_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def add_email_ip_pool_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_ip_pool_id, type, compartment_id, related_resource_id, message, if_match): - if isinstance(email_ip_pool_id, six.string_types) and len(email_ip_pool_id.strip()) == 0: + if isinstance(email_ip_pool_id, str) and len(email_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --email-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -271,7 +270,7 @@ def add_email_ip_pool_lock(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def add_email_outbound_ip(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, outbound_ips, email_ip_pool_id, if_match): - if isinstance(email_ip_pool_id, six.string_types) and len(email_ip_pool_id.strip()) == 0: + if isinstance(email_ip_pool_id, str) and len(email_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --email-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -335,7 +334,7 @@ def add_email_outbound_ip(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def add_return_path_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_return_path_id, type, compartment_id, related_resource_id, message, if_match): - if isinstance(email_return_path_id, six.string_types) and len(email_return_path_id.strip()) == 0: + if isinstance(email_return_path_id, str) and len(email_return_path_id.strip()) == 0: raise click.UsageError('Parameter --email-return-path-id cannot be whitespace or empty string') kwargs = {} @@ -404,7 +403,7 @@ def add_return_path_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def add_sender_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sender_id, type, compartment_id, related_resource_id, message, if_match): - if isinstance(sender_id, six.string_types) and len(sender_id.strip()) == 0: + if isinstance(sender_id, str) and len(sender_id.strip()) == 0: raise click.UsageError('Parameter --sender-id cannot be whitespace or empty string') kwargs = {} @@ -473,7 +472,7 @@ def add_sender_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def change_email_domain_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_domain_id, compartment_id, if_match, is_lock_override): - if isinstance(email_domain_id, six.string_types) and len(email_domain_id.strip()) == 0: + if isinstance(email_domain_id, str) and len(email_domain_id.strip()) == 0: raise click.UsageError('Parameter --email-domain-id cannot be whitespace or empty string') kwargs = {} @@ -537,7 +536,7 @@ def change_email_domain_compartment(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def change_email_ip_pool_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_ip_pool_id, compartment_id, if_match, is_lock_override): - if isinstance(email_ip_pool_id, six.string_types) and len(email_ip_pool_id.strip()) == 0: + if isinstance(email_ip_pool_id, str) and len(email_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --email-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -598,7 +597,7 @@ def change_email_ip_pool_compartment(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def change_sender_compartment(ctx, from_json, sender_id, compartment_id, if_match, is_lock_override): - if isinstance(sender_id, six.string_types) and len(sender_id.strip()) == 0: + if isinstance(sender_id, str) and len(sender_id.strip()) == 0: raise click.UsageError('Parameter --sender-id cannot be whitespace or empty string') kwargs = {} @@ -1034,7 +1033,7 @@ def create_suppression(ctx, from_json, compartment_id, email_address): @cli_util.wrap_exceptions def delete_dkim(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dkim_id, if_match): - if isinstance(dkim_id, six.string_types) and len(dkim_id.strip()) == 0: + if isinstance(dkim_id, str) and len(dkim_id.strip()) == 0: raise click.UsageError('Parameter --dkim-id cannot be whitespace or empty string') kwargs = {} @@ -1091,7 +1090,7 @@ def delete_dkim(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_email_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_domain_id, if_match, is_lock_override): - if isinstance(email_domain_id, six.string_types) and len(email_domain_id.strip()) == 0: + if isinstance(email_domain_id, str) and len(email_domain_id.strip()) == 0: raise click.UsageError('Parameter --email-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1150,7 +1149,7 @@ def delete_email_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_email_ip_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_ip_pool_id, if_match, is_lock_override): - if isinstance(email_ip_pool_id, six.string_types) and len(email_ip_pool_id.strip()) == 0: + if isinstance(email_ip_pool_id, str) and len(email_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --email-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1209,7 +1208,7 @@ def delete_email_ip_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_email_return_path(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_return_path_id, if_match, is_lock_override): - if isinstance(email_return_path_id, six.string_types) and len(email_return_path_id.strip()) == 0: + if isinstance(email_return_path_id, str) and len(email_return_path_id.strip()) == 0: raise click.UsageError('Parameter --email-return-path-id cannot be whitespace or empty string') kwargs = {} @@ -1268,7 +1267,7 @@ def delete_email_return_path(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_sender(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sender_id, if_match, is_lock_override): - if isinstance(sender_id, six.string_types) and len(sender_id.strip()) == 0: + if isinstance(sender_id, str) and len(sender_id.strip()) == 0: raise click.UsageError('Parameter --sender-id cannot be whitespace or empty string') kwargs = {} @@ -1330,7 +1329,7 @@ def delete_sender(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_suppression(ctx, from_json, suppression_id): - if isinstance(suppression_id, six.string_types) and len(suppression_id.strip()) == 0: + if isinstance(suppression_id, str) and len(suppression_id.strip()) == 0: raise click.UsageError('Parameter --suppression-id cannot be whitespace or empty string') kwargs = {} @@ -1352,7 +1351,7 @@ def delete_suppression(ctx, from_json, suppression_id): @cli_util.wrap_exceptions def get_dkim(ctx, from_json, dkim_id): - if isinstance(dkim_id, six.string_types) and len(dkim_id.strip()) == 0: + if isinstance(dkim_id, str) and len(dkim_id.strip()) == 0: raise click.UsageError('Parameter --dkim-id cannot be whitespace or empty string') kwargs = {} @@ -1393,7 +1392,7 @@ def get_email_configuration(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_email_domain(ctx, from_json, email_domain_id): - if isinstance(email_domain_id, six.string_types) and len(email_domain_id.strip()) == 0: + if isinstance(email_domain_id, str) and len(email_domain_id.strip()) == 0: raise click.UsageError('Parameter --email-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1415,7 +1414,7 @@ def get_email_domain(ctx, from_json, email_domain_id): @cli_util.wrap_exceptions def get_email_ip_pool(ctx, from_json, email_ip_pool_id): - if isinstance(email_ip_pool_id, six.string_types) and len(email_ip_pool_id.strip()) == 0: + if isinstance(email_ip_pool_id, str) and len(email_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --email-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -1437,7 +1436,7 @@ def get_email_ip_pool(ctx, from_json, email_ip_pool_id): @cli_util.wrap_exceptions def get_email_return_path(ctx, from_json, email_return_path_id): - if isinstance(email_return_path_id, six.string_types) and len(email_return_path_id.strip()) == 0: + if isinstance(email_return_path_id, str) and len(email_return_path_id.strip()) == 0: raise click.UsageError('Parameter --email-return-path-id cannot be whitespace or empty string') kwargs = {} @@ -1459,7 +1458,7 @@ def get_email_return_path(ctx, from_json, email_return_path_id): @cli_util.wrap_exceptions def get_sender(ctx, from_json, sender_id): - if isinstance(sender_id, six.string_types) and len(sender_id.strip()) == 0: + if isinstance(sender_id, str) and len(sender_id.strip()) == 0: raise click.UsageError('Parameter --sender-id cannot be whitespace or empty string') kwargs = {} @@ -1481,7 +1480,7 @@ def get_sender(ctx, from_json, sender_id): @cli_util.wrap_exceptions def get_suppression(ctx, from_json, suppression_id): - if isinstance(suppression_id, six.string_types) and len(suppression_id.strip()) == 0: + if isinstance(suppression_id, str) and len(suppression_id.strip()) == 0: raise click.UsageError('Parameter --suppression-id cannot be whitespace or empty string') kwargs = {} @@ -1503,7 +1502,7 @@ def get_suppression(ctx, from_json, suppression_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2000,7 +1999,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2057,7 +2056,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2174,7 +2173,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def remove_email_domain_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_domain_id, type, compartment_id, if_match): - if isinstance(email_domain_id, six.string_types) and len(email_domain_id.strip()) == 0: + if isinstance(email_domain_id, str) and len(email_domain_id.strip()) == 0: raise click.UsageError('Parameter --email-domain-id cannot be whitespace or empty string') kwargs = {} @@ -2235,7 +2234,7 @@ def remove_email_domain_lock(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def remove_email_ip_pool_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_ip_pool_id, type, compartment_id, if_match): - if isinstance(email_ip_pool_id, six.string_types) and len(email_ip_pool_id.strip()) == 0: + if isinstance(email_ip_pool_id, str) and len(email_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --email-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -2295,7 +2294,7 @@ def remove_email_ip_pool_lock(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def remove_email_outbound_ip(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, outbound_ips, email_ip_pool_id, if_match): - if isinstance(email_ip_pool_id, six.string_types) and len(email_ip_pool_id.strip()) == 0: + if isinstance(email_ip_pool_id, str) and len(email_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --email-ip-pool-id cannot be whitespace or empty string') kwargs = {} @@ -2357,7 +2356,7 @@ def remove_email_outbound_ip(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def remove_return_path_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, email_return_path_id, type, compartment_id, if_match): - if isinstance(email_return_path_id, six.string_types) and len(email_return_path_id.strip()) == 0: + if isinstance(email_return_path_id, str) and len(email_return_path_id.strip()) == 0: raise click.UsageError('Parameter --email-return-path-id cannot be whitespace or empty string') kwargs = {} @@ -2418,7 +2417,7 @@ def remove_return_path_lock(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def remove_sender_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sender_id, type, compartment_id, if_match): - if isinstance(sender_id, six.string_types) and len(sender_id.strip()) == 0: + if isinstance(sender_id, str) and len(sender_id.strip()) == 0: raise click.UsageError('Parameter --sender-id cannot be whitespace or empty string') kwargs = {} @@ -2485,7 +2484,7 @@ def remove_sender_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_dkim(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dkim_id, description, freeform_tags, defined_tags, if_match): - if isinstance(dkim_id, six.string_types) and len(dkim_id.strip()) == 0: + if isinstance(dkim_id, str) and len(dkim_id.strip()) == 0: raise click.UsageError('Parameter --dkim-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2567,7 +2566,7 @@ def update_dkim(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_email_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, email_domain_id, domain_verification_id, description, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(email_domain_id, six.string_types) and len(email_domain_id.strip()) == 0: + if isinstance(email_domain_id, str) and len(email_domain_id.strip()) == 0: raise click.UsageError('Parameter --email-domain-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2654,7 +2653,7 @@ def update_email_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_email_ip_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, email_ip_pool_id, description, last_ip_drain_period_in_hours, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(email_ip_pool_id, six.string_types) and len(email_ip_pool_id.strip()) == 0: + if isinstance(email_ip_pool_id, str) and len(email_ip_pool_id.strip()) == 0: raise click.UsageError('Parameter --email-ip-pool-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2740,7 +2739,7 @@ def update_email_ip_pool(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_email_return_path(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, email_return_path_id, description, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(email_return_path_id, six.string_types) and len(email_return_path_id.strip()) == 0: + if isinstance(email_return_path_id, str) and len(email_return_path_id.strip()) == 0: raise click.UsageError('Parameter --email-return-path-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2823,7 +2822,7 @@ def update_email_return_path(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_sender(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sender_id, email_ip_pool_id, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(sender_id, six.string_types) and len(sender_id.strip()) == 0: + if isinstance(sender_id, str) and len(sender_id.strip()) == 0: raise click.UsageError('Parameter --sender-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/email_data_plane/src/oci_cli_email_dp/generated/emaildp_cli.py b/services/email_data_plane/src/oci_cli_email_dp/generated/emaildp_cli.py index 90126584c..b38939b3d 100644 --- a/services/email_data_plane/src/oci_cli_email_dp/generated/emaildp_cli.py +++ b/services/email_data_plane/src/oci_cli_email_dp/generated/emaildp_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 diff --git a/services/events/src/oci_cli_events/generated/events_cli.py b/services/events/src/oci_cli_events/generated/events_cli.py index b88353abb..04e9a27c2 100644 --- a/services/events/src/oci_cli_events/generated/events_cli.py +++ b/services/events/src/oci_cli_events/generated/events_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -43,7 +42,7 @@ def rule_group(): @cli_util.wrap_exceptions def change_rule_compartment(ctx, from_json, rule_id, compartment_id, if_match): - if isinstance(rule_id, six.string_types) and len(rule_id.strip()) == 0: + if isinstance(rule_id, str) and len(rule_id.strip()) == 0: raise click.UsageError('Parameter --rule-id cannot be whitespace or empty string') kwargs = {} @@ -162,7 +161,7 @@ def create_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, rule_id, if_match): - if isinstance(rule_id, six.string_types) and len(rule_id.strip()) == 0: + if isinstance(rule_id, str) and len(rule_id.strip()) == 0: raise click.UsageError('Parameter --rule-id cannot be whitespace or empty string') kwargs = {} @@ -221,7 +220,7 @@ def delete_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def get_rule(ctx, from_json, rule_id): - if isinstance(rule_id, six.string_types) and len(rule_id.strip()) == 0: + if isinstance(rule_id, str) and len(rule_id.strip()) == 0: raise click.UsageError('Parameter --rule-id cannot be whitespace or empty string') kwargs = {} @@ -341,7 +340,7 @@ def list_rules(ctx, from_json, all_pages, page_size, compartment_id, limit, page @cli_util.wrap_exceptions def update_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, rule_id, display_name, description, is_enabled, condition, actions, freeform_tags, defined_tags, if_match): - if isinstance(rule_id, six.string_types) and len(rule_id.strip()) == 0: + if isinstance(rule_id, str) and len(rule_id.strip()) == 0: raise click.UsageError('Parameter --rule-id cannot be whitespace or empty string') if not force: if actions or freeform_tags or defined_tags: diff --git a/services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py b/services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py index dbd5b46d1..7eb73f1b0 100644 --- a/services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py +++ b/services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -127,7 +126,7 @@ def snapshot_group(): @cli_util.wrap_exceptions def add_export_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, export_id, type, related_resource_id, message, time_created, if_match): - if isinstance(export_id, six.string_types) and len(export_id.strip()) == 0: + if isinstance(export_id, str) and len(export_id.strip()) == 0: raise click.UsageError('Parameter --export-id cannot be whitespace or empty string') kwargs = {} @@ -196,7 +195,7 @@ def add_export_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def add_file_system_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, file_system_id, type, related_resource_id, message, time_created, if_match): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -265,7 +264,7 @@ def add_file_system_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def add_filesystem_snapshot_policy_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, filesystem_snapshot_policy_id, type, related_resource_id, message, time_created, if_match): - if isinstance(filesystem_snapshot_policy_id, six.string_types) and len(filesystem_snapshot_policy_id.strip()) == 0: + if isinstance(filesystem_snapshot_policy_id, str) and len(filesystem_snapshot_policy_id.strip()) == 0: raise click.UsageError('Parameter --filesystem-snapshot-policy-id cannot be whitespace or empty string') kwargs = {} @@ -334,7 +333,7 @@ def add_filesystem_snapshot_policy_lock(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def add_mount_target_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mount_target_id, type, related_resource_id, message, time_created, if_match): - if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0: + if isinstance(mount_target_id, str) and len(mount_target_id.strip()) == 0: raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string') kwargs = {} @@ -403,7 +402,7 @@ def add_mount_target_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def add_outbound_connector_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, outbound_connector_id, type, related_resource_id, message, time_created, if_match): - if isinstance(outbound_connector_id, six.string_types) and len(outbound_connector_id.strip()) == 0: + if isinstance(outbound_connector_id, str) and len(outbound_connector_id.strip()) == 0: raise click.UsageError('Parameter --outbound-connector-id cannot be whitespace or empty string') kwargs = {} @@ -472,7 +471,7 @@ def add_outbound_connector_lock(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def add_replication_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, replication_id, type, related_resource_id, message, time_created, if_match): - if isinstance(replication_id, six.string_types) and len(replication_id.strip()) == 0: + if isinstance(replication_id, str) and len(replication_id.strip()) == 0: raise click.UsageError('Parameter --replication-id cannot be whitespace or empty string') kwargs = {} @@ -541,7 +540,7 @@ def add_replication_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def add_snapshot_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, snapshot_id, type, related_resource_id, message, time_created, if_match): - if isinstance(snapshot_id, six.string_types) and len(snapshot_id.strip()) == 0: + if isinstance(snapshot_id, str) and len(snapshot_id.strip()) == 0: raise click.UsageError('Parameter --snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -606,7 +605,7 @@ def add_snapshot_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def cancel_downgrade_shape_mount_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mount_target_id, if_match): - if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0: + if isinstance(mount_target_id, str) and len(mount_target_id.strip()) == 0: raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string') kwargs = {} @@ -656,7 +655,7 @@ def cancel_downgrade_shape_mount_target(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def change_file_system_compartment(ctx, from_json, file_system_id, compartment_id, if_match, is_lock_override): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -690,7 +689,7 @@ def change_file_system_compartment(ctx, from_json, file_system_id, compartment_i @cli_util.wrap_exceptions def change_filesystem_snapshot_policy_compartment(ctx, from_json, filesystem_snapshot_policy_id, compartment_id, if_match, is_lock_override): - if isinstance(filesystem_snapshot_policy_id, six.string_types) and len(filesystem_snapshot_policy_id.strip()) == 0: + if isinstance(filesystem_snapshot_policy_id, str) and len(filesystem_snapshot_policy_id.strip()) == 0: raise click.UsageError('Parameter --filesystem-snapshot-policy-id cannot be whitespace or empty string') kwargs = {} @@ -724,7 +723,7 @@ def change_filesystem_snapshot_policy_compartment(ctx, from_json, filesystem_sna @cli_util.wrap_exceptions def change_mount_target_compartment(ctx, from_json, mount_target_id, compartment_id, if_match, is_lock_override): - if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0: + if isinstance(mount_target_id, str) and len(mount_target_id.strip()) == 0: raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string') kwargs = {} @@ -758,7 +757,7 @@ def change_mount_target_compartment(ctx, from_json, mount_target_id, compartment @cli_util.wrap_exceptions def change_outbound_connector_compartment(ctx, from_json, outbound_connector_id, compartment_id, if_match, is_lock_override): - if isinstance(outbound_connector_id, six.string_types) and len(outbound_connector_id.strip()) == 0: + if isinstance(outbound_connector_id, str) and len(outbound_connector_id.strip()) == 0: raise click.UsageError('Parameter --outbound-connector-id cannot be whitespace or empty string') kwargs = {} @@ -792,7 +791,7 @@ def change_outbound_connector_compartment(ctx, from_json, outbound_connector_id, @cli_util.wrap_exceptions def change_replication_compartment(ctx, from_json, replication_id, compartment_id, if_match, is_lock_override): - if isinstance(replication_id, six.string_types) and len(replication_id.strip()) == 0: + if isinstance(replication_id, str) and len(replication_id.strip()) == 0: raise click.UsageError('Parameter --replication-id cannot be whitespace or empty string') kwargs = {} @@ -1420,7 +1419,7 @@ def create_outbound_connector_create_ldap_bind_account_details(ctx, from_json, w @cli_util.wrap_exceptions def create_quota_rule(ctx, from_json, principal_type, is_hard_quota, quota_limit_in_gigabytes, file_system_id, principal_id, display_name, if_match): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -1621,7 +1620,7 @@ def create_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_export(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, export_id, if_match, is_lock_override): - if isinstance(export_id, six.string_types) and len(export_id.strip()) == 0: + if isinstance(export_id, str) and len(export_id.strip()) == 0: raise click.UsageError('Parameter --export-id cannot be whitespace or empty string') kwargs = {} @@ -1689,7 +1688,7 @@ def delete_export(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_file_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, file_system_id, if_match, is_lock_override, can_detach_child_file_system): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -1758,7 +1757,7 @@ def delete_file_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_filesystem_snapshot_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, filesystem_snapshot_policy_id, if_match, is_lock_override): - if isinstance(filesystem_snapshot_policy_id, six.string_types) and len(filesystem_snapshot_policy_id.strip()) == 0: + if isinstance(filesystem_snapshot_policy_id, str) and len(filesystem_snapshot_policy_id.strip()) == 0: raise click.UsageError('Parameter --filesystem-snapshot-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1825,7 +1824,7 @@ def delete_filesystem_snapshot_policy(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_mount_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mount_target_id, if_match, is_lock_override): - if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0: + if isinstance(mount_target_id, str) and len(mount_target_id.strip()) == 0: raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string') kwargs = {} @@ -1892,7 +1891,7 @@ def delete_mount_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_outbound_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, outbound_connector_id, if_match, is_lock_override): - if isinstance(outbound_connector_id, six.string_types) and len(outbound_connector_id.strip()) == 0: + if isinstance(outbound_connector_id, str) and len(outbound_connector_id.strip()) == 0: raise click.UsageError('Parameter --outbound-connector-id cannot be whitespace or empty string') kwargs = {} @@ -1956,10 +1955,10 @@ def delete_outbound_connector(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_quota_rule(ctx, from_json, file_system_id, quota_rule_id, if_match): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') - if isinstance(quota_rule_id, six.string_types) and len(quota_rule_id.strip()) == 0: + if isinstance(quota_rule_id, str) and len(quota_rule_id.strip()) == 0: raise click.UsageError('Parameter --quota-rule-id cannot be whitespace or empty string') kwargs = {} @@ -1991,7 +1990,7 @@ def delete_quota_rule(ctx, from_json, file_system_id, quota_rule_id, if_match): @cli_util.wrap_exceptions def delete_replication(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, replication_id, if_match, delete_mode, is_lock_override): - if isinstance(replication_id, six.string_types) and len(replication_id.strip()) == 0: + if isinstance(replication_id, str) and len(replication_id.strip()) == 0: raise click.UsageError('Parameter --replication-id cannot be whitespace or empty string') kwargs = {} @@ -2060,7 +2059,7 @@ def delete_replication(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_replication_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, replication_target_id, if_match, is_lock_override): - if isinstance(replication_target_id, six.string_types) and len(replication_target_id.strip()) == 0: + if isinstance(replication_target_id, str) and len(replication_target_id.strip()) == 0: raise click.UsageError('Parameter --replication-target-id cannot be whitespace or empty string') kwargs = {} @@ -2127,7 +2126,7 @@ def delete_replication_target(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, snapshot_id, if_match, is_lock_override): - if isinstance(snapshot_id, six.string_types) and len(snapshot_id.strip()) == 0: + if isinstance(snapshot_id, str) and len(snapshot_id.strip()) == 0: raise click.UsageError('Parameter --snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -2189,7 +2188,7 @@ def delete_snapshot(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def detach_clone(ctx, from_json, file_system_id, if_match): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -2215,7 +2214,7 @@ def detach_clone(ctx, from_json, file_system_id, if_match): @cli_util.wrap_exceptions def estimate_replication(ctx, from_json, file_system_id, if_match, change_rate_in_m_bps): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -2241,7 +2240,7 @@ def estimate_replication(ctx, from_json, file_system_id, if_match, change_rate_i @cli_util.wrap_exceptions def get_export(ctx, from_json, export_id): - if isinstance(export_id, six.string_types) and len(export_id.strip()) == 0: + if isinstance(export_id, str) and len(export_id.strip()) == 0: raise click.UsageError('Parameter --export-id cannot be whitespace or empty string') kwargs = {} @@ -2263,7 +2262,7 @@ def get_export(ctx, from_json, export_id): @cli_util.wrap_exceptions def get_export_set(ctx, from_json, export_set_id): - if isinstance(export_set_id, six.string_types) and len(export_set_id.strip()) == 0: + if isinstance(export_set_id, str) and len(export_set_id.strip()) == 0: raise click.UsageError('Parameter --export-set-id cannot be whitespace or empty string') kwargs = {} @@ -2285,7 +2284,7 @@ def get_export_set(ctx, from_json, export_set_id): @cli_util.wrap_exceptions def get_file_system(ctx, from_json, file_system_id): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -2307,7 +2306,7 @@ def get_file_system(ctx, from_json, file_system_id): @cli_util.wrap_exceptions def get_filesystem_snapshot_policy(ctx, from_json, filesystem_snapshot_policy_id): - if isinstance(filesystem_snapshot_policy_id, six.string_types) and len(filesystem_snapshot_policy_id.strip()) == 0: + if isinstance(filesystem_snapshot_policy_id, str) and len(filesystem_snapshot_policy_id.strip()) == 0: raise click.UsageError('Parameter --filesystem-snapshot-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2329,7 +2328,7 @@ def get_filesystem_snapshot_policy(ctx, from_json, filesystem_snapshot_policy_id @cli_util.wrap_exceptions def get_mount_target(ctx, from_json, mount_target_id): - if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0: + if isinstance(mount_target_id, str) and len(mount_target_id.strip()) == 0: raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string') kwargs = {} @@ -2351,7 +2350,7 @@ def get_mount_target(ctx, from_json, mount_target_id): @cli_util.wrap_exceptions def get_outbound_connector(ctx, from_json, outbound_connector_id): - if isinstance(outbound_connector_id, six.string_types) and len(outbound_connector_id.strip()) == 0: + if isinstance(outbound_connector_id, str) and len(outbound_connector_id.strip()) == 0: raise click.UsageError('Parameter --outbound-connector-id cannot be whitespace or empty string') kwargs = {} @@ -2375,10 +2374,10 @@ def get_outbound_connector(ctx, from_json, outbound_connector_id): @cli_util.wrap_exceptions def get_quota_rule(ctx, from_json, file_system_id, quota_rule_id, if_match): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') - if isinstance(quota_rule_id, six.string_types) and len(quota_rule_id.strip()) == 0: + if isinstance(quota_rule_id, str) and len(quota_rule_id.strip()) == 0: raise click.UsageError('Parameter --quota-rule-id cannot be whitespace or empty string') kwargs = {} @@ -2403,7 +2402,7 @@ def get_quota_rule(ctx, from_json, file_system_id, quota_rule_id, if_match): @cli_util.wrap_exceptions def get_replication(ctx, from_json, replication_id): - if isinstance(replication_id, six.string_types) and len(replication_id.strip()) == 0: + if isinstance(replication_id, str) and len(replication_id.strip()) == 0: raise click.UsageError('Parameter --replication-id cannot be whitespace or empty string') kwargs = {} @@ -2425,7 +2424,7 @@ def get_replication(ctx, from_json, replication_id): @cli_util.wrap_exceptions def get_replication_target(ctx, from_json, replication_target_id): - if isinstance(replication_target_id, six.string_types) and len(replication_target_id.strip()) == 0: + if isinstance(replication_target_id, str) and len(replication_target_id.strip()) == 0: raise click.UsageError('Parameter --replication-target-id cannot be whitespace or empty string') kwargs = {} @@ -2447,7 +2446,7 @@ def get_replication_target(ctx, from_json, replication_target_id): @cli_util.wrap_exceptions def get_snapshot(ctx, from_json, snapshot_id): - if isinstance(snapshot_id, six.string_types) and len(snapshot_id.strip()) == 0: + if isinstance(snapshot_id, str) and len(snapshot_id.strip()) == 0: raise click.UsageError('Parameter --snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -2965,7 +2964,7 @@ def list_quota_rules(ctx, from_json, all_pages, page_size, file_system_id, princ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -3260,7 +3259,7 @@ def list_snapshots(ctx, from_json, all_pages, page_size, limit, page, lifecycle_ @cli_util.wrap_exceptions def pause_filesystem_snapshot_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, filesystem_snapshot_policy_id, if_match, is_lock_override): - if isinstance(filesystem_snapshot_policy_id, six.string_types) and len(filesystem_snapshot_policy_id.strip()) == 0: + if isinstance(filesystem_snapshot_policy_id, str) and len(filesystem_snapshot_policy_id.strip()) == 0: raise click.UsageError('Parameter --filesystem-snapshot-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3317,7 +3316,7 @@ def pause_filesystem_snapshot_policy(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def remove_export_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, export_id, type, related_resource_id, message, time_created, if_match): - if isinstance(export_id, six.string_types) and len(export_id.strip()) == 0: + if isinstance(export_id, str) and len(export_id.strip()) == 0: raise click.UsageError('Parameter --export-id cannot be whitespace or empty string') kwargs = {} @@ -3386,7 +3385,7 @@ def remove_export_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def remove_file_system_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, file_system_id, type, related_resource_id, message, time_created, if_match): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -3455,7 +3454,7 @@ def remove_file_system_lock(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def remove_filesystem_snapshot_policy_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, filesystem_snapshot_policy_id, type, related_resource_id, message, time_created, if_match): - if isinstance(filesystem_snapshot_policy_id, six.string_types) and len(filesystem_snapshot_policy_id.strip()) == 0: + if isinstance(filesystem_snapshot_policy_id, str) and len(filesystem_snapshot_policy_id.strip()) == 0: raise click.UsageError('Parameter --filesystem-snapshot-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3524,7 +3523,7 @@ def remove_filesystem_snapshot_policy_lock(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def remove_mount_target_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mount_target_id, type, related_resource_id, message, time_created, if_match): - if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0: + if isinstance(mount_target_id, str) and len(mount_target_id.strip()) == 0: raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string') kwargs = {} @@ -3593,7 +3592,7 @@ def remove_mount_target_lock(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def remove_outbound_connector_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, outbound_connector_id, type, related_resource_id, message, time_created, if_match): - if isinstance(outbound_connector_id, six.string_types) and len(outbound_connector_id.strip()) == 0: + if isinstance(outbound_connector_id, str) and len(outbound_connector_id.strip()) == 0: raise click.UsageError('Parameter --outbound-connector-id cannot be whitespace or empty string') kwargs = {} @@ -3662,7 +3661,7 @@ def remove_outbound_connector_lock(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def remove_replication_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, replication_id, type, related_resource_id, message, time_created, if_match): - if isinstance(replication_id, six.string_types) and len(replication_id.strip()) == 0: + if isinstance(replication_id, str) and len(replication_id.strip()) == 0: raise click.UsageError('Parameter --replication-id cannot be whitespace or empty string') kwargs = {} @@ -3731,7 +3730,7 @@ def remove_replication_lock(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def remove_snapshot_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, snapshot_id, type, related_resource_id, message, time_created, if_match): - if isinstance(snapshot_id, six.string_types) and len(snapshot_id.strip()) == 0: + if isinstance(snapshot_id, str) and len(snapshot_id.strip()) == 0: raise click.UsageError('Parameter --snapshot-id cannot be whitespace or empty string') kwargs = {} @@ -3797,7 +3796,7 @@ def remove_snapshot_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def schedule_downgrade_shape_mount_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mount_target_id, requested_throughput, if_match): - if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0: + if isinstance(mount_target_id, str) and len(mount_target_id.strip()) == 0: raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string') kwargs = {} @@ -3853,7 +3852,7 @@ def schedule_downgrade_shape_mount_target(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def toggle_quota_rules(ctx, from_json, file_system_id, are_quota_rules_enabled, if_match): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') kwargs = {} @@ -3889,7 +3888,7 @@ def toggle_quota_rules(ctx, from_json, file_system_id, are_quota_rules_enabled, @cli_util.wrap_exceptions def unpause_filesystem_snapshot_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, filesystem_snapshot_policy_id, if_match, is_lock_override): - if isinstance(filesystem_snapshot_policy_id, six.string_types) and len(filesystem_snapshot_policy_id.strip()) == 0: + if isinstance(filesystem_snapshot_policy_id, str) and len(filesystem_snapshot_policy_id.strip()) == 0: raise click.UsageError('Parameter --filesystem-snapshot-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3952,7 +3951,7 @@ def unpause_filesystem_snapshot_policy(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_export(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, export_id, is_idmap_groups_for_sys_auth, export_options, if_match, is_lock_override): - if isinstance(export_id, six.string_types) and len(export_id.strip()) == 0: + if isinstance(export_id, str) and len(export_id.strip()) == 0: raise click.UsageError('Parameter --export-id cannot be whitespace or empty string') if not force: if export_options: @@ -4024,7 +4023,7 @@ def update_export(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_export_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, export_set_id, display_name, max_fs_stat_bytes, max_fs_stat_files, if_match): - if isinstance(export_set_id, six.string_types) and len(export_set_id.strip()) == 0: + if isinstance(export_set_id, str) and len(export_set_id.strip()) == 0: raise click.UsageError('Parameter --export-set-id cannot be whitespace or empty string') kwargs = {} @@ -4101,7 +4100,7 @@ def update_export_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_file_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, file_system_id, display_name, freeform_tags, defined_tags, kms_key_id, filesystem_snapshot_policy_id, if_match, is_lock_override): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4192,7 +4191,7 @@ def update_file_system(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_filesystem_snapshot_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, filesystem_snapshot_policy_id, display_name, policy_prefix, schedules, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(filesystem_snapshot_policy_id, six.string_types) and len(filesystem_snapshot_policy_id.strip()) == 0: + if isinstance(filesystem_snapshot_policy_id, str) and len(filesystem_snapshot_policy_id.strip()) == 0: raise click.UsageError('Parameter --filesystem-snapshot-policy-id cannot be whitespace or empty string') if not force: if schedules or freeform_tags or defined_tags: @@ -4282,7 +4281,7 @@ def update_filesystem_snapshot_policy(ctx, from_json, force, wait_for_state, max @cli_util.wrap_exceptions def update_mount_target(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mount_target_id, display_name, idmap_type, ldap_idmap, nsg_ids, kerberos, freeform_tags, defined_tags, security_attributes, if_match, is_lock_override): - if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0: + if isinstance(mount_target_id, str) and len(mount_target_id.strip()) == 0: raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string') if not force: if ldap_idmap or nsg_ids or kerberos or freeform_tags or defined_tags or security_attributes: @@ -4374,7 +4373,7 @@ def update_mount_target(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_outbound_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, outbound_connector_id, display_name, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(outbound_connector_id, six.string_types) and len(outbound_connector_id.strip()) == 0: + if isinstance(outbound_connector_id, str) and len(outbound_connector_id.strip()) == 0: raise click.UsageError('Parameter --outbound-connector-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4444,10 +4443,10 @@ def update_outbound_connector(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_quota_rule(ctx, from_json, file_system_id, quota_rule_id, display_name, quota_limit_in_gigabytes, if_match): - if isinstance(file_system_id, six.string_types) and len(file_system_id.strip()) == 0: + if isinstance(file_system_id, str) and len(file_system_id.strip()) == 0: raise click.UsageError('Parameter --file-system-id cannot be whitespace or empty string') - if isinstance(quota_rule_id, six.string_types) and len(quota_rule_id.strip()) == 0: + if isinstance(quota_rule_id, str) and len(quota_rule_id.strip()) == 0: raise click.UsageError('Parameter --quota-rule-id cannot be whitespace or empty string') kwargs = {} @@ -4492,7 +4491,7 @@ def update_quota_rule(ctx, from_json, file_system_id, quota_rule_id, display_nam @cli_util.wrap_exceptions def update_replication(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, replication_id, display_name, replication_interval, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(replication_id, six.string_types) and len(replication_id.strip()) == 0: + if isinstance(replication_id, str) and len(replication_id.strip()) == 0: raise click.UsageError('Parameter --replication-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4573,7 +4572,7 @@ def update_replication(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_snapshot(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, snapshot_id, freeform_tags, defined_tags, expiration_time, lock_duration_details, if_match, is_lock_override): - if isinstance(snapshot_id, six.string_types) and len(snapshot_id.strip()) == 0: + if isinstance(snapshot_id, str) and len(snapshot_id.strip()) == 0: raise click.UsageError('Parameter --snapshot-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or lock_duration_details: @@ -4647,7 +4646,7 @@ def update_snapshot(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def upgrade_shape_mount_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mount_target_id, requested_throughput, if_match): - if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0: + if isinstance(mount_target_id, str) and len(mount_target_id.strip()) == 0: raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/fleet_apps_management/src/oci_cli_fleet_apps_management/generated/fleetappsmanagement_cli.py b/services/fleet_apps_management/src/oci_cli_fleet_apps_management/generated/fleetappsmanagement_cli.py index df1049c3f..c5e12b069 100644 --- a/services/fleet_apps_management/src/oci_cli_fleet_apps_management/generated/fleetappsmanagement_cli.py +++ b/services/fleet_apps_management/src/oci_cli_fleet_apps_management/generated/fleetappsmanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -153,7 +152,7 @@ def fleet_collection_group(): @cli_util.wrap_exceptions def change_fleet_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, compartment_id, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -242,7 +241,7 @@ def check_resource_tagging(ctx, from_json, compartment_id, resource_ids, fleet_d @cli_util.wrap_exceptions def confirm_targets(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, targets, fleet_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1110,7 +1109,7 @@ def create_fleet_environment_fleet_details(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def create_fleet_credential(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, display_name, entity_specifics, user, password, fleet_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1172,7 +1171,7 @@ def create_fleet_credential(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def create_fleet_property(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, value, property_id, fleet_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1231,7 +1230,7 @@ def create_fleet_property(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def create_fleet_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resource_id, tenancy_id, compartment_id, fleet_id, resource_region, resource_type): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1298,7 +1297,7 @@ def create_fleet_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_fleet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1355,10 +1354,10 @@ def delete_fleet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_fleet_credential(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_credential_id, fleet_id, if_match): - if isinstance(fleet_credential_id, six.string_types) and len(fleet_credential_id.strip()) == 0: + if isinstance(fleet_credential_id, str) and len(fleet_credential_id.strip()) == 0: raise click.UsageError('Parameter --fleet-credential-id cannot be whitespace or empty string') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1413,10 +1412,10 @@ def delete_fleet_credential(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_fleet_property(ctx, from_json, fleet_property_id, fleet_id, if_match): - if isinstance(fleet_property_id, six.string_types) and len(fleet_property_id.strip()) == 0: + if isinstance(fleet_property_id, str) and len(fleet_property_id.strip()) == 0: raise click.UsageError('Parameter --fleet-property-id cannot be whitespace or empty string') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1447,10 +1446,10 @@ def delete_fleet_property(ctx, from_json, fleet_property_id, fleet_id, if_match) @cli_util.wrap_exceptions def delete_fleet_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_resource_id, fleet_id, if_match): - if isinstance(fleet_resource_id, six.string_types) and len(fleet_resource_id.strip()) == 0: + if isinstance(fleet_resource_id, str) and len(fleet_resource_id.strip()) == 0: raise click.UsageError('Parameter --fleet-resource-id cannot be whitespace or empty string') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1506,7 +1505,7 @@ def delete_fleet_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def generate_compliance_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, are_details_required): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1562,7 +1561,7 @@ def generate_compliance_report(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_compliance(ctx, from_json, fleet_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1585,10 +1584,10 @@ def get_compliance(ctx, from_json, fleet_id): @cli_util.wrap_exceptions def get_compliance_report(ctx, from_json, fleet_id, compliance_report_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(compliance_report_id, six.string_types) and len(compliance_report_id.strip()) == 0: + if isinstance(compliance_report_id, str) and len(compliance_report_id.strip()) == 0: raise click.UsageError('Parameter --compliance-report-id cannot be whitespace or empty string') kwargs = {} @@ -1611,7 +1610,7 @@ def get_compliance_report(ctx, from_json, fleet_id, compliance_report_id): @cli_util.wrap_exceptions def get_fleet(ctx, from_json, fleet_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1634,10 +1633,10 @@ def get_fleet(ctx, from_json, fleet_id): @cli_util.wrap_exceptions def get_fleet_credential(ctx, from_json, fleet_credential_id, fleet_id): - if isinstance(fleet_credential_id, six.string_types) and len(fleet_credential_id.strip()) == 0: + if isinstance(fleet_credential_id, str) and len(fleet_credential_id.strip()) == 0: raise click.UsageError('Parameter --fleet-credential-id cannot be whitespace or empty string') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1661,10 +1660,10 @@ def get_fleet_credential(ctx, from_json, fleet_credential_id, fleet_id): @cli_util.wrap_exceptions def get_fleet_property(ctx, from_json, fleet_property_id, fleet_id): - if isinstance(fleet_property_id, six.string_types) and len(fleet_property_id.strip()) == 0: + if isinstance(fleet_property_id, str) and len(fleet_property_id.strip()) == 0: raise click.UsageError('Parameter --fleet-property-id cannot be whitespace or empty string') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1688,10 +1687,10 @@ def get_fleet_property(ctx, from_json, fleet_property_id, fleet_id): @cli_util.wrap_exceptions def get_fleet_resource(ctx, from_json, fleet_resource_id, fleet_id): - if isinstance(fleet_resource_id, six.string_types) and len(fleet_resource_id.strip()) == 0: + if isinstance(fleet_resource_id, str) and len(fleet_resource_id.strip()) == 0: raise click.UsageError('Parameter --fleet-resource-id cannot be whitespace or empty string') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1789,7 +1788,7 @@ def list_fleet_credentials(ctx, from_json, all_pages, page_size, fleet_id, lifec if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1862,7 +1861,7 @@ def list_fleet_products(ctx, from_json, all_pages, page_size, fleet_id, compartm if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1930,7 +1929,7 @@ def list_fleet_properties(ctx, from_json, all_pages, page_size, fleet_id, lifecy if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1997,7 +1996,7 @@ def list_fleet_resources(ctx, from_json, all_pages, page_size, fleet_id, lifecyc if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2067,7 +2066,7 @@ def list_fleet_targets(ctx, from_json, all_pages, page_size, fleet_id, display_n if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2289,7 +2288,7 @@ def list_targets(ctx, from_json, all_pages, page_size, fleet_id, display_name, l if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2346,7 +2345,7 @@ def list_targets(ctx, from_json, all_pages, page_size, fleet_id, display_name, l @cli_util.wrap_exceptions def request_resource_validation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, is_applicable_to_all_resources, resource_ids): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2410,7 +2409,7 @@ def request_resource_validation(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def request_target_discovery(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, is_applicable_to_all_resources, resource_ids): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2487,7 +2486,7 @@ def request_target_discovery(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_fleet(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, display_name, description, notification_preferences, is_target_auto_confirm, resource_selection, products, freeform_tags, defined_tags, environment_type, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') if not force: if notification_preferences or resource_selection or products or freeform_tags or defined_tags: @@ -2587,7 +2586,7 @@ def update_fleet(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_fleet_dynamic_resource_selection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, resource_selection_rule_selection_criteria, display_name, description, notification_preferences, is_target_auto_confirm, products, freeform_tags, defined_tags, environment_type, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') if not force: if notification_preferences or products or freeform_tags or defined_tags: @@ -2687,7 +2686,7 @@ def update_fleet_dynamic_resource_selection(ctx, from_json, force, wait_for_stat @cli_util.wrap_exceptions def update_fleet_manual_resource_selection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, display_name, description, notification_preferences, is_target_auto_confirm, products, freeform_tags, defined_tags, environment_type, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') if not force: if notification_preferences or products or freeform_tags or defined_tags: @@ -2781,10 +2780,10 @@ def update_fleet_manual_resource_selection(ctx, from_json, force, wait_for_state @cli_util.wrap_exceptions def update_fleet_credential(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_credential_id, fleet_id, display_name, entity_specifics, user, password, if_match): - if isinstance(fleet_credential_id, six.string_types) and len(fleet_credential_id.strip()) == 0: + if isinstance(fleet_credential_id, str) and len(fleet_credential_id.strip()) == 0: raise click.UsageError('Parameter --fleet-credential-id cannot be whitespace or empty string') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') if not force: if entity_specifics or user or password: @@ -2862,10 +2861,10 @@ def update_fleet_credential(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_fleet_property(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_property_id, fleet_id, value, if_match): - if isinstance(fleet_property_id, six.string_types) and len(fleet_property_id.strip()) == 0: + if isinstance(fleet_property_id, str) and len(fleet_property_id.strip()) == 0: raise click.UsageError('Parameter --fleet-property-id cannot be whitespace or empty string') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2927,10 +2926,10 @@ def update_fleet_property(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_fleet_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_resource_id, fleet_id, tenancy_id, compartment_id, if_match): - if isinstance(fleet_resource_id, six.string_types) and len(fleet_resource_id.strip()) == 0: + if isinstance(fleet_resource_id, str) and len(fleet_resource_id.strip()) == 0: raise click.UsageError('Parameter --fleet-resource-id cannot be whitespace or empty string') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_admin/generated/fleetappsmanagementadmin_cli.py b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_admin/generated/fleetappsmanagementadmin_cli.py index ca2590a2a..1ede1c3cf 100644 --- a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_admin/generated/fleetappsmanagementadmin_cli.py +++ b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_admin/generated/fleetappsmanagementadmin_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -116,7 +115,7 @@ def compliance_policy_group(): @cli_util.wrap_exceptions def change_platform_configuration_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, compartment_id, if_match): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -177,7 +176,7 @@ def change_platform_configuration_compartment(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def change_property_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, property_id, compartment_id, if_match): - if isinstance(property_id, six.string_types) and len(property_id.strip()) == 0: + if isinstance(property_id, str) and len(property_id.strip()) == 0: raise click.UsageError('Parameter --property-id cannot be whitespace or empty string') kwargs = {} @@ -1328,7 +1327,7 @@ def create_property(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_compliance_policy_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compliance_policy_rule_id, if_match): - if isinstance(compliance_policy_rule_id, six.string_types) and len(compliance_policy_rule_id.strip()) == 0: + if isinstance(compliance_policy_rule_id, str) and len(compliance_policy_rule_id.strip()) == 0: raise click.UsageError('Parameter --compliance-policy-rule-id cannot be whitespace or empty string') kwargs = {} @@ -1384,7 +1383,7 @@ def delete_compliance_policy_rule(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_onboarding(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, onboarding_id, if_match): - if isinstance(onboarding_id, six.string_types) and len(onboarding_id.strip()) == 0: + if isinstance(onboarding_id, str) and len(onboarding_id.strip()) == 0: raise click.UsageError('Parameter --onboarding-id cannot be whitespace or empty string') kwargs = {} @@ -1440,7 +1439,7 @@ def delete_onboarding(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_platform_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, if_match): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1496,7 +1495,7 @@ def delete_platform_configuration(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_property(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, property_id, if_match): - if isinstance(property_id, six.string_types) and len(property_id.strip()) == 0: + if isinstance(property_id, str) and len(property_id.strip()) == 0: raise click.UsageError('Parameter --property-id cannot be whitespace or empty string') kwargs = {} @@ -1557,7 +1556,7 @@ def delete_property(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def enable_latest_policy(ctx, from_json, onboarding_id, can_latest_fams_policies_be_enabled, if_match): - if isinstance(onboarding_id, six.string_types) and len(onboarding_id.strip()) == 0: + if isinstance(onboarding_id, str) and len(onboarding_id.strip()) == 0: raise click.UsageError('Parameter --onboarding-id cannot be whitespace or empty string') kwargs = {} @@ -1588,7 +1587,7 @@ def enable_latest_policy(ctx, from_json, onboarding_id, can_latest_fams_policies @cli_util.wrap_exceptions def get_compliance_policy(ctx, from_json, compliance_policy_id): - if isinstance(compliance_policy_id, six.string_types) and len(compliance_policy_id.strip()) == 0: + if isinstance(compliance_policy_id, str) and len(compliance_policy_id.strip()) == 0: raise click.UsageError('Parameter --compliance-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1610,7 +1609,7 @@ def get_compliance_policy(ctx, from_json, compliance_policy_id): @cli_util.wrap_exceptions def get_compliance_policy_rule(ctx, from_json, compliance_policy_rule_id): - if isinstance(compliance_policy_rule_id, six.string_types) and len(compliance_policy_rule_id.strip()) == 0: + if isinstance(compliance_policy_rule_id, str) and len(compliance_policy_rule_id.strip()) == 0: raise click.UsageError('Parameter --compliance-policy-rule-id cannot be whitespace or empty string') kwargs = {} @@ -1632,7 +1631,7 @@ def get_compliance_policy_rule(ctx, from_json, compliance_policy_rule_id): @cli_util.wrap_exceptions def get_onboarding(ctx, from_json, onboarding_id): - if isinstance(onboarding_id, six.string_types) and len(onboarding_id.strip()) == 0: + if isinstance(onboarding_id, str) and len(onboarding_id.strip()) == 0: raise click.UsageError('Parameter --onboarding-id cannot be whitespace or empty string') kwargs = {} @@ -1654,7 +1653,7 @@ def get_onboarding(ctx, from_json, onboarding_id): @cli_util.wrap_exceptions def get_platform_configuration(ctx, from_json, platform_configuration_id): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1676,7 +1675,7 @@ def get_platform_configuration(ctx, from_json, platform_configuration_id): @cli_util.wrap_exceptions def get_property(ctx, from_json, property_id): - if isinstance(property_id, six.string_types) and len(property_id.strip()) == 0: + if isinstance(property_id, str) and len(property_id.strip()) == 0: raise click.UsageError('Parameter --property-id cannot be whitespace or empty string') kwargs = {} @@ -2085,7 +2084,7 @@ def list_properties(ctx, from_json, all_pages, page_size, compartment_id, lifecy @cli_util.wrap_exceptions def manage_settings(ctx, from_json, onboarding_id, discovery_frequency, if_match): - if isinstance(onboarding_id, six.string_types) and len(onboarding_id.strip()) == 0: + if isinstance(onboarding_id, str) and len(onboarding_id.strip()) == 0: raise click.UsageError('Parameter --onboarding-id cannot be whitespace or empty string') kwargs = {} @@ -2128,7 +2127,7 @@ def manage_settings(ctx, from_json, onboarding_id, discovery_frequency, if_match @cli_util.wrap_exceptions def update_compliance_policy_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compliance_policy_rule_id, product_version, patch_type_id, severity, patch_selection, grace_period, freeform_tags, defined_tags, if_match): - if isinstance(compliance_policy_rule_id, six.string_types) and len(compliance_policy_rule_id.strip()) == 0: + if isinstance(compliance_policy_rule_id, str) and len(compliance_policy_rule_id.strip()) == 0: raise click.UsageError('Parameter --compliance-policy-rule-id cannot be whitespace or empty string') if not force: if product_version or patch_type_id or severity or patch_selection or freeform_tags or defined_tags: @@ -2220,7 +2219,7 @@ def update_compliance_policy_rule(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_compliance_policy_rule_patch_level_selection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compliance_policy_rule_id, patch_selection_patch_level, product_version, patch_type_id, severity, grace_period, freeform_tags, defined_tags, if_match): - if isinstance(compliance_policy_rule_id, six.string_types) and len(compliance_policy_rule_id.strip()) == 0: + if isinstance(compliance_policy_rule_id, str) and len(compliance_policy_rule_id.strip()) == 0: raise click.UsageError('Parameter --compliance-policy-rule-id cannot be whitespace or empty string') if not force: if product_version or patch_type_id or severity or freeform_tags or defined_tags: @@ -2313,7 +2312,7 @@ def update_compliance_policy_rule_patch_level_selection_details(ctx, from_json, @cli_util.wrap_exceptions def update_compliance_policy_rule_patch_release_date_selection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compliance_policy_rule_id, patch_selection_days_since_release, product_version, patch_type_id, severity, grace_period, freeform_tags, defined_tags, if_match): - if isinstance(compliance_policy_rule_id, six.string_types) and len(compliance_policy_rule_id.strip()) == 0: + if isinstance(compliance_policy_rule_id, str) and len(compliance_policy_rule_id.strip()) == 0: raise click.UsageError('Parameter --compliance-policy-rule-id cannot be whitespace or empty string') if not force: if product_version or patch_type_id or severity or freeform_tags or defined_tags: @@ -2406,7 +2405,7 @@ def update_compliance_policy_rule_patch_release_date_selection_details(ctx, from @cli_util.wrap_exceptions def update_compliance_policy_rule_patch_name_selection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compliance_policy_rule_id, patch_selection_patch_name, product_version, patch_type_id, severity, grace_period, freeform_tags, defined_tags, if_match): - if isinstance(compliance_policy_rule_id, six.string_types) and len(compliance_policy_rule_id.strip()) == 0: + if isinstance(compliance_policy_rule_id, str) and len(compliance_policy_rule_id.strip()) == 0: raise click.UsageError('Parameter --compliance-policy-rule-id cannot be whitespace or empty string') if not force: if product_version or patch_type_id or severity or freeform_tags or defined_tags: @@ -2496,7 +2495,7 @@ def update_compliance_policy_rule_patch_name_selection_details(ctx, from_json, f @cli_util.wrap_exceptions def update_onboarding(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, onboarding_id, is_fams_tag_enabled, is_cost_tracking_tag_enabled, freeform_tags, defined_tags, if_match): - if isinstance(onboarding_id, six.string_types) and len(onboarding_id.strip()) == 0: + if isinstance(onboarding_id, str) and len(onboarding_id.strip()) == 0: raise click.UsageError('Parameter --onboarding-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2579,7 +2578,7 @@ def update_onboarding(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_platform_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, display_name, description, config_category_details, freeform_tags, defined_tags, if_match): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') if not force: if config_category_details or freeform_tags or defined_tags: @@ -2666,7 +2665,7 @@ def update_platform_configuration(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_platform_configuration_product_stack_config_category_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, config_category_details_products, display_name, description, freeform_tags, defined_tags, if_match, config_category_details_sub_category_details): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2755,7 +2754,7 @@ def update_platform_configuration_product_stack_config_category_details(ctx, fro @cli_util.wrap_exceptions def update_platform_configuration_environment_config_category_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2840,7 +2839,7 @@ def update_platform_configuration_environment_config_category_details(ctx, from_ @cli_util.wrap_exceptions def update_platform_configuration_credential_config_category_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2925,7 +2924,7 @@ def update_platform_configuration_credential_config_category_details(ctx, from_j @cli_util.wrap_exceptions def update_platform_configuration_patch_type_config_category_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3010,7 +3009,7 @@ def update_platform_configuration_patch_type_config_category_details(ctx, from_j @cli_util.wrap_exceptions def update_platform_configuration_lifecycle_operation_config_category_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3109,7 +3108,7 @@ def update_platform_configuration_lifecycle_operation_config_category_details(ct @cli_util.wrap_exceptions def update_platform_configuration_product_config_category_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, display_name, description, freeform_tags, defined_tags, if_match, config_category_details_versions, config_category_details_credentials, config_category_details_components, config_category_details_compatible_products, config_category_details_patch_types, config_category_details_is_softlink, config_category_details_link_product_id, config_category_details_is_compliance_policy_required_for_softlink): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3222,7 +3221,7 @@ def update_platform_configuration_product_config_category_details(ctx, from_json @cli_util.wrap_exceptions def update_platform_configuration_self_hosted_instance_config_category_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, platform_configuration_id, config_category_details_instance_id, display_name, description, freeform_tags, defined_tags, if_match, config_category_details_instance_name): - if isinstance(platform_configuration_id, six.string_types) and len(platform_configuration_id.strip()) == 0: + if isinstance(platform_configuration_id, str) and len(platform_configuration_id.strip()) == 0: raise click.UsageError('Parameter --platform-configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3313,7 +3312,7 @@ def update_platform_configuration_self_hosted_instance_config_category_details(c @cli_util.wrap_exceptions def update_property(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, property_id, display_name, selection, value_type, values, freeform_tags, defined_tags, if_match): - if isinstance(property_id, six.string_types) and len(property_id.strip()) == 0: + if isinstance(property_id, str) and len(property_id.strip()) == 0: raise click.UsageError('Parameter --property-id cannot be whitespace or empty string') if not force: if values or freeform_tags or defined_tags: diff --git a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_catalog/generated/fleetappsmanagementcatalog_cli.py b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_catalog/generated/fleetappsmanagementcatalog_cli.py index 7bf1af157..68acbc560 100644 --- a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_catalog/generated/fleetappsmanagementcatalog_cli.py +++ b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_catalog/generated/fleetappsmanagementcatalog_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -62,7 +61,7 @@ def catalog_item_collection_group(): @cli_util.wrap_exceptions def change_catalog_item_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_item_id, compartment_id, if_match): - if isinstance(catalog_item_id, six.string_types) and len(catalog_item_id.strip()) == 0: + if isinstance(catalog_item_id, str) and len(catalog_item_id.strip()) == 0: raise click.UsageError('Parameter --catalog-item-id cannot be whitespace or empty string') kwargs = {} @@ -124,7 +123,7 @@ def change_catalog_item_compartment(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def clone_catalog_item(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_item_id, compartment_id, version_description, if_match): - if isinstance(catalog_item_id, six.string_types) and len(catalog_item_id.strip()) == 0: + if isinstance(catalog_item_id, str) and len(catalog_item_id.strip()) == 0: raise click.UsageError('Parameter --catalog-item-id cannot be whitespace or empty string') kwargs = {} @@ -197,7 +196,7 @@ def clone_catalog_item(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def configure_catalog_item(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_item_id, storage_namespace, bucket_name, compartment_id, input_variables, object_name, catalog_listing_id, catalog_listing_version_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(catalog_item_id, six.string_types) and len(catalog_item_id.strip()) == 0: + if isinstance(catalog_item_id, str) and len(catalog_item_id.strip()) == 0: raise click.UsageError('Parameter --catalog-item-id cannot be whitespace or empty string') kwargs = {} @@ -834,7 +833,7 @@ def create_catalog_item_catalog_marketplace_source_config(ctx, from_json, wait_f @cli_util.wrap_exceptions def delete_catalog_item(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_item_id, if_match): - if isinstance(catalog_item_id, six.string_types) and len(catalog_item_id.strip()) == 0: + if isinstance(catalog_item_id, str) and len(catalog_item_id.strip()) == 0: raise click.UsageError('Parameter --catalog-item-id cannot be whitespace or empty string') kwargs = {} @@ -885,7 +884,7 @@ def delete_catalog_item(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_catalog_item(ctx, from_json, catalog_item_id): - if isinstance(catalog_item_id, six.string_types) and len(catalog_item_id.strip()) == 0: + if isinstance(catalog_item_id, str) and len(catalog_item_id.strip()) == 0: raise click.UsageError('Parameter --catalog-item-id cannot be whitespace or empty string') kwargs = {} @@ -907,7 +906,7 @@ def get_catalog_item(ctx, from_json, catalog_item_id): @cli_util.wrap_exceptions def get_catalog_item_variables_definition(ctx, from_json, catalog_item_id): - if isinstance(catalog_item_id, six.string_types) and len(catalog_item_id.strip()) == 0: + if isinstance(catalog_item_id, str) and len(catalog_item_id.strip()) == 0: raise click.UsageError('Parameter --catalog-item-id cannot be whitespace or empty string') kwargs = {} @@ -1016,7 +1015,7 @@ def list_catalog_items(ctx, from_json, all_pages, page_size, compartment_id, con @cli_util.wrap_exceptions def update_catalog_item(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, catalog_item_id, description, version_description, short_description, display_name, is_item_locked, freeform_tags, defined_tags, if_match): - if isinstance(catalog_item_id, six.string_types) and len(catalog_item_id.strip()) == 0: + if isinstance(catalog_item_id, str) and len(catalog_item_id.strip()) == 0: raise click.UsageError('Parameter --catalog-item-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_maintenance_window/generated/fleetappsmanagementmaintenancewindow_cli.py b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_maintenance_window/generated/fleetappsmanagementmaintenancewindow_cli.py index 98be80ff0..f8cbe0e21 100644 --- a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_maintenance_window/generated/fleetappsmanagementmaintenancewindow_cli.py +++ b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_maintenance_window/generated/fleetappsmanagementmaintenancewindow_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -136,7 +135,7 @@ def create_maintenance_window(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_maintenance_window(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_window_id, if_match): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') kwargs = {} @@ -187,7 +186,7 @@ def delete_maintenance_window(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_maintenance_window(ctx, from_json, maintenance_window_id): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') kwargs = {} @@ -290,7 +289,7 @@ def list_maintenance_windows(ctx, from_json, all_pages, page_size, compartment_i @cli_util.wrap_exceptions def update_maintenance_window(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_window_id, display_name, description, is_outage, time_schedule_start, duration, is_recurring, recurrences, freeform_tags, defined_tags, if_match): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_operations/generated/fleetappsmanagementoperations_cli.py b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_operations/generated/fleetappsmanagementoperations_cli.py index d1529ee1f..6ca63ebe3 100644 --- a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_operations/generated/fleetappsmanagementoperations_cli.py +++ b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_operations/generated/fleetappsmanagementoperations_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -214,7 +213,7 @@ def step_collection_group(): @cli_util.wrap_exceptions def change_patch_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, patch_id, compartment_id, if_match): - if isinstance(patch_id, six.string_types) and len(patch_id.strip()) == 0: + if isinstance(patch_id, str) and len(patch_id.strip()) == 0: raise click.UsageError('Parameter --patch-id cannot be whitespace or empty string') kwargs = {} @@ -775,7 +774,7 @@ def create_scheduler_definition_maintenance_window_schedule(ctx, from_json, wait @cli_util.wrap_exceptions def delete_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, patch_id, if_match): - if isinstance(patch_id, six.string_types) and len(patch_id.strip()) == 0: + if isinstance(patch_id, str) and len(patch_id.strip()) == 0: raise click.UsageError('Parameter --patch-id cannot be whitespace or empty string') kwargs = {} @@ -831,7 +830,7 @@ def delete_patch(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_scheduler_definition(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduler_definition_id, if_match): - if isinstance(scheduler_definition_id, six.string_types) and len(scheduler_definition_id.strip()) == 0: + if isinstance(scheduler_definition_id, str) and len(scheduler_definition_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-definition-id cannot be whitespace or empty string') kwargs = {} @@ -895,7 +894,7 @@ def delete_scheduler_definition(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_scheduler_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduler_job_id, if_match): - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') kwargs = {} @@ -1026,16 +1025,16 @@ def export_compliance_report(ctx, from_json, file, compartment_id, entity_id, re @cli_util.wrap_exceptions def get_execution(ctx, from_json, scheduler_job_id, job_activity_id, resource_id, execution_id): - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') - if isinstance(job_activity_id, six.string_types) and len(job_activity_id.strip()) == 0: + if isinstance(job_activity_id, str) and len(job_activity_id.strip()) == 0: raise click.UsageError('Parameter --job-activity-id cannot be whitespace or empty string') - if isinstance(resource_id, six.string_types) and len(resource_id.strip()) == 0: + if isinstance(resource_id, str) and len(resource_id.strip()) == 0: raise click.UsageError('Parameter --resource-id cannot be whitespace or empty string') - if isinstance(execution_id, six.string_types) and len(execution_id.strip()) == 0: + if isinstance(execution_id, str) and len(execution_id.strip()) == 0: raise click.UsageError('Parameter --execution-id cannot be whitespace or empty string') kwargs = {} @@ -1062,10 +1061,10 @@ def get_execution(ctx, from_json, scheduler_job_id, job_activity_id, resource_id @cli_util.wrap_exceptions def get_job_activity(ctx, from_json, scheduler_job_id, job_activity_id, is_details_required): - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') - if isinstance(job_activity_id, six.string_types) and len(job_activity_id.strip()) == 0: + if isinstance(job_activity_id, str) and len(job_activity_id.strip()) == 0: raise click.UsageError('Parameter --job-activity-id cannot be whitespace or empty string') kwargs = {} @@ -1090,7 +1089,7 @@ def get_job_activity(ctx, from_json, scheduler_job_id, job_activity_id, is_detai @cli_util.wrap_exceptions def get_patch(ctx, from_json, patch_id): - if isinstance(patch_id, six.string_types) and len(patch_id.strip()) == 0: + if isinstance(patch_id, str) and len(patch_id.strip()) == 0: raise click.UsageError('Parameter --patch-id cannot be whitespace or empty string') kwargs = {} @@ -1112,7 +1111,7 @@ def get_patch(ctx, from_json, patch_id): @cli_util.wrap_exceptions def get_scheduler_definition(ctx, from_json, scheduler_definition_id): - if isinstance(scheduler_definition_id, six.string_types) and len(scheduler_definition_id.strip()) == 0: + if isinstance(scheduler_definition_id, str) and len(scheduler_definition_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-definition-id cannot be whitespace or empty string') kwargs = {} @@ -1134,7 +1133,7 @@ def get_scheduler_definition(ctx, from_json, scheduler_definition_id): @cli_util.wrap_exceptions def get_scheduler_job(ctx, from_json, scheduler_job_id): - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') kwargs = {} @@ -1246,13 +1245,13 @@ def list_executions(ctx, from_json, all_pages, page_size, scheduler_job_id, job_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') - if isinstance(job_activity_id, six.string_types) and len(job_activity_id.strip()) == 0: + if isinstance(job_activity_id, str) and len(job_activity_id.strip()) == 0: raise click.UsageError('Parameter --job-activity-id cannot be whitespace or empty string') - if isinstance(resource_id, six.string_types) and len(resource_id.strip()) == 0: + if isinstance(resource_id, str) and len(resource_id.strip()) == 0: raise click.UsageError('Parameter --resource-id cannot be whitespace or empty string') kwargs = {} @@ -1675,10 +1674,10 @@ def list_resources(ctx, from_json, all_pages, page_size, scheduler_job_id, job_a if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') - if isinstance(job_activity_id, six.string_types) and len(job_activity_id.strip()) == 0: + if isinstance(job_activity_id, str) and len(job_activity_id.strip()) == 0: raise click.UsageError('Parameter --job-activity-id cannot be whitespace or empty string') kwargs = {} @@ -1747,7 +1746,7 @@ def list_scheduled_fleets(ctx, from_json, all_pages, page_size, scheduler_defini if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(scheduler_definition_id, six.string_types) and len(scheduler_definition_id.strip()) == 0: + if isinstance(scheduler_definition_id, str) and len(scheduler_definition_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-definition-id cannot be whitespace or empty string') kwargs = {} @@ -2063,10 +2062,10 @@ def list_steps(ctx, from_json, all_pages, page_size, scheduler_job_id, job_activ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') - if isinstance(job_activity_id, six.string_types) and len(job_activity_id.strip()) == 0: + if isinstance(job_activity_id, str) and len(job_activity_id.strip()) == 0: raise click.UsageError('Parameter --job-activity-id cannot be whitespace or empty string') kwargs = {} @@ -2259,7 +2258,7 @@ def list_target_properties(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def manage_job_execution(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, action_details, scheduler_job_id, if_match): - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') kwargs = {} @@ -2324,7 +2323,7 @@ def manage_job_execution(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def manage_job_execution_step_based_user_action_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduler_job_id, action_details_action, action_details_action_group_id, action_details_resource_id, action_details_step_name, if_match, action_details_target_id): - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') kwargs = {} @@ -2395,7 +2394,7 @@ def manage_job_execution_step_based_user_action_details(ctx, from_json, wait_for @cli_util.wrap_exceptions def manage_job_execution_action_group_based_user_action_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduler_job_id, action_details_action, action_details_action_group_id, if_match): - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') kwargs = {} @@ -2628,7 +2627,7 @@ def summarize_scheduler_job_counts(ctx, from_json, compartment_id, compartment_i @cli_util.wrap_exceptions def update_patch(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, patch_id, description, patch_type, severity, time_released, artifact_details, product, dependent_patches, freeform_tags, defined_tags, if_match): - if isinstance(patch_id, six.string_types) and len(patch_id.strip()) == 0: + if isinstance(patch_id, str) and len(patch_id.strip()) == 0: raise click.UsageError('Parameter --patch-id cannot be whitespace or empty string') if not force: if patch_type or artifact_details or product or dependent_patches or freeform_tags or defined_tags: @@ -2730,7 +2729,7 @@ def update_patch(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_patch_platform_specific_artifact_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, patch_id, artifact_details_artifacts, description, patch_type, severity, time_released, product, dependent_patches, freeform_tags, defined_tags, if_match): - if isinstance(patch_id, six.string_types) and len(patch_id.strip()) == 0: + if isinstance(patch_id, str) and len(patch_id.strip()) == 0: raise click.UsageError('Parameter --patch-id cannot be whitespace or empty string') if not force: if patch_type or product or dependent_patches or freeform_tags or defined_tags: @@ -2833,7 +2832,7 @@ def update_patch_platform_specific_artifact_details(ctx, from_json, force, wait_ @cli_util.wrap_exceptions def update_patch_generic_artifact_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, patch_id, artifact_details_artifact, description, patch_type, severity, time_released, product, dependent_patches, freeform_tags, defined_tags, if_match): - if isinstance(patch_id, six.string_types) and len(patch_id.strip()) == 0: + if isinstance(patch_id, str) and len(patch_id.strip()) == 0: raise click.UsageError('Parameter --patch-id cannot be whitespace or empty string') if not force: if patch_type or product or dependent_patches or freeform_tags or defined_tags: @@ -2938,7 +2937,7 @@ def update_patch_generic_artifact_details(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_scheduler_definition(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduler_definition_id, display_name, description, schedule, action_groups, run_books, freeform_tags, defined_tags, if_match): - if isinstance(scheduler_definition_id, six.string_types) and len(scheduler_definition_id.strip()) == 0: + if isinstance(scheduler_definition_id, str) and len(scheduler_definition_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-definition-id cannot be whitespace or empty string') if not force: if schedule or action_groups or run_books or freeform_tags or defined_tags: @@ -3038,7 +3037,7 @@ def update_scheduler_definition(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_scheduler_definition_custom_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduler_definition_id, schedule_execution_startdate, schedule_duration, display_name, description, action_groups, run_books, freeform_tags, defined_tags, if_match, schedule_recurrences): - if isinstance(scheduler_definition_id, six.string_types) and len(scheduler_definition_id.strip()) == 0: + if isinstance(scheduler_definition_id, str) and len(scheduler_definition_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-definition-id cannot be whitespace or empty string') if not force: if action_groups or run_books or freeform_tags or defined_tags: @@ -3142,7 +3141,7 @@ def update_scheduler_definition_custom_schedule(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_scheduler_definition_maintenance_window_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduler_definition_id, schedule_execution_startdate, schedule_maintenance_window_id, display_name, description, action_groups, run_books, freeform_tags, defined_tags, if_match): - if isinstance(scheduler_definition_id, six.string_types) and len(scheduler_definition_id.strip()) == 0: + if isinstance(scheduler_definition_id, str) and len(scheduler_definition_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-definition-id cannot be whitespace or empty string') if not force: if action_groups or run_books or freeform_tags or defined_tags: @@ -3232,7 +3231,7 @@ def update_scheduler_definition_maintenance_window_schedule(ctx, from_json, forc @cli_util.wrap_exceptions def update_scheduler_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduler_job_id, time_scheduled, freeform_tags, defined_tags, if_match): - if isinstance(scheduler_job_id, six.string_types) and len(scheduler_job_id.strip()) == 0: + if isinstance(scheduler_job_id, str) and len(scheduler_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduler-job-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_provision/generated/fleetappsmanagementprovision_cli.py b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_provision/generated/fleetappsmanagementprovision_cli.py index 4121255f6..49ee3b104 100644 --- a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_provision/generated/fleetappsmanagementprovision_cli.py +++ b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_provision/generated/fleetappsmanagementprovision_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -55,7 +54,7 @@ def provision_collection_group(): @cli_util.wrap_exceptions def change_provision_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, provision_id, compartment_id, if_match): - if isinstance(provision_id, six.string_types) and len(provision_id.strip()) == 0: + if isinstance(provision_id, str) and len(provision_id.strip()) == 0: raise click.UsageError('Parameter --provision-id cannot be whitespace or empty string') kwargs = {} @@ -203,7 +202,7 @@ def create_provision(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_provision(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, provision_id, if_match): - if isinstance(provision_id, six.string_types) and len(provision_id.strip()) == 0: + if isinstance(provision_id, str) and len(provision_id.strip()) == 0: raise click.UsageError('Parameter --provision-id cannot be whitespace or empty string') kwargs = {} @@ -254,7 +253,7 @@ def delete_provision(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_provision(ctx, from_json, provision_id): - if isinstance(provision_id, six.string_types) and len(provision_id.strip()) == 0: + if isinstance(provision_id, str) and len(provision_id.strip()) == 0: raise click.UsageError('Parameter --provision-id cannot be whitespace or empty string') kwargs = {} @@ -350,7 +349,7 @@ def list_provisions(ctx, from_json, all_pages, page_size, compartment_id, lifecy @cli_util.wrap_exceptions def update_provision(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, provision_id, display_name, provision_description, freeform_tags, defined_tags, if_match): - if isinstance(provision_id, six.string_types) and len(provision_id.strip()) == 0: + if isinstance(provision_id, str) and len(provision_id.strip()) == 0: raise click.UsageError('Parameter --provision-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_runbooks/generated/fleetappsmanagementrunbooks_cli.py b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_runbooks/generated/fleetappsmanagementrunbooks_cli.py index 7d97517da..a9dba6d42 100644 --- a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_runbooks/generated/fleetappsmanagementrunbooks_cli.py +++ b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_runbooks/generated/fleetappsmanagementrunbooks_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -144,7 +143,7 @@ def runbook_export_group(): @cli_util.wrap_exceptions def change_runbook_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, runbook_id, compartment_id, if_match): - if isinstance(runbook_id, six.string_types) and len(runbook_id.strip()) == 0: + if isinstance(runbook_id, str) and len(runbook_id.strip()) == 0: raise click.UsageError('Parameter --runbook-id cannot be whitespace or empty string') kwargs = {} @@ -205,7 +204,7 @@ def change_runbook_compartment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_task_record_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, task_record_id, compartment_id, if_match): - if isinstance(task_record_id, six.string_types) and len(task_record_id.strip()) == 0: + if isinstance(task_record_id, str) and len(task_record_id.strip()) == 0: raise click.UsageError('Parameter --task-record-id cannot be whitespace or empty string') kwargs = {} @@ -497,7 +496,7 @@ def create_task_record(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_runbook(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, runbook_id, if_match): - if isinstance(runbook_id, six.string_types) and len(runbook_id.strip()) == 0: + if isinstance(runbook_id, str) and len(runbook_id.strip()) == 0: raise click.UsageError('Parameter --runbook-id cannot be whitespace or empty string') kwargs = {} @@ -553,7 +552,7 @@ def delete_runbook(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_runbook_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, runbook_version_id, if_match): - if isinstance(runbook_version_id, six.string_types) and len(runbook_version_id.strip()) == 0: + if isinstance(runbook_version_id, str) and len(runbook_version_id.strip()) == 0: raise click.UsageError('Parameter --runbook-version-id cannot be whitespace or empty string') kwargs = {} @@ -609,7 +608,7 @@ def delete_runbook_version(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_task_record(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, task_record_id, if_match): - if isinstance(task_record_id, six.string_types) and len(task_record_id.strip()) == 0: + if isinstance(task_record_id, str) and len(task_record_id.strip()) == 0: raise click.UsageError('Parameter --task-record-id cannot be whitespace or empty string') kwargs = {} @@ -666,7 +665,7 @@ def delete_task_record(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def export_runbook(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, content_destination, runbook_id, export_as, if_match): - if isinstance(runbook_id, six.string_types) and len(runbook_id.strip()) == 0: + if isinstance(runbook_id, str) and len(runbook_id.strip()) == 0: raise click.UsageError('Parameter --runbook-id cannot be whitespace or empty string') kwargs = {} @@ -734,7 +733,7 @@ def export_runbook(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def export_runbook_transfer_runbook_object_storage_bucket_content_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, runbook_id, content_destination_namespace_name, content_destination_bucket_name, export_as, if_match, content_destination_object_name, content_destination_checksum): - if isinstance(runbook_id, six.string_types) and len(runbook_id.strip()) == 0: + if isinstance(runbook_id, str) and len(runbook_id.strip()) == 0: raise click.UsageError('Parameter --runbook-id cannot be whitespace or empty string') kwargs = {} @@ -809,7 +808,7 @@ def export_runbook_transfer_runbook_object_storage_bucket_content_details(ctx, f @cli_util.wrap_exceptions def export_runbook_transfer_runbook_par_url_content_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, runbook_id, content_destination_url, export_as, if_match): - if isinstance(runbook_id, six.string_types) and len(runbook_id.strip()) == 0: + if isinstance(runbook_id, str) and len(runbook_id.strip()) == 0: raise click.UsageError('Parameter --runbook-id cannot be whitespace or empty string') kwargs = {} @@ -877,7 +876,7 @@ def export_runbook_transfer_runbook_par_url_content_details(ctx, from_json, wait @cli_util.wrap_exceptions def export_runbook_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, content_destination, runbook_version_id, version_parameterconflict, if_match): - if isinstance(runbook_version_id, six.string_types) and len(runbook_version_id.strip()) == 0: + if isinstance(runbook_version_id, str) and len(runbook_version_id.strip()) == 0: raise click.UsageError('Parameter --runbook-version-id cannot be whitespace or empty string') kwargs = {} @@ -945,7 +944,7 @@ def export_runbook_version(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def export_runbook_version_transfer_runbook_object_storage_bucket_content_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, runbook_version_id, content_destination_namespace_name, content_destination_bucket_name, version_parameterconflict, if_match, content_destination_object_name, content_destination_checksum): - if isinstance(runbook_version_id, six.string_types) and len(runbook_version_id.strip()) == 0: + if isinstance(runbook_version_id, str) and len(runbook_version_id.strip()) == 0: raise click.UsageError('Parameter --runbook-version-id cannot be whitespace or empty string') kwargs = {} @@ -1020,7 +1019,7 @@ def export_runbook_version_transfer_runbook_object_storage_bucket_content_detail @cli_util.wrap_exceptions def export_runbook_version_transfer_runbook_par_url_content_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, runbook_version_id, content_destination_url, version_parameterconflict, if_match): - if isinstance(runbook_version_id, six.string_types) and len(runbook_version_id.strip()) == 0: + if isinstance(runbook_version_id, str) and len(runbook_version_id.strip()) == 0: raise click.UsageError('Parameter --runbook-version-id cannot be whitespace or empty string') kwargs = {} @@ -1224,7 +1223,7 @@ def find_runbook_import_dependency_transfer_runbook_par_url_content_details(ctx, @cli_util.wrap_exceptions def get_runbook(ctx, from_json, runbook_id): - if isinstance(runbook_id, six.string_types) and len(runbook_id.strip()) == 0: + if isinstance(runbook_id, str) and len(runbook_id.strip()) == 0: raise click.UsageError('Parameter --runbook-id cannot be whitespace or empty string') kwargs = {} @@ -1247,10 +1246,10 @@ def get_runbook(ctx, from_json, runbook_id): @cli_util.wrap_exceptions def get_runbook_export(ctx, from_json, runbook_id, export_id): - if isinstance(runbook_id, six.string_types) and len(runbook_id.strip()) == 0: + if isinstance(runbook_id, str) and len(runbook_id.strip()) == 0: raise click.UsageError('Parameter --runbook-id cannot be whitespace or empty string') - if isinstance(export_id, six.string_types) and len(export_id.strip()) == 0: + if isinstance(export_id, str) and len(export_id.strip()) == 0: raise click.UsageError('Parameter --export-id cannot be whitespace or empty string') kwargs = {} @@ -1274,10 +1273,10 @@ def get_runbook_export(ctx, from_json, runbook_id, export_id): @cli_util.wrap_exceptions def get_runbook_import(ctx, from_json, runbook_id, import_id): - if isinstance(runbook_id, six.string_types) and len(runbook_id.strip()) == 0: + if isinstance(runbook_id, str) and len(runbook_id.strip()) == 0: raise click.UsageError('Parameter --runbook-id cannot be whitespace or empty string') - if isinstance(import_id, six.string_types) and len(import_id.strip()) == 0: + if isinstance(import_id, str) and len(import_id.strip()) == 0: raise click.UsageError('Parameter --import-id cannot be whitespace or empty string') kwargs = {} @@ -1300,7 +1299,7 @@ def get_runbook_import(ctx, from_json, runbook_id, import_id): @cli_util.wrap_exceptions def get_runbook_version(ctx, from_json, runbook_version_id): - if isinstance(runbook_version_id, six.string_types) and len(runbook_version_id.strip()) == 0: + if isinstance(runbook_version_id, str) and len(runbook_version_id.strip()) == 0: raise click.UsageError('Parameter --runbook-version-id cannot be whitespace or empty string') kwargs = {} @@ -1322,7 +1321,7 @@ def get_runbook_version(ctx, from_json, runbook_version_id): @cli_util.wrap_exceptions def get_task_record(ctx, from_json, task_record_id): - if isinstance(task_record_id, six.string_types) and len(task_record_id.strip()) == 0: + if isinstance(task_record_id, str) and len(task_record_id.strip()) == 0: raise click.UsageError('Parameter --task-record-id cannot be whitespace or empty string') kwargs = {} @@ -1992,7 +1991,7 @@ def set_default_runbook(ctx, from_json, runbook_id, if_match): @cli_util.wrap_exceptions def update_runbook(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, runbook_id, display_name, description, is_sudo_access_needed, operation, os_type, platform, is_default, estimated_time, freeform_tags, defined_tags, if_match): - if isinstance(runbook_id, six.string_types) and len(runbook_id.strip()) == 0: + if isinstance(runbook_id, str) and len(runbook_id.strip()) == 0: raise click.UsageError('Parameter --runbook-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2094,7 +2093,7 @@ def update_runbook(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_runbook_version(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, runbook_version_id, tasks, groups, execution_workflow_details, rollback_workflow_details, if_match): - if isinstance(runbook_version_id, six.string_types) and len(runbook_version_id.strip()) == 0: + if isinstance(runbook_version_id, str) and len(runbook_version_id.strip()) == 0: raise click.UsageError('Parameter --runbook-version-id cannot be whitespace or empty string') if not force: if tasks or groups or execution_workflow_details or rollback_workflow_details: @@ -2177,7 +2176,7 @@ def update_runbook_version(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_task_record(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, task_record_id, display_name, description, details, freeform_tags, defined_tags, if_match): - if isinstance(task_record_id, six.string_types) and len(task_record_id.strip()) == 0: + if isinstance(task_record_id, str) and len(task_record_id.strip()) == 0: raise click.UsageError('Parameter --task-record-id cannot be whitespace or empty string') if not force: if details or freeform_tags or defined_tags: diff --git a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_work_request/generated/fleetappsmanagementworkrequest_cli.py b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_work_request/generated/fleetappsmanagementworkrequest_cli.py index 0d66d0400..67d0ce0f1 100644 --- a/services/fleet_apps_management/src/oci_cli_fleet_apps_management_work_request/generated/fleetappsmanagementworkrequest_cli.py +++ b/services/fleet_apps_management/src/oci_cli_fleet_apps_management_work_request/generated/fleetappsmanagementworkrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -55,7 +54,7 @@ def work_request_group(): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -86,7 +85,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -143,7 +142,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/fleet_software_update/src/oci_cli_fleet_software_update/generated/fleetsoftwareupdate_cli.py b/services/fleet_software_update/src/oci_cli_fleet_software_update/generated/fleetsoftwareupdate_cli.py index 1aa1b9b63..255391b6f 100644 --- a/services/fleet_software_update/src/oci_cli_fleet_software_update/generated/fleetsoftwareupdate_cli.py +++ b/services/fleet_software_update/src/oci_cli_fleet_software_update/generated/fleetsoftwareupdate_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -161,7 +160,7 @@ def fsu_readiness_check_summary_group(): @cli_util.wrap_exceptions def abort_fsu_discovery(ctx, from_json, fsu_discovery_id, if_match): - if isinstance(fsu_discovery_id, six.string_types) and len(fsu_discovery_id.strip()) == 0: + if isinstance(fsu_discovery_id, str) and len(fsu_discovery_id.strip()) == 0: raise click.UsageError('Parameter --fsu-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -190,7 +189,7 @@ def abort_fsu_discovery(ctx, from_json, fsu_discovery_id, if_match): @cli_util.wrap_exceptions def add_fsu_collection_targets(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_collection_id, targets, if_match): - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') kwargs = {} @@ -247,7 +246,7 @@ def add_fsu_collection_targets(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def cancel_fsu_action(ctx, from_json, fsu_action_id, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') kwargs = {} @@ -276,7 +275,7 @@ def cancel_fsu_action(ctx, from_json, fsu_action_id, if_match): @cli_util.wrap_exceptions def change_fsu_action_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_action_id, compartment_id, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') kwargs = {} @@ -337,7 +336,7 @@ def change_fsu_action_compartment(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def change_fsu_collection_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_collection_id, compartment_id, if_match): - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') kwargs = {} @@ -398,7 +397,7 @@ def change_fsu_collection_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_fsu_cycle_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, compartment_id, if_match): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') kwargs = {} @@ -456,7 +455,7 @@ def change_fsu_cycle_compartment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def change_fsu_discovery_compartment(ctx, from_json, fsu_discovery_id, compartment_id, if_match): - if isinstance(fsu_discovery_id, six.string_types) and len(fsu_discovery_id.strip()) == 0: + if isinstance(fsu_discovery_id, str) and len(fsu_discovery_id.strip()) == 0: raise click.UsageError('Parameter --fsu-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -487,7 +486,7 @@ def change_fsu_discovery_compartment(ctx, from_json, fsu_discovery_id, compartme @cli_util.wrap_exceptions def change_fsu_readiness_check_compartment(ctx, from_json, fsu_readiness_check_id, compartment_id, if_match): - if isinstance(fsu_readiness_check_id, six.string_types) and len(fsu_readiness_check_id.strip()) == 0: + if isinstance(fsu_readiness_check_id, str) and len(fsu_readiness_check_id.strip()) == 0: raise click.UsageError('Parameter --fsu-readiness-check-id cannot be whitespace or empty string') kwargs = {} @@ -526,7 +525,7 @@ def change_fsu_readiness_check_compartment(ctx, from_json, fsu_readiness_check_i @cli_util.wrap_exceptions def clone_fsu_cycle(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, goal_version_details, display_name, compartment_id, fsu_collection_id, batching_strategy, stage_action_schedule, apply_action_schedule): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') kwargs = {} @@ -2253,7 +2252,7 @@ def create_fsu_readiness_check_create_target_fsu_readiness_check_details(ctx, fr @cli_util.wrap_exceptions def delete_fsu_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_action_id, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') kwargs = {} @@ -2309,7 +2308,7 @@ def delete_fsu_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_fsu_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_collection_id, if_match): - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') kwargs = {} @@ -2366,10 +2365,10 @@ def delete_fsu_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_fsu_collection_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_collection_id, target_id, if_match): - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') kwargs = {} @@ -2426,7 +2425,7 @@ def delete_fsu_collection_target(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_fsu_cycle(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, if_match): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') kwargs = {} @@ -2482,7 +2481,7 @@ def delete_fsu_cycle(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_fsu_discovery(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_discovery_id, if_match): - if isinstance(fsu_discovery_id, six.string_types) and len(fsu_discovery_id.strip()) == 0: + if isinstance(fsu_discovery_id, str) and len(fsu_discovery_id.strip()) == 0: raise click.UsageError('Parameter --fsu-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -2538,7 +2537,7 @@ def delete_fsu_discovery(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_fsu_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_job_id, if_match): - if isinstance(fsu_job_id, six.string_types) and len(fsu_job_id.strip()) == 0: + if isinstance(fsu_job_id, str) and len(fsu_job_id.strip()) == 0: raise click.UsageError('Parameter --fsu-job-id cannot be whitespace or empty string') kwargs = {} @@ -2602,7 +2601,7 @@ def delete_fsu_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_fsu_readiness_check(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_readiness_check_id, if_match): - if isinstance(fsu_readiness_check_id, six.string_types) and len(fsu_readiness_check_id.strip()) == 0: + if isinstance(fsu_readiness_check_id, str) and len(fsu_readiness_check_id.strip()) == 0: raise click.UsageError('Parameter --fsu-readiness-check-id cannot be whitespace or empty string') kwargs = {} @@ -2653,7 +2652,7 @@ def delete_fsu_readiness_check(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_fsu_action(ctx, from_json, fsu_action_id): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') kwargs = {} @@ -2676,7 +2675,7 @@ def get_fsu_action(ctx, from_json, fsu_action_id): @cli_util.wrap_exceptions def get_fsu_action_output_content(ctx, from_json, file, fsu_action_id): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') kwargs = {} @@ -2720,7 +2719,7 @@ def get_fsu_action_output_content(ctx, from_json, file, fsu_action_id): @cli_util.wrap_exceptions def get_fsu_collection(ctx, from_json, fsu_collection_id): - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') kwargs = {} @@ -2743,10 +2742,10 @@ def get_fsu_collection(ctx, from_json, fsu_collection_id): @cli_util.wrap_exceptions def get_fsu_collection_target(ctx, from_json, fsu_collection_id, target_id): - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') - if isinstance(target_id, six.string_types) and len(target_id.strip()) == 0: + if isinstance(target_id, str) and len(target_id.strip()) == 0: raise click.UsageError('Parameter --target-id cannot be whitespace or empty string') kwargs = {} @@ -2769,7 +2768,7 @@ def get_fsu_collection_target(ctx, from_json, fsu_collection_id, target_id): @cli_util.wrap_exceptions def get_fsu_cycle(ctx, from_json, fsu_cycle_id): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') kwargs = {} @@ -2791,7 +2790,7 @@ def get_fsu_cycle(ctx, from_json, fsu_cycle_id): @cli_util.wrap_exceptions def get_fsu_discovery(ctx, from_json, fsu_discovery_id): - if isinstance(fsu_discovery_id, six.string_types) and len(fsu_discovery_id.strip()) == 0: + if isinstance(fsu_discovery_id, str) and len(fsu_discovery_id.strip()) == 0: raise click.UsageError('Parameter --fsu-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -2813,7 +2812,7 @@ def get_fsu_discovery(ctx, from_json, fsu_discovery_id): @cli_util.wrap_exceptions def get_fsu_job(ctx, from_json, fsu_job_id): - if isinstance(fsu_job_id, six.string_types) and len(fsu_job_id.strip()) == 0: + if isinstance(fsu_job_id, str) and len(fsu_job_id.strip()) == 0: raise click.UsageError('Parameter --fsu-job-id cannot be whitespace or empty string') kwargs = {} @@ -2836,7 +2835,7 @@ def get_fsu_job(ctx, from_json, fsu_job_id): @cli_util.wrap_exceptions def get_fsu_job_output_content(ctx, from_json, file, fsu_job_id): - if isinstance(fsu_job_id, six.string_types) and len(fsu_job_id.strip()) == 0: + if isinstance(fsu_job_id, str) and len(fsu_job_id.strip()) == 0: raise click.UsageError('Parameter --fsu-job-id cannot be whitespace or empty string') kwargs = {} @@ -2880,7 +2879,7 @@ def get_fsu_job_output_content(ctx, from_json, file, fsu_job_id): @cli_util.wrap_exceptions def get_fsu_readiness_check(ctx, from_json, fsu_readiness_check_id): - if isinstance(fsu_readiness_check_id, six.string_types) and len(fsu_readiness_check_id.strip()) == 0: + if isinstance(fsu_readiness_check_id, str) and len(fsu_readiness_check_id.strip()) == 0: raise click.UsageError('Parameter --fsu-readiness-check-id cannot be whitespace or empty string') kwargs = {} @@ -2902,7 +2901,7 @@ def get_fsu_readiness_check(ctx, from_json, fsu_readiness_check_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3002,7 +3001,7 @@ def list_fsu_collection_targets(ctx, from_json, all_pages, page_size, fsu_collec if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') kwargs = {} @@ -3260,7 +3259,7 @@ def list_fsu_discovery_targets(ctx, from_json, all_pages, page_size, fsu_discove if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fsu_discovery_id, six.string_types) and len(fsu_discovery_id.strip()) == 0: + if isinstance(fsu_discovery_id, str) and len(fsu_discovery_id.strip()) == 0: raise click.UsageError('Parameter --fsu-discovery-id cannot be whitespace or empty string') kwargs = {} @@ -3321,7 +3320,7 @@ def list_fsu_job_outputs(ctx, from_json, all_pages, page_size, fsu_job_id, limit if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fsu_job_id, six.string_types) and len(fsu_job_id.strip()) == 0: + if isinstance(fsu_job_id, str) and len(fsu_job_id.strip()) == 0: raise click.UsageError('Parameter --fsu-job-id cannot be whitespace or empty string') kwargs = {} @@ -3500,7 +3499,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3557,7 +3556,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3673,7 +3672,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def remove_fsu_collection_targets(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_collection_id, removal_strategy, if_match): - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') kwargs = {} @@ -3735,7 +3734,7 @@ def remove_fsu_collection_targets(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def remove_fsu_collection_targets_target_ids_remove_targets_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_collection_id, targets, if_match): - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') if not force: if targets: @@ -3798,7 +3797,7 @@ def remove_fsu_collection_targets_target_ids_remove_targets_details(ctx, from_js @cli_util.wrap_exceptions def resume_fsu_action(ctx, from_json, fsu_action_id, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') kwargs = {} @@ -3823,7 +3822,7 @@ def resume_fsu_action(ctx, from_json, fsu_action_id, if_match): @cli_util.wrap_exceptions def retry_fsu_job(ctx, from_json, fsu_job_id, if_match): - if isinstance(fsu_job_id, six.string_types) and len(fsu_job_id.strip()) == 0: + if isinstance(fsu_job_id, str) and len(fsu_job_id.strip()) == 0: raise click.UsageError('Parameter --fsu-job-id cannot be whitespace or empty string') kwargs = {} @@ -3856,7 +3855,7 @@ def retry_fsu_job(ctx, from_json, fsu_job_id, if_match): @cli_util.wrap_exceptions def update_fsu_action(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_action_id, type, display_name, freeform_tags, defined_tags, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3933,7 +3932,7 @@ def update_fsu_action(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_fsu_action_update_rollback_cycle_action_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_action_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4012,7 +4011,7 @@ def update_fsu_action_update_rollback_cycle_action_details(ctx, from_json, force @cli_util.wrap_exceptions def update_fsu_action_update_stage_action_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_action_id, display_name, freeform_tags, defined_tags, schedule_details, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or schedule_details: @@ -4094,7 +4093,7 @@ def update_fsu_action_update_stage_action_details(ctx, from_json, force, wait_fo @cli_util.wrap_exceptions def update_fsu_action_update_apply_action_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_action_id, display_name, freeform_tags, defined_tags, schedule_details, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or schedule_details: @@ -4176,7 +4175,7 @@ def update_fsu_action_update_apply_action_details(ctx, from_json, force, wait_fo @cli_util.wrap_exceptions def update_fsu_action_update_rollback_action_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_action_id, display_name, freeform_tags, defined_tags, schedule_details, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or schedule_details: @@ -4258,7 +4257,7 @@ def update_fsu_action_update_rollback_action_details(ctx, from_json, force, wait @cli_util.wrap_exceptions def update_fsu_action_update_precheck_action_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_action_id, display_name, freeform_tags, defined_tags, schedule_details, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or schedule_details: @@ -4340,7 +4339,7 @@ def update_fsu_action_update_precheck_action_details(ctx, from_json, force, wait @cli_util.wrap_exceptions def update_fsu_action_update_cleanup_action_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_action_id, display_name, freeform_tags, defined_tags, schedule_details, if_match): - if isinstance(fsu_action_id, six.string_types) and len(fsu_action_id.strip()) == 0: + if isinstance(fsu_action_id, str) and len(fsu_action_id.strip()) == 0: raise click.UsageError('Parameter --fsu-action-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or schedule_details: @@ -4421,7 +4420,7 @@ def update_fsu_action_update_cleanup_action_details(ctx, from_json, force, wait_ @cli_util.wrap_exceptions def update_fsu_collection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_collection_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(fsu_collection_id, six.string_types) and len(fsu_collection_id.strip()) == 0: + if isinstance(fsu_collection_id, str) and len(fsu_collection_id.strip()) == 0: raise click.UsageError('Parameter --fsu-collection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4501,7 +4500,7 @@ def update_fsu_collection(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_fsu_cycle(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, type, display_name, goal_version_details, batching_strategy, diagnostics_collection, freeform_tags, defined_tags, if_match): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if goal_version_details or batching_strategy or diagnostics_collection or freeform_tags or defined_tags: @@ -4594,7 +4593,7 @@ def update_fsu_cycle(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_fsu_cycle_update_patch_fsu_cycle(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, display_name, goal_version_details, batching_strategy, diagnostics_collection, freeform_tags, defined_tags, is_ignore_patches, is_ignore_missing_patches, max_drain_timeout_in_seconds, is_keep_placement, if_match): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if goal_version_details or batching_strategy or diagnostics_collection or freeform_tags or defined_tags or is_ignore_missing_patches: @@ -4697,7 +4696,7 @@ def update_fsu_cycle_update_patch_fsu_cycle(ctx, from_json, force, wait_for_stat @cli_util.wrap_exceptions def update_fsu_cycle_update_upgrade_fsu_cycle(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, display_name, goal_version_details, batching_strategy, diagnostics_collection, freeform_tags, defined_tags, upgrade_details, if_match): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if goal_version_details or batching_strategy or diagnostics_collection or freeform_tags or defined_tags or upgrade_details: @@ -4792,7 +4791,7 @@ def update_fsu_cycle_update_upgrade_fsu_cycle(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_fsu_cycle_exadb_stack_fsu_goal_version_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, goal_version_details_components, display_name, batching_strategy, diagnostics_collection, freeform_tags, defined_tags, if_match, goal_version_details_home_policy, goal_version_details_new_home_prefix): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if batching_strategy or diagnostics_collection or freeform_tags or defined_tags: @@ -4889,7 +4888,7 @@ def update_fsu_cycle_exadb_stack_fsu_goal_version_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_fsu_cycle_version_fsu_target_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, goal_version_details_version, display_name, batching_strategy, diagnostics_collection, freeform_tags, defined_tags, if_match, goal_version_details_home_policy, goal_version_details_new_home_prefix): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if batching_strategy or diagnostics_collection or freeform_tags or defined_tags: @@ -4986,7 +4985,7 @@ def update_fsu_cycle_version_fsu_target_details(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_fsu_cycle_image_id_fsu_target_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, goal_version_details_software_image_id, display_name, batching_strategy, diagnostics_collection, freeform_tags, defined_tags, if_match, goal_version_details_home_policy, goal_version_details_new_home_prefix): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if batching_strategy or diagnostics_collection or freeform_tags or defined_tags: @@ -5081,7 +5080,7 @@ def update_fsu_cycle_image_id_fsu_target_details(ctx, from_json, force, wait_for @cli_util.wrap_exceptions def update_fsu_cycle_update_sequential_batching_strategy_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, display_name, goal_version_details, diagnostics_collection, freeform_tags, defined_tags, if_match, batching_strategy_is_force_rolling): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if goal_version_details or diagnostics_collection or freeform_tags or defined_tags: @@ -5171,7 +5170,7 @@ def update_fsu_cycle_update_sequential_batching_strategy_details(ctx, from_json, @cli_util.wrap_exceptions def update_fsu_cycle_update_non_rolling_batching_strategy_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, display_name, goal_version_details, diagnostics_collection, freeform_tags, defined_tags, if_match): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if goal_version_details or diagnostics_collection or freeform_tags or defined_tags: @@ -5260,7 +5259,7 @@ def update_fsu_cycle_update_non_rolling_batching_strategy_details(ctx, from_json @cli_util.wrap_exceptions def update_fsu_cycle_update_service_availability_factor_batching_strategy_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, display_name, goal_version_details, diagnostics_collection, freeform_tags, defined_tags, if_match, batching_strategy_percentage, batching_strategy_is_force_rolling): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if goal_version_details or diagnostics_collection or freeform_tags or defined_tags: @@ -5355,7 +5354,7 @@ def update_fsu_cycle_update_service_availability_factor_batching_strategy_detail @cli_util.wrap_exceptions def update_fsu_cycle_update_fifty_fifty_batching_strategy_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, display_name, goal_version_details, diagnostics_collection, freeform_tags, defined_tags, if_match, batching_strategy_is_wait_for_batch_resume, batching_strategy_is_force_rolling): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if goal_version_details or diagnostics_collection or freeform_tags or defined_tags: @@ -5448,7 +5447,7 @@ def update_fsu_cycle_update_fifty_fifty_batching_strategy_details(ctx, from_json @cli_util.wrap_exceptions def update_fsu_cycle_none_batching_strategy_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, display_name, goal_version_details, diagnostics_collection, freeform_tags, defined_tags, if_match): - if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0: + if isinstance(fsu_cycle_id, str) and len(fsu_cycle_id.strip()) == 0: raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string') if not force: if goal_version_details or diagnostics_collection or freeform_tags or defined_tags: @@ -5530,7 +5529,7 @@ def update_fsu_cycle_none_batching_strategy_details(ctx, from_json, force, wait_ @cli_util.wrap_exceptions def update_fsu_discovery(ctx, from_json, force, fsu_discovery_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(fsu_discovery_id, six.string_types) and len(fsu_discovery_id.strip()) == 0: + if isinstance(fsu_discovery_id, str) and len(fsu_discovery_id.strip()) == 0: raise click.UsageError('Parameter --fsu-discovery-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5579,7 +5578,7 @@ def update_fsu_discovery(ctx, from_json, force, fsu_discovery_id, display_name, @cli_util.wrap_exceptions def update_fsu_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_job_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(fsu_job_id, six.string_types) and len(fsu_job_id.strip()) == 0: + if isinstance(fsu_job_id, str) and len(fsu_job_id.strip()) == 0: raise click.UsageError('Parameter --fsu-job-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5651,7 +5650,7 @@ def update_fsu_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_fsu_readiness_check(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_readiness_check_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(fsu_readiness_check_id, six.string_types) and len(fsu_readiness_check_id.strip()) == 0: + if isinstance(fsu_readiness_check_id, str) and len(fsu_readiness_check_id.strip()) == 0: raise click.UsageError('Parameter --fsu-readiness-check-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/functions/src/oci_cli_functions_invoke/generated/functionsinvoke_cli.py b/services/functions/src/oci_cli_functions_invoke/generated/functionsinvoke_cli.py index 9cafd1897..7a3af0282 100644 --- a/services/functions/src/oci_cli_functions_invoke/generated/functionsinvoke_cli.py +++ b/services/functions/src/oci_cli_functions_invoke/generated/functionsinvoke_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -46,7 +45,7 @@ def function_group(): @cli_util.wrap_exceptions def invoke_function(ctx, from_json, file, function_id, invoke_function_body, fn_intent, fn_invoke_type, is_dry_run): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/functions/src/oci_cli_functions_management/generated/functionsmanagement_cli.py b/services/functions/src/oci_cli_functions_management/generated/functionsmanagement_cli.py index b1a6171b9..a267973d8 100644 --- a/services/functions/src/oci_cli_functions_management/generated/functionsmanagement_cli.py +++ b/services/functions/src/oci_cli_functions_management/generated/functionsmanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -71,7 +70,7 @@ def pbf_listing_version_group(): @cli_util.wrap_exceptions def change_application_compartment(ctx, from_json, application_id, compartment_id, if_match): - if isinstance(application_id, six.string_types) and len(application_id.strip()) == 0: + if isinstance(application_id, str) and len(application_id.strip()) == 0: raise click.UsageError('Parameter --application-id cannot be whitespace or empty string') kwargs = {} @@ -1531,7 +1530,7 @@ def create_function_none_success_destination_details(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def delete_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, application_id, if_match): - if isinstance(application_id, six.string_types) and len(application_id.strip()) == 0: + if isinstance(application_id, str) and len(application_id.strip()) == 0: raise click.UsageError('Parameter --application-id cannot be whitespace or empty string') kwargs = {} @@ -1595,7 +1594,7 @@ def delete_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_function(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') kwargs = {} @@ -1654,7 +1653,7 @@ def delete_function(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def get_application(ctx, from_json, application_id): - if isinstance(application_id, six.string_types) and len(application_id.strip()) == 0: + if isinstance(application_id, str) and len(application_id.strip()) == 0: raise click.UsageError('Parameter --application-id cannot be whitespace or empty string') kwargs = {} @@ -1676,7 +1675,7 @@ def get_application(ctx, from_json, application_id): @cli_util.wrap_exceptions def get_function(ctx, from_json, function_id): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') kwargs = {} @@ -1698,7 +1697,7 @@ def get_function(ctx, from_json, function_id): @cli_util.wrap_exceptions def get_pbf_listing(ctx, from_json, pbf_listing_id): - if isinstance(pbf_listing_id, six.string_types) and len(pbf_listing_id.strip()) == 0: + if isinstance(pbf_listing_id, str) and len(pbf_listing_id.strip()) == 0: raise click.UsageError('Parameter --pbf-listing-id cannot be whitespace or empty string') kwargs = {} @@ -1720,7 +1719,7 @@ def get_pbf_listing(ctx, from_json, pbf_listing_id): @cli_util.wrap_exceptions def get_pbf_listing_version(ctx, from_json, pbf_listing_version_id): - if isinstance(pbf_listing_version_id, six.string_types) and len(pbf_listing_version_id.strip()) == 0: + if isinstance(pbf_listing_version_id, str) and len(pbf_listing_version_id.strip()) == 0: raise click.UsageError('Parameter --pbf-listing-version-id cannot be whitespace or empty string') kwargs = {} @@ -2108,7 +2107,7 @@ def list_triggers(ctx, from_json, all_pages, page_size, name, limit, page, sort_ @cli_util.wrap_exceptions def update_application(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, application_id, config, network_security_group_ids, syslog_url, trace_config, logging, freeform_tags, defined_tags, image_policy_config, security_attributes, if_match): - if isinstance(application_id, six.string_types) and len(application_id.strip()) == 0: + if isinstance(application_id, str) and len(application_id.strip()) == 0: raise click.UsageError('Parameter --application-id cannot be whitespace or empty string') if not force: if config or network_security_group_ids or trace_config or logging or freeform_tags or defined_tags or image_policy_config or security_attributes: @@ -2213,7 +2212,7 @@ def update_application(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_function(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, provisioned_concurrency_config, detached_mode_timeout_in_seconds, failure_destination, success_destination, trace_config, freeform_tags, defined_tags, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or provisioned_concurrency_config or failure_destination or success_destination or trace_config or freeform_tags or defined_tags: @@ -2326,7 +2325,7 @@ def update_function(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_function_none_provisioned_concurrency_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, detached_mode_timeout_in_seconds, failure_destination, success_destination, trace_config, freeform_tags, defined_tags, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or failure_destination or success_destination or trace_config or freeform_tags or defined_tags: @@ -2440,7 +2439,7 @@ def update_function_none_provisioned_concurrency_config(ctx, from_json, force, w @cli_util.wrap_exceptions def update_function_constant_provisioned_concurrency_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, provisioned_concurrency_config_count, image, image_digest, memory_in_mbs, config, timeout_in_seconds, detached_mode_timeout_in_seconds, failure_destination, success_destination, trace_config, freeform_tags, defined_tags, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or failure_destination or success_destination or trace_config or freeform_tags or defined_tags: @@ -2555,7 +2554,7 @@ def update_function_constant_provisioned_concurrency_config(ctx, from_json, forc @cli_util.wrap_exceptions def update_function_stream_failure_destination_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, failure_destination_stream_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, provisioned_concurrency_config, detached_mode_timeout_in_seconds, success_destination, trace_config, freeform_tags, defined_tags, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or provisioned_concurrency_config or success_destination or trace_config or freeform_tags or defined_tags: @@ -2671,7 +2670,7 @@ def update_function_stream_failure_destination_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_function_queue_failure_destination_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, failure_destination_queue_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, provisioned_concurrency_config, detached_mode_timeout_in_seconds, success_destination, trace_config, freeform_tags, defined_tags, if_match, failure_destination_channel_id): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or provisioned_concurrency_config or success_destination or trace_config or freeform_tags or defined_tags: @@ -2789,7 +2788,7 @@ def update_function_queue_failure_destination_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_function_notification_failure_destination_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, failure_destination_topic_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, provisioned_concurrency_config, detached_mode_timeout_in_seconds, success_destination, trace_config, freeform_tags, defined_tags, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or provisioned_concurrency_config or success_destination or trace_config or freeform_tags or defined_tags: @@ -2903,7 +2902,7 @@ def update_function_notification_failure_destination_details(ctx, from_json, for @cli_util.wrap_exceptions def update_function_none_failure_destination_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, provisioned_concurrency_config, detached_mode_timeout_in_seconds, success_destination, trace_config, freeform_tags, defined_tags, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or provisioned_concurrency_config or success_destination or trace_config or freeform_tags or defined_tags: @@ -3017,7 +3016,7 @@ def update_function_none_failure_destination_details(ctx, from_json, force, wait @cli_util.wrap_exceptions def update_function_stream_success_destination_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, success_destination_stream_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, provisioned_concurrency_config, detached_mode_timeout_in_seconds, failure_destination, trace_config, freeform_tags, defined_tags, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or provisioned_concurrency_config or failure_destination or trace_config or freeform_tags or defined_tags: @@ -3132,7 +3131,7 @@ def update_function_stream_success_destination_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_function_notification_success_destination_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, success_destination_topic_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, provisioned_concurrency_config, detached_mode_timeout_in_seconds, failure_destination, trace_config, freeform_tags, defined_tags, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or provisioned_concurrency_config or failure_destination or trace_config or freeform_tags or defined_tags: @@ -3248,7 +3247,7 @@ def update_function_notification_success_destination_details(ctx, from_json, for @cli_util.wrap_exceptions def update_function_queue_success_destination_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, success_destination_queue_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, provisioned_concurrency_config, detached_mode_timeout_in_seconds, failure_destination, trace_config, freeform_tags, defined_tags, if_match, success_destination_channel_id): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or provisioned_concurrency_config or failure_destination or trace_config or freeform_tags or defined_tags: @@ -3365,7 +3364,7 @@ def update_function_queue_success_destination_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_function_none_success_destination_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, function_id, image, image_digest, memory_in_mbs, config, timeout_in_seconds, provisioned_concurrency_config, detached_mode_timeout_in_seconds, failure_destination, trace_config, freeform_tags, defined_tags, if_match): - if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0: + if isinstance(function_id, str) and len(function_id.strip()) == 0: raise click.UsageError('Parameter --function-id cannot be whitespace or empty string') if not force: if config or provisioned_concurrency_config or failure_destination or trace_config or freeform_tags or defined_tags: diff --git a/services/fusion_apps/src/oci_cli_fusion_applications/generated/fusionapplications_cli.py b/services/fusion_apps/src/oci_cli_fusion_applications/generated/fusionapplications_cli.py index 0ae1d31f0..1cc0e367c 100644 --- a/services/fusion_apps/src/oci_cli_fusion_applications/generated/fusionapplications_cli.py +++ b/services/fusion_apps/src/oci_cli_fusion_applications/generated/fusionapplications_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -171,7 +170,7 @@ def scheduled_activity_group(): @cli_util.wrap_exceptions def change_fusion_environment_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, compartment_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -232,7 +231,7 @@ def change_fusion_environment_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_fusion_environment_family_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_family_id, compartment_id, if_match): - if isinstance(fusion_environment_family_id, six.string_types) and len(fusion_environment_family_id.strip()) == 0: + if isinstance(fusion_environment_family_id, str) and len(fusion_environment_family_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-family-id cannot be whitespace or empty string') kwargs = {} @@ -292,7 +291,7 @@ def change_fusion_environment_family_compartment(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def create_data_masking_activity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, is_resume_data_masking): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -357,10 +356,10 @@ def create_data_masking_activity(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def create_email_subdomain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, name, dns_management, certificate_management, freeform_tags, defined_tags): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') kwargs = {} @@ -527,7 +526,7 @@ def create_fusion_environment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def create_fusion_environment_admin_user(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, username, email_address, first_name, last_name, fusion_environment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -659,7 +658,7 @@ def create_fusion_environment_family(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def create_marketing_brand(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, name, freeform_tags, defined_tags): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -724,10 +723,10 @@ def create_marketing_brand(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def create_microsite(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, name, dns_management, certificate_management, freeform_tags, defined_tags): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') kwargs = {} @@ -792,7 +791,7 @@ def create_microsite(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def create_refresh_activity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, source_fusion_environment_id, is_data_masking_opted, time_scheduled_start): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -857,7 +856,7 @@ def create_refresh_activity(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def create_service_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_instance_type, service_instance_id, fusion_environment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -922,7 +921,7 @@ def create_service_attachment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def create_vanity_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, origin_cert_request_type, cdn_cert_request_type, vanity_domain, dns_managed_by, prefix, certificate_info, change_management_link): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -1002,7 +1001,7 @@ def create_vanity_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def create_vanity_domain_activity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vanity_domain_id, time_scheduled, operation_type, fusion_environment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -1065,13 +1064,13 @@ def create_vanity_domain_activity(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_email_subdomain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, email_subdomain_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(email_subdomain_id, six.string_types) and len(email_subdomain_id.strip()) == 0: + if isinstance(email_subdomain_id, str) and len(email_subdomain_id.strip()) == 0: raise click.UsageError('Parameter --email-subdomain-id cannot be whitespace or empty string') kwargs = {} @@ -1129,7 +1128,7 @@ def delete_email_subdomain(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_fusion_environment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -1186,10 +1185,10 @@ def delete_fusion_environment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_fusion_environment_admin_user(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, admin_username, fusion_environment_id, if_match): - if isinstance(admin_username, six.string_types) and len(admin_username.strip()) == 0: + if isinstance(admin_username, str) and len(admin_username.strip()) == 0: raise click.UsageError('Parameter --admin-username cannot be whitespace or empty string') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -1246,7 +1245,7 @@ def delete_fusion_environment_admin_user(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def delete_fusion_environment_family(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_family_id, if_match): - if isinstance(fusion_environment_family_id, six.string_types) and len(fusion_environment_family_id.strip()) == 0: + if isinstance(fusion_environment_family_id, str) and len(fusion_environment_family_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-family-id cannot be whitespace or empty string') kwargs = {} @@ -1303,10 +1302,10 @@ def delete_fusion_environment_family(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_marketing_brand(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') kwargs = {} @@ -1365,13 +1364,13 @@ def delete_marketing_brand(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_microsite(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, microsite_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(microsite_id, six.string_types) and len(microsite_id.strip()) == 0: + if isinstance(microsite_id, str) and len(microsite_id.strip()) == 0: raise click.UsageError('Parameter --microsite-id cannot be whitespace or empty string') kwargs = {} @@ -1430,10 +1429,10 @@ def delete_microsite(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_refresh_activity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, refresh_activity_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(refresh_activity_id, six.string_types) and len(refresh_activity_id.strip()) == 0: + if isinstance(refresh_activity_id, str) and len(refresh_activity_id.strip()) == 0: raise click.UsageError('Parameter --refresh-activity-id cannot be whitespace or empty string') kwargs = {} @@ -1491,10 +1490,10 @@ def delete_refresh_activity(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_service_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, service_attachment_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(service_attachment_id, six.string_types) and len(service_attachment_id.strip()) == 0: + if isinstance(service_attachment_id, str) and len(service_attachment_id.strip()) == 0: raise click.UsageError('Parameter --service-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -1552,10 +1551,10 @@ def delete_service_attachment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_vanity_domain_activity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, vanity_domain_activity_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(vanity_domain_activity_id, six.string_types) and len(vanity_domain_activity_id.strip()) == 0: + if isinstance(vanity_domain_activity_id, str) and len(vanity_domain_activity_id.strip()) == 0: raise click.UsageError('Parameter --vanity-domain-activity-id cannot be whitespace or empty string') kwargs = {} @@ -1607,7 +1606,7 @@ def delete_vanity_domain_activity(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def generate_extract_details(ctx, from_json, fusion_environment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -1630,10 +1629,10 @@ def generate_extract_details(ctx, from_json, fusion_environment_id): @cli_util.wrap_exceptions def get_data_masking_activity(ctx, from_json, fusion_environment_id, data_masking_activity_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(data_masking_activity_id, six.string_types) and len(data_masking_activity_id.strip()) == 0: + if isinstance(data_masking_activity_id, str) and len(data_masking_activity_id.strip()) == 0: raise click.UsageError('Parameter --data-masking-activity-id cannot be whitespace or empty string') kwargs = {} @@ -1658,13 +1657,13 @@ def get_data_masking_activity(ctx, from_json, fusion_environment_id, data_maskin @cli_util.wrap_exceptions def get_email_subdomain(ctx, from_json, fusion_environment_id, marketing_brand_id, email_subdomain_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(email_subdomain_id, six.string_types) and len(email_subdomain_id.strip()) == 0: + if isinstance(email_subdomain_id, str) and len(email_subdomain_id.strip()) == 0: raise click.UsageError('Parameter --email-subdomain-id cannot be whitespace or empty string') kwargs = {} @@ -1690,13 +1689,13 @@ def get_email_subdomain(ctx, from_json, fusion_environment_id, marketing_brand_i @cli_util.wrap_exceptions def get_email_subdomain_csr(ctx, from_json, fusion_environment_id, marketing_brand_id, email_subdomain_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(email_subdomain_id, six.string_types) and len(email_subdomain_id.strip()) == 0: + if isinstance(email_subdomain_id, str) and len(email_subdomain_id.strip()) == 0: raise click.UsageError('Parameter --email-subdomain-id cannot be whitespace or empty string') kwargs = {} @@ -1722,13 +1721,13 @@ def get_email_subdomain_csr(ctx, from_json, fusion_environment_id, marketing_bra @cli_util.wrap_exceptions def get_email_subdomain_dns_config(ctx, from_json, fusion_environment_id, marketing_brand_id, email_subdomain_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(email_subdomain_id, six.string_types) and len(email_subdomain_id.strip()) == 0: + if isinstance(email_subdomain_id, str) and len(email_subdomain_id.strip()) == 0: raise click.UsageError('Parameter --email-subdomain-id cannot be whitespace or empty string') kwargs = {} @@ -1752,7 +1751,7 @@ def get_email_subdomain_dns_config(ctx, from_json, fusion_environment_id, market @cli_util.wrap_exceptions def get_fusion_environment(ctx, from_json, fusion_environment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -1774,7 +1773,7 @@ def get_fusion_environment(ctx, from_json, fusion_environment_id): @cli_util.wrap_exceptions def get_fusion_environment_family(ctx, from_json, fusion_environment_family_id): - if isinstance(fusion_environment_family_id, six.string_types) and len(fusion_environment_family_id.strip()) == 0: + if isinstance(fusion_environment_family_id, str) and len(fusion_environment_family_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-family-id cannot be whitespace or empty string') kwargs = {} @@ -1796,7 +1795,7 @@ def get_fusion_environment_family(ctx, from_json, fusion_environment_family_id): @cli_util.wrap_exceptions def get_fusion_environment_family_limits_and_usage(ctx, from_json, fusion_environment_family_id): - if isinstance(fusion_environment_family_id, six.string_types) and len(fusion_environment_family_id.strip()) == 0: + if isinstance(fusion_environment_family_id, str) and len(fusion_environment_family_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-family-id cannot be whitespace or empty string') kwargs = {} @@ -1818,7 +1817,7 @@ def get_fusion_environment_family_limits_and_usage(ctx, from_json, fusion_enviro @cli_util.wrap_exceptions def get_fusion_environment_family_subscription_detail(ctx, from_json, fusion_environment_family_id): - if isinstance(fusion_environment_family_id, six.string_types) and len(fusion_environment_family_id.strip()) == 0: + if isinstance(fusion_environment_family_id, str) and len(fusion_environment_family_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-family-id cannot be whitespace or empty string') kwargs = {} @@ -1840,7 +1839,7 @@ def get_fusion_environment_family_subscription_detail(ctx, from_json, fusion_env @cli_util.wrap_exceptions def get_fusion_environment_status(ctx, from_json, fusion_environment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -1863,10 +1862,10 @@ def get_fusion_environment_status(ctx, from_json, fusion_environment_id): @cli_util.wrap_exceptions def get_marketing_brand(ctx, from_json, fusion_environment_id, marketing_brand_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') kwargs = {} @@ -1891,13 +1890,13 @@ def get_marketing_brand(ctx, from_json, fusion_environment_id, marketing_brand_i @cli_util.wrap_exceptions def get_microsite(ctx, from_json, fusion_environment_id, marketing_brand_id, microsite_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(microsite_id, six.string_types) and len(microsite_id.strip()) == 0: + if isinstance(microsite_id, str) and len(microsite_id.strip()) == 0: raise click.UsageError('Parameter --microsite-id cannot be whitespace or empty string') kwargs = {} @@ -1923,13 +1922,13 @@ def get_microsite(ctx, from_json, fusion_environment_id, marketing_brand_id, mic @cli_util.wrap_exceptions def get_microsite_dns_config(ctx, from_json, fusion_environment_id, marketing_brand_id, microsite_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(microsite_id, six.string_types) and len(microsite_id.strip()) == 0: + if isinstance(microsite_id, str) and len(microsite_id.strip()) == 0: raise click.UsageError('Parameter --microsite-id cannot be whitespace or empty string') kwargs = {} @@ -1954,10 +1953,10 @@ def get_microsite_dns_config(ctx, from_json, fusion_environment_id, marketing_br @cli_util.wrap_exceptions def get_refresh_activity(ctx, from_json, fusion_environment_id, refresh_activity_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(refresh_activity_id, six.string_types) and len(refresh_activity_id.strip()) == 0: + if isinstance(refresh_activity_id, str) and len(refresh_activity_id.strip()) == 0: raise click.UsageError('Parameter --refresh-activity-id cannot be whitespace or empty string') kwargs = {} @@ -1981,10 +1980,10 @@ def get_refresh_activity(ctx, from_json, fusion_environment_id, refresh_activity @cli_util.wrap_exceptions def get_scheduled_activity(ctx, from_json, fusion_environment_id, scheduled_activity_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(scheduled_activity_id, six.string_types) and len(scheduled_activity_id.strip()) == 0: + if isinstance(scheduled_activity_id, str) and len(scheduled_activity_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-activity-id cannot be whitespace or empty string') kwargs = {} @@ -2008,10 +2007,10 @@ def get_scheduled_activity(ctx, from_json, fusion_environment_id, scheduled_acti @cli_util.wrap_exceptions def get_service_attachment(ctx, from_json, fusion_environment_id, service_attachment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(service_attachment_id, six.string_types) and len(service_attachment_id.strip()) == 0: + if isinstance(service_attachment_id, str) and len(service_attachment_id.strip()) == 0: raise click.UsageError('Parameter --service-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -2037,10 +2036,10 @@ def get_service_attachment(ctx, from_json, fusion_environment_id, service_attach @cli_util.wrap_exceptions def get_vanity_domain(ctx, from_json, fusion_environment_id, vanity_domain_id, does_download_origin_csr, does_download_akamai_csr): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(vanity_domain_id, six.string_types) and len(vanity_domain_id.strip()) == 0: + if isinstance(vanity_domain_id, str) and len(vanity_domain_id.strip()) == 0: raise click.UsageError('Parameter --vanity-domain-id cannot be whitespace or empty string') kwargs = {} @@ -2068,10 +2067,10 @@ def get_vanity_domain(ctx, from_json, fusion_environment_id, vanity_domain_id, d @cli_util.wrap_exceptions def get_vanity_domain_activity(ctx, from_json, fusion_environment_id, vanity_domain_activity_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(vanity_domain_activity_id, six.string_types) and len(vanity_domain_activity_id.strip()) == 0: + if isinstance(vanity_domain_activity_id, str) and len(vanity_domain_activity_id.strip()) == 0: raise click.UsageError('Parameter --vanity-domain-activity-id cannot be whitespace or empty string') kwargs = {} @@ -2094,7 +2093,7 @@ def get_vanity_domain_activity(ctx, from_json, fusion_environment_id, vanity_dom @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2119,7 +2118,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def initiate_extract(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -2169,7 +2168,7 @@ def initiate_extract(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def list_admin_users(ctx, from_json, all_pages, fusion_environment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -2201,7 +2200,7 @@ def list_data_masking_activities(ctx, from_json, all_pages, page_size, fusion_en if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -2264,10 +2263,10 @@ def list_email_subdomains(ctx, from_json, all_pages, page_size, fusion_environme if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') kwargs = {} @@ -2462,7 +2461,7 @@ def list_marketing_brands(ctx, from_json, all_pages, page_size, fusion_environme if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -2529,10 +2528,10 @@ def list_microsites(ctx, from_json, all_pages, page_size, fusion_environment_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') kwargs = {} @@ -2602,7 +2601,7 @@ def list_refresh_activities(ctx, from_json, all_pages, page_size, fusion_environ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -2674,7 +2673,7 @@ def list_scheduled_activities(ctx, from_json, all_pages, page_size, fusion_envir if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -2748,7 +2747,7 @@ def list_service_attachments(ctx, from_json, all_pages, page_size, fusion_enviro if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -2811,7 +2810,7 @@ def list_time_available_for_refreshes(ctx, from_json, all_pages, page_size, fusi if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -2870,7 +2869,7 @@ def list_vanity_domains(ctx, from_json, all_pages, page_size, fusion_environment if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -2933,7 +2932,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2990,7 +2989,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3109,13 +3108,13 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, sta @cli_util.wrap_exceptions def request_email_subdomain_csr(ctx, from_json, fusion_environment_id, marketing_brand_id, email_subdomain_id, common_name, organization_name, organization_unit, locality, state, country, email_address, sans, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(email_subdomain_id, six.string_types) and len(email_subdomain_id.strip()) == 0: + if isinstance(email_subdomain_id, str) and len(email_subdomain_id.strip()) == 0: raise click.UsageError('Parameter --email-subdomain-id cannot be whitespace or empty string') kwargs = {} @@ -3161,10 +3160,10 @@ def request_email_subdomain_csr(ctx, from_json, fusion_environment_id, marketing @cli_util.wrap_exceptions def reset_fusion_environment_password(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, password, fusion_environment_id, admin_username, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(admin_username, six.string_types) and len(admin_username.strip()) == 0: + if isinstance(admin_username, str) and len(admin_username.strip()) == 0: raise click.UsageError('Parameter --admin-username cannot be whitespace or empty string') kwargs = {} @@ -3226,10 +3225,10 @@ def reset_fusion_environment_password(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def submit_vanity_domain_validation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vanity_domain_id, fusion_environment_id, if_match): - if isinstance(vanity_domain_id, six.string_types) and len(vanity_domain_id.strip()) == 0: + if isinstance(vanity_domain_id, str) and len(vanity_domain_id.strip()) == 0: raise click.UsageError('Parameter --vanity-domain-id cannot be whitespace or empty string') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -3290,13 +3289,13 @@ def submit_vanity_domain_validation(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_email_subdomain(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, email_subdomain_id, freeform_tags, defined_tags, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(email_subdomain_id, six.string_types) and len(email_subdomain_id.strip()) == 0: + if isinstance(email_subdomain_id, str) and len(email_subdomain_id.strip()) == 0: raise click.UsageError('Parameter --email-subdomain-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3377,7 +3376,7 @@ def update_email_subdomain(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_fusion_environment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, display_name, kms_key_id, maintenance_policy, additional_language_packs, is_i_pv6_dual_stack_enabled, rules, additional_egress_rules, freeform_tags, defined_tags, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') if not force: if maintenance_policy or additional_language_packs or rules or additional_egress_rules or freeform_tags or defined_tags: @@ -3473,7 +3472,7 @@ def update_fusion_environment(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_fusion_environment_family(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_family_id, display_name, family_maintenance_policy, subscription_ids, freeform_tags, defined_tags, if_match): - if isinstance(fusion_environment_family_id, six.string_types) and len(fusion_environment_family_id.strip()) == 0: + if isinstance(fusion_environment_family_id, str) and len(fusion_environment_family_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-family-id cannot be whitespace or empty string') if not force: if family_maintenance_policy or subscription_ids or freeform_tags or defined_tags: @@ -3555,10 +3554,10 @@ def update_fusion_environment_family(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_marketing_brand(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, freeform_tags, defined_tags, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3629,13 +3628,13 @@ def update_marketing_brand(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_microsite(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, microsite_id, freeform_tags, defined_tags, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(microsite_id, six.string_types) and len(microsite_id.strip()) == 0: + if isinstance(microsite_id, str) and len(microsite_id.strip()) == 0: raise click.UsageError('Parameter --microsite-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3704,10 +3703,10 @@ def update_microsite(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_refresh_activity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, refresh_activity_id, time_scheduled_start, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(refresh_activity_id, six.string_types) and len(refresh_activity_id.strip()) == 0: + if isinstance(refresh_activity_id, str) and len(refresh_activity_id.strip()) == 0: raise click.UsageError('Parameter --refresh-activity-id cannot be whitespace or empty string') kwargs = {} @@ -3769,10 +3768,10 @@ def update_refresh_activity(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_vanity_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, vanity_domain_id, certificate_info, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(vanity_domain_id, six.string_types) and len(vanity_domain_id.strip()) == 0: + if isinstance(vanity_domain_id, str) and len(vanity_domain_id.strip()) == 0: raise click.UsageError('Parameter --vanity-domain-id cannot be whitespace or empty string') if not force: if certificate_info: @@ -3841,10 +3840,10 @@ def update_vanity_domain(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_vanity_domain_activity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, vanity_domain_activity_id, time_scheduled, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(vanity_domain_activity_id, six.string_types) and len(vanity_domain_activity_id.strip()) == 0: + if isinstance(vanity_domain_activity_id, str) and len(vanity_domain_activity_id.strip()) == 0: raise click.UsageError('Parameter --vanity-domain-activity-id cannot be whitespace or empty string') kwargs = {} @@ -3909,13 +3908,13 @@ def update_vanity_domain_activity(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def upload_email_subdomain_certificate(ctx, from_json, fusion_environment_id, marketing_brand_id, email_subdomain_id, common_name, certificate_pem, certificate_chain_pem, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(email_subdomain_id, six.string_types) and len(email_subdomain_id.strip()) == 0: + if isinstance(email_subdomain_id, str) and len(email_subdomain_id.strip()) == 0: raise click.UsageError('Parameter --email-subdomain-id cannot be whitespace or empty string') kwargs = {} @@ -3959,10 +3958,10 @@ def upload_email_subdomain_certificate(ctx, from_json, fusion_environment_id, ma @cli_util.wrap_exceptions def upload_vanity_domain_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, is_akamai, common_name, certificate_pem, vanity_domain_id, fusion_environment_id, certificate_chain_pem, if_match): - if isinstance(vanity_domain_id, six.string_types) and len(vanity_domain_id.strip()) == 0: + if isinstance(vanity_domain_id, str) and len(vanity_domain_id.strip()) == 0: raise click.UsageError('Parameter --vanity-domain-id cannot be whitespace or empty string') - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} @@ -4030,13 +4029,13 @@ def upload_vanity_domain_certificate(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def validate_and_configure_email_subdomain_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, email_subdomain_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(email_subdomain_id, six.string_types) and len(email_subdomain_id.strip()) == 0: + if isinstance(email_subdomain_id, str) and len(email_subdomain_id.strip()) == 0: raise click.UsageError('Parameter --email-subdomain-id cannot be whitespace or empty string') kwargs = {} @@ -4095,13 +4094,13 @@ def validate_and_configure_email_subdomain_certificate(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def validate_and_configure_email_subdomain_dns(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, email_subdomain_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(email_subdomain_id, six.string_types) and len(email_subdomain_id.strip()) == 0: + if isinstance(email_subdomain_id, str) and len(email_subdomain_id.strip()) == 0: raise click.UsageError('Parameter --email-subdomain-id cannot be whitespace or empty string') kwargs = {} @@ -4160,13 +4159,13 @@ def validate_and_configure_email_subdomain_dns(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def validate_and_configure_microsite_dns(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fusion_environment_id, marketing_brand_id, microsite_id, if_match): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') - if isinstance(marketing_brand_id, six.string_types) and len(marketing_brand_id.strip()) == 0: + if isinstance(marketing_brand_id, str) and len(marketing_brand_id.strip()) == 0: raise click.UsageError('Parameter --marketing-brand-id cannot be whitespace or empty string') - if isinstance(microsite_id, six.string_types) and len(microsite_id.strip()) == 0: + if isinstance(microsite_id, str) and len(microsite_id.strip()) == 0: raise click.UsageError('Parameter --microsite-id cannot be whitespace or empty string') kwargs = {} @@ -4221,7 +4220,7 @@ def validate_and_configure_microsite_dns(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def verify_service_attachment(ctx, from_json, service_instance_type, service_instance_id, fusion_environment_id): - if isinstance(fusion_environment_id, six.string_types) and len(fusion_environment_id.strip()) == 0: + if isinstance(fusion_environment_id, str) and len(fusion_environment_id.strip()) == 0: raise click.UsageError('Parameter --fusion-environment-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/gdp/src/oci_cli_guarded_data_pipeline/generated/guardeddatapipeline_cli.py b/services/gdp/src/oci_cli_guarded_data_pipeline/generated/guardeddatapipeline_cli.py index 61ac2f43f..535895ded 100644 --- a/services/gdp/src/oci_cli_guarded_data_pipeline/generated/guardeddatapipeline_cli.py +++ b/services/gdp/src/oci_cli_guarded_data_pipeline/generated/guardeddatapipeline_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -63,7 +62,7 @@ def work_request_log_entry_group(): @cli_util.wrap_exceptions def change_gdp_pipeline_compartment(ctx, from_json, gdp_pipeline_id, compartment_id, if_match): - if isinstance(gdp_pipeline_id, six.string_types) and len(gdp_pipeline_id.strip()) == 0: + if isinstance(gdp_pipeline_id, str) and len(gdp_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --gdp-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -172,7 +171,7 @@ def create_gdp_pipeline(ctx, from_json, compartment_id, display_name, pipeline_t @cli_util.wrap_exceptions def delete_gdp_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, gdp_pipeline_id, if_match): - if isinstance(gdp_pipeline_id, six.string_types) and len(gdp_pipeline_id.strip()) == 0: + if isinstance(gdp_pipeline_id, str) and len(gdp_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --gdp-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -231,7 +230,7 @@ def delete_gdp_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_gdp_pipeline(ctx, from_json, gdp_pipeline_id): - if isinstance(gdp_pipeline_id, six.string_types) and len(gdp_pipeline_id.strip()) == 0: + if isinstance(gdp_pipeline_id, str) and len(gdp_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --gdp-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -253,7 +252,7 @@ def get_gdp_pipeline(ctx, from_json, gdp_pipeline_id): @cli_util.wrap_exceptions def get_gdp_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -346,7 +345,7 @@ def list_gdp_work_request_errors(ctx, from_json, all_pages, page_size, work_requ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -403,7 +402,7 @@ def list_gdp_work_request_logs(ctx, from_json, all_pages, page_size, work_reques if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -516,7 +515,7 @@ def list_gdp_work_requests(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def peer_gdp_pipeline(ctx, from_json, peering_gdp_pipeline_id, gdp_pipeline_id, peer_validation_nonce, if_match): - if isinstance(gdp_pipeline_id, six.string_types) and len(gdp_pipeline_id.strip()) == 0: + if isinstance(gdp_pipeline_id, str) and len(gdp_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --gdp-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -549,7 +548,7 @@ def peer_gdp_pipeline(ctx, from_json, peering_gdp_pipeline_id, gdp_pipeline_id, @cli_util.wrap_exceptions def rotate_gdp_pipeline_keys(ctx, from_json, gdp_pipeline_id, if_match): - if isinstance(gdp_pipeline_id, six.string_types) and len(gdp_pipeline_id.strip()) == 0: + if isinstance(gdp_pipeline_id, str) and len(gdp_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --gdp-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -574,7 +573,7 @@ def rotate_gdp_pipeline_keys(ctx, from_json, gdp_pipeline_id, if_match): @cli_util.wrap_exceptions def start_gdp_pipeline(ctx, from_json, gdp_pipeline_id, if_match): - if isinstance(gdp_pipeline_id, six.string_types) and len(gdp_pipeline_id.strip()) == 0: + if isinstance(gdp_pipeline_id, str) and len(gdp_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --gdp-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -599,7 +598,7 @@ def start_gdp_pipeline(ctx, from_json, gdp_pipeline_id, if_match): @cli_util.wrap_exceptions def stop_gdp_pipeline(ctx, from_json, gdp_pipeline_id, if_match): - if isinstance(gdp_pipeline_id, six.string_types) and len(gdp_pipeline_id.strip()) == 0: + if isinstance(gdp_pipeline_id, str) and len(gdp_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --gdp-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -637,7 +636,7 @@ def stop_gdp_pipeline(ctx, from_json, gdp_pipeline_id, if_match): @cli_util.wrap_exceptions def update_gdp_pipeline(ctx, from_json, force, gdp_pipeline_id, display_name, description, service_log_group_id, file_types, authorization_details, is_file_override_in_destination_enabled, is_scanning_enabled, is_chunking_enabled, is_approval_needed, approval_key_vault_id, freeform_tags, defined_tags, if_match): - if isinstance(gdp_pipeline_id, six.string_types) and len(gdp_pipeline_id.strip()) == 0: + if isinstance(gdp_pipeline_id, str) and len(gdp_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --gdp-pipeline-id cannot be whitespace or empty string') if not force: if file_types or freeform_tags or defined_tags: diff --git a/services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py b/services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py index 7dc702d49..67f91eba8 100644 --- a/services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py +++ b/services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -303,7 +302,7 @@ def imported_model_collection_group(): @cli_util.wrap_exceptions def add_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact, hosted_deployment_id, freeform_tags, defined_tags, if_match): - if isinstance(hosted_deployment_id, six.string_types) and len(hosted_deployment_id.strip()) == 0: + if isinstance(hosted_deployment_id, str) and len(hosted_deployment_id.strip()) == 0: raise click.UsageError('Parameter --hosted-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -378,7 +377,7 @@ def add_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def add_artifact_create_single_docker_artifact_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, hosted_deployment_id, freeform_tags, defined_tags, if_match, artifact_is_vulnerability_scan_required, artifact_container_uri, artifact_tag): - if isinstance(hosted_deployment_id, six.string_types) and len(hosted_deployment_id.strip()) == 0: + if isinstance(hosted_deployment_id, str) and len(hosted_deployment_id.strip()) == 0: raise click.UsageError('Parameter --hosted-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -456,7 +455,7 @@ def add_artifact_create_single_docker_artifact_details(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def cancel_vector_store_connector_file_sync(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vector_store_connector_file_sync_id, if_match): - if isinstance(vector_store_connector_file_sync_id, six.string_types) and len(vector_store_connector_file_sync_id.strip()) == 0: + if isinstance(vector_store_connector_file_sync_id, str) and len(vector_store_connector_file_sync_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-file-sync-id cannot be whitespace or empty string') kwargs = {} @@ -509,7 +508,7 @@ def cancel_vector_store_connector_file_sync(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def change_api_key_compartment(ctx, from_json, api_key_id, compartment_id, if_match): - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -540,7 +539,7 @@ def change_api_key_compartment(ctx, from_json, api_key_id, compartment_id, if_ma @cli_util.wrap_exceptions def change_dedicated_ai_cluster_compartment(ctx, from_json, dedicated_ai_cluster_id, compartment_id, if_match): - if isinstance(dedicated_ai_cluster_id, six.string_types) and len(dedicated_ai_cluster_id.strip()) == 0: + if isinstance(dedicated_ai_cluster_id, str) and len(dedicated_ai_cluster_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-ai-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -571,7 +570,7 @@ def change_dedicated_ai_cluster_compartment(ctx, from_json, dedicated_ai_cluster @cli_util.wrap_exceptions def change_endpoint_compartment(ctx, from_json, endpoint_id, compartment_id, if_match): - if isinstance(endpoint_id, six.string_types) and len(endpoint_id.strip()) == 0: + if isinstance(endpoint_id, str) and len(endpoint_id.strip()) == 0: raise click.UsageError('Parameter --endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -605,7 +604,7 @@ def change_endpoint_compartment(ctx, from_json, endpoint_id, compartment_id, if_ @cli_util.wrap_exceptions def change_generative_ai_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, generative_ai_private_endpoint_id, compartment_id, if_match): - if isinstance(generative_ai_private_endpoint_id, six.string_types) and len(generative_ai_private_endpoint_id.strip()) == 0: + if isinstance(generative_ai_private_endpoint_id, str) and len(generative_ai_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --generative-ai-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -663,7 +662,7 @@ def change_generative_ai_private_endpoint_compartment(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def change_generative_ai_project_compartment(ctx, from_json, generative_ai_project_id, compartment_id, if_match): - if isinstance(generative_ai_project_id, six.string_types) and len(generative_ai_project_id.strip()) == 0: + if isinstance(generative_ai_project_id, str) and len(generative_ai_project_id.strip()) == 0: raise click.UsageError('Parameter --generative-ai-project-id cannot be whitespace or empty string') kwargs = {} @@ -694,7 +693,7 @@ def change_generative_ai_project_compartment(ctx, from_json, generative_ai_proje @cli_util.wrap_exceptions def change_hosted_application_compartment(ctx, from_json, hosted_application_id, compartment_id, if_match): - if isinstance(hosted_application_id, six.string_types) and len(hosted_application_id.strip()) == 0: + if isinstance(hosted_application_id, str) and len(hosted_application_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-id cannot be whitespace or empty string') kwargs = {} @@ -725,7 +724,7 @@ def change_hosted_application_compartment(ctx, from_json, hosted_application_id, @cli_util.wrap_exceptions def change_hosted_application_iam_compartment(ctx, from_json, hosted_application_iam_id, compartment_id, if_match): - if isinstance(hosted_application_iam_id, six.string_types) and len(hosted_application_iam_id.strip()) == 0: + if isinstance(hosted_application_iam_id, str) and len(hosted_application_iam_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-iam-id cannot be whitespace or empty string') kwargs = {} @@ -756,7 +755,7 @@ def change_hosted_application_iam_compartment(ctx, from_json, hosted_application @cli_util.wrap_exceptions def change_hosted_application_storage_compartment(ctx, from_json, hosted_application_storage_id, compartment_id, if_match): - if isinstance(hosted_application_storage_id, six.string_types) and len(hosted_application_storage_id.strip()) == 0: + if isinstance(hosted_application_storage_id, str) and len(hosted_application_storage_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-storage-id cannot be whitespace or empty string') kwargs = {} @@ -787,7 +786,7 @@ def change_hosted_application_storage_compartment(ctx, from_json, hosted_applica @cli_util.wrap_exceptions def change_imported_model_compartment(ctx, from_json, imported_model_id, compartment_id, if_match): - if isinstance(imported_model_id, six.string_types) and len(imported_model_id.strip()) == 0: + if isinstance(imported_model_id, str) and len(imported_model_id.strip()) == 0: raise click.UsageError('Parameter --imported-model-id cannot be whitespace or empty string') kwargs = {} @@ -818,7 +817,7 @@ def change_imported_model_compartment(ctx, from_json, imported_model_id, compart @cli_util.wrap_exceptions def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -852,7 +851,7 @@ def change_model_compartment(ctx, from_json, model_id, compartment_id, if_match) @cli_util.wrap_exceptions def change_semantic_store_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, compartment_id, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') kwargs = {} @@ -3295,7 +3294,7 @@ def create_vector_store_connector_file_sync(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def delete_api_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, api_key_id, if_match): - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -3361,7 +3360,7 @@ def delete_api_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_dedicated_ai_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dedicated_ai_cluster_id, if_match): - if isinstance(dedicated_ai_cluster_id, six.string_types) and len(dedicated_ai_cluster_id.strip()) == 0: + if isinstance(dedicated_ai_cluster_id, str) and len(dedicated_ai_cluster_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-ai-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -3417,7 +3416,7 @@ def delete_dedicated_ai_cluster(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, endpoint_id, if_match): - if isinstance(endpoint_id, six.string_types) and len(endpoint_id.strip()) == 0: + if isinstance(endpoint_id, str) and len(endpoint_id.strip()) == 0: raise click.UsageError('Parameter --endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3473,7 +3472,7 @@ def delete_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_generative_ai_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, generative_ai_private_endpoint_id, if_match): - if isinstance(generative_ai_private_endpoint_id, six.string_types) and len(generative_ai_private_endpoint_id.strip()) == 0: + if isinstance(generative_ai_private_endpoint_id, str) and len(generative_ai_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --generative-ai-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3529,7 +3528,7 @@ def delete_generative_ai_private_endpoint(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def delete_generative_ai_project(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, generative_ai_project_id, if_match): - if isinstance(generative_ai_project_id, six.string_types) and len(generative_ai_project_id.strip()) == 0: + if isinstance(generative_ai_project_id, str) and len(generative_ai_project_id.strip()) == 0: raise click.UsageError('Parameter --generative-ai-project-id cannot be whitespace or empty string') kwargs = {} @@ -3585,7 +3584,7 @@ def delete_generative_ai_project(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_hosted_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, hosted_application_id, if_match): - if isinstance(hosted_application_id, six.string_types) and len(hosted_application_id.strip()) == 0: + if isinstance(hosted_application_id, str) and len(hosted_application_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-id cannot be whitespace or empty string') kwargs = {} @@ -3641,7 +3640,7 @@ def delete_hosted_application(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_hosted_application_iam(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, hosted_application_iam_id, if_match): - if isinstance(hosted_application_iam_id, six.string_types) and len(hosted_application_iam_id.strip()) == 0: + if isinstance(hosted_application_iam_id, str) and len(hosted_application_iam_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-iam-id cannot be whitespace or empty string') kwargs = {} @@ -3697,7 +3696,7 @@ def delete_hosted_application_iam(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_hosted_application_storage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, hosted_application_storage_id, if_match): - if isinstance(hosted_application_storage_id, six.string_types) and len(hosted_application_storage_id.strip()) == 0: + if isinstance(hosted_application_storage_id, str) and len(hosted_application_storage_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-storage-id cannot be whitespace or empty string') kwargs = {} @@ -3753,7 +3752,7 @@ def delete_hosted_application_storage(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_hosted_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, hosted_deployment_id, if_match): - if isinstance(hosted_deployment_id, six.string_types) and len(hosted_deployment_id.strip()) == 0: + if isinstance(hosted_deployment_id, str) and len(hosted_deployment_id.strip()) == 0: raise click.UsageError('Parameter --hosted-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -3810,10 +3809,10 @@ def delete_hosted_deployment(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_hosted_deployment_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, hosted_deployment_id, artifact_id, if_match): - if isinstance(hosted_deployment_id, six.string_types) and len(hosted_deployment_id.strip()) == 0: + if isinstance(hosted_deployment_id, str) and len(hosted_deployment_id.strip()) == 0: raise click.UsageError('Parameter --hosted-deployment-id cannot be whitespace or empty string') - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') kwargs = {} @@ -3870,7 +3869,7 @@ def delete_hosted_deployment_artifact(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def delete_imported_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, imported_model_id, if_match): - if isinstance(imported_model_id, six.string_types) and len(imported_model_id.strip()) == 0: + if isinstance(imported_model_id, str) and len(imported_model_id.strip()) == 0: raise click.UsageError('Parameter --imported-model-id cannot be whitespace or empty string') kwargs = {} @@ -3926,7 +3925,7 @@ def delete_imported_model(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -3982,7 +3981,7 @@ def delete_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_semantic_store(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') kwargs = {} @@ -4038,7 +4037,7 @@ def delete_semantic_store(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_vector_store_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vector_store_connector_id, if_match): - if isinstance(vector_store_connector_id, six.string_types) and len(vector_store_connector_id.strip()) == 0: + if isinstance(vector_store_connector_id, str) and len(vector_store_connector_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-id cannot be whitespace or empty string') kwargs = {} @@ -4089,7 +4088,7 @@ def delete_vector_store_connector(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def get_api_key(ctx, from_json, api_key_id): - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -4111,7 +4110,7 @@ def get_api_key(ctx, from_json, api_key_id): @cli_util.wrap_exceptions def get_dedicated_ai_cluster(ctx, from_json, dedicated_ai_cluster_id): - if isinstance(dedicated_ai_cluster_id, six.string_types) and len(dedicated_ai_cluster_id.strip()) == 0: + if isinstance(dedicated_ai_cluster_id, str) and len(dedicated_ai_cluster_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-ai-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -4133,7 +4132,7 @@ def get_dedicated_ai_cluster(ctx, from_json, dedicated_ai_cluster_id): @cli_util.wrap_exceptions def get_endpoint(ctx, from_json, endpoint_id): - if isinstance(endpoint_id, six.string_types) and len(endpoint_id.strip()) == 0: + if isinstance(endpoint_id, str) and len(endpoint_id.strip()) == 0: raise click.UsageError('Parameter --endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -4155,7 +4154,7 @@ def get_endpoint(ctx, from_json, endpoint_id): @cli_util.wrap_exceptions def get_generative_ai_private_endpoint(ctx, from_json, generative_ai_private_endpoint_id): - if isinstance(generative_ai_private_endpoint_id, six.string_types) and len(generative_ai_private_endpoint_id.strip()) == 0: + if isinstance(generative_ai_private_endpoint_id, str) and len(generative_ai_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --generative-ai-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -4177,7 +4176,7 @@ def get_generative_ai_private_endpoint(ctx, from_json, generative_ai_private_end @cli_util.wrap_exceptions def get_generative_ai_project(ctx, from_json, generative_ai_project_id): - if isinstance(generative_ai_project_id, six.string_types) and len(generative_ai_project_id.strip()) == 0: + if isinstance(generative_ai_project_id, str) and len(generative_ai_project_id.strip()) == 0: raise click.UsageError('Parameter --generative-ai-project-id cannot be whitespace or empty string') kwargs = {} @@ -4199,7 +4198,7 @@ def get_generative_ai_project(ctx, from_json, generative_ai_project_id): @cli_util.wrap_exceptions def get_hosted_application(ctx, from_json, hosted_application_id): - if isinstance(hosted_application_id, six.string_types) and len(hosted_application_id.strip()) == 0: + if isinstance(hosted_application_id, str) and len(hosted_application_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-id cannot be whitespace or empty string') kwargs = {} @@ -4221,7 +4220,7 @@ def get_hosted_application(ctx, from_json, hosted_application_id): @cli_util.wrap_exceptions def get_hosted_application_iam(ctx, from_json, hosted_application_iam_id): - if isinstance(hosted_application_iam_id, six.string_types) and len(hosted_application_iam_id.strip()) == 0: + if isinstance(hosted_application_iam_id, str) and len(hosted_application_iam_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-iam-id cannot be whitespace or empty string') kwargs = {} @@ -4243,7 +4242,7 @@ def get_hosted_application_iam(ctx, from_json, hosted_application_iam_id): @cli_util.wrap_exceptions def get_hosted_application_storage(ctx, from_json, hosted_application_storage_id): - if isinstance(hosted_application_storage_id, six.string_types) and len(hosted_application_storage_id.strip()) == 0: + if isinstance(hosted_application_storage_id, str) and len(hosted_application_storage_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-storage-id cannot be whitespace or empty string') kwargs = {} @@ -4265,7 +4264,7 @@ def get_hosted_application_storage(ctx, from_json, hosted_application_storage_id @cli_util.wrap_exceptions def get_hosted_deployment(ctx, from_json, hosted_deployment_id): - if isinstance(hosted_deployment_id, six.string_types) and len(hosted_deployment_id.strip()) == 0: + if isinstance(hosted_deployment_id, str) and len(hosted_deployment_id.strip()) == 0: raise click.UsageError('Parameter --hosted-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -4287,7 +4286,7 @@ def get_hosted_deployment(ctx, from_json, hosted_deployment_id): @cli_util.wrap_exceptions def get_imported_model(ctx, from_json, imported_model_id): - if isinstance(imported_model_id, six.string_types) and len(imported_model_id.strip()) == 0: + if isinstance(imported_model_id, str) and len(imported_model_id.strip()) == 0: raise click.UsageError('Parameter --imported-model-id cannot be whitespace or empty string') kwargs = {} @@ -4309,7 +4308,7 @@ def get_imported_model(ctx, from_json, imported_model_id): @cli_util.wrap_exceptions def get_model(ctx, from_json, model_id): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') kwargs = {} @@ -4331,7 +4330,7 @@ def get_model(ctx, from_json, model_id): @cli_util.wrap_exceptions def get_semantic_store(ctx, from_json, semantic_store_id): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') kwargs = {} @@ -4353,7 +4352,7 @@ def get_semantic_store(ctx, from_json, semantic_store_id): @cli_util.wrap_exceptions def get_vector_store_connector(ctx, from_json, vector_store_connector_id): - if isinstance(vector_store_connector_id, six.string_types) and len(vector_store_connector_id.strip()) == 0: + if isinstance(vector_store_connector_id, str) and len(vector_store_connector_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-id cannot be whitespace or empty string') kwargs = {} @@ -4375,7 +4374,7 @@ def get_vector_store_connector(ctx, from_json, vector_store_connector_id): @cli_util.wrap_exceptions def get_vector_store_connector_file_sync(ctx, from_json, vector_store_connector_file_sync_id): - if isinstance(vector_store_connector_file_sync_id, six.string_types) and len(vector_store_connector_file_sync_id.strip()) == 0: + if isinstance(vector_store_connector_file_sync_id, str) and len(vector_store_connector_file_sync_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-file-sync-id cannot be whitespace or empty string') kwargs = {} @@ -4397,7 +4396,7 @@ def get_vector_store_connector_file_sync(ctx, from_json, vector_store_connector_ @cli_util.wrap_exceptions def get_vector_store_connector_stats(ctx, from_json, vector_store_connector_id): - if isinstance(vector_store_connector_id, six.string_types) and len(vector_store_connector_id.strip()) == 0: + if isinstance(vector_store_connector_id, str) and len(vector_store_connector_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-id cannot be whitespace or empty string') kwargs = {} @@ -4419,7 +4418,7 @@ def get_vector_store_connector_stats(ctx, from_json, vector_store_connector_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -5233,7 +5232,7 @@ def list_vector_store_connector_file_sync_ingestion_logs(ctx, from_json, all_pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vector_store_connector_file_sync_id, six.string_types) and len(vector_store_connector_file_sync_id.strip()) == 0: + if isinstance(vector_store_connector_file_sync_id, str) and len(vector_store_connector_file_sync_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-file-sync-id cannot be whitespace or empty string') kwargs = {} @@ -5359,7 +5358,7 @@ def list_vector_store_connector_ingestion_logs(ctx, from_json, all_pages, page_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vector_store_connector_id, six.string_types) and len(vector_store_connector_id.strip()) == 0: + if isinstance(vector_store_connector_id, str) and len(vector_store_connector_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-id cannot be whitespace or empty string') kwargs = {} @@ -5484,7 +5483,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -5541,7 +5540,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -5663,7 +5662,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def renew_api_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, api_key_id, details, freeform_tags, defined_tags, if_match): - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -5733,7 +5732,7 @@ def renew_api_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def set_api_key_state(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, api_key_id, key_name, state, freeform_tags, defined_tags, if_match): - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -5805,7 +5804,7 @@ def set_api_key_state(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_api_key(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, api_key_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5886,7 +5885,7 @@ def update_api_key(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_dedicated_ai_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dedicated_ai_cluster_id, display_name, description, unit_count, freeform_tags, defined_tags, if_match): - if isinstance(dedicated_ai_cluster_id, six.string_types) and len(dedicated_ai_cluster_id.strip()) == 0: + if isinstance(dedicated_ai_cluster_id, str) and len(dedicated_ai_cluster_id.strip()) == 0: raise click.UsageError('Parameter --dedicated-ai-cluster-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5977,7 +5976,7 @@ def update_dedicated_ai_cluster(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, endpoint_id, display_name, description, generative_ai_private_endpoint_id, content_moderation_config, prompt_injection_config, pii_detection_config, freeform_tags, defined_tags, if_match): - if isinstance(endpoint_id, six.string_types) and len(endpoint_id.strip()) == 0: + if isinstance(endpoint_id, str) and len(endpoint_id.strip()) == 0: raise click.UsageError('Parameter --endpoint-id cannot be whitespace or empty string') if not force: if content_moderation_config or prompt_injection_config or pii_detection_config or freeform_tags or defined_tags: @@ -6077,7 +6076,7 @@ def update_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_generative_ai_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, generative_ai_private_endpoint_id, description, display_name, dns_prefix, nsg_ids, is_allow_on_demand, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(generative_ai_private_endpoint_id, six.string_types) and len(generative_ai_private_endpoint_id.strip()) == 0: + if isinstance(generative_ai_private_endpoint_id, str) and len(generative_ai_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --generative-ai-private-endpoint-id cannot be whitespace or empty string') if not force: if nsg_ids or freeform_tags or defined_tags or security_attributes: @@ -6176,7 +6175,7 @@ def update_generative_ai_private_endpoint(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_generative_ai_project(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, generative_ai_project_id, description, display_name, conversation_config, long_term_memory_config, short_term_memory_optimization_config, freeform_tags, defined_tags, if_match): - if isinstance(generative_ai_project_id, six.string_types) and len(generative_ai_project_id.strip()) == 0: + if isinstance(generative_ai_project_id, str) and len(generative_ai_project_id.strip()) == 0: raise click.UsageError('Parameter --generative-ai-project-id cannot be whitespace or empty string') if not force: if conversation_config or long_term_memory_config or short_term_memory_optimization_config or freeform_tags or defined_tags: @@ -6274,7 +6273,7 @@ def update_generative_ai_project(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_hosted_application(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, hosted_application_id, inbound_auth_config, display_name, description, scaling_config, environment_variables, freeform_tags, defined_tags, if_match): - if isinstance(hosted_application_id, six.string_types) and len(hosted_application_id.strip()) == 0: + if isinstance(hosted_application_id, str) and len(hosted_application_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-id cannot be whitespace or empty string') if not force: if inbound_auth_config or scaling_config or environment_variables or freeform_tags or defined_tags: @@ -6371,7 +6370,7 @@ def update_hosted_application(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_hosted_application_iam(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, hosted_application_iam_id, display_name, description, scaling_config, environment_variables, freeform_tags, defined_tags, if_match): - if isinstance(hosted_application_iam_id, six.string_types) and len(hosted_application_iam_id.strip()) == 0: + if isinstance(hosted_application_iam_id, str) and len(hosted_application_iam_id.strip()) == 0: raise click.UsageError('Parameter --hosted-application-iam-id cannot be whitespace or empty string') if not force: if scaling_config or environment_variables or freeform_tags or defined_tags: @@ -6460,7 +6459,7 @@ def update_hosted_application_iam(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_hosted_deployment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, hosted_deployment_id, active_artifact, freeform_tags, defined_tags, if_match): - if isinstance(hosted_deployment_id, six.string_types) and len(hosted_deployment_id.strip()) == 0: + if isinstance(hosted_deployment_id, str) and len(hosted_deployment_id.strip()) == 0: raise click.UsageError('Parameter --hosted-deployment-id cannot be whitespace or empty string') if not force: if active_artifact or freeform_tags or defined_tags: @@ -6541,7 +6540,7 @@ def update_hosted_deployment(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_imported_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, imported_model_id, display_name, description, vendor, version_parameterconflict, freeform_tags, defined_tags, if_match): - if isinstance(imported_model_id, six.string_types) and len(imported_model_id.strip()) == 0: + if isinstance(imported_model_id, str) and len(imported_model_id.strip()) == 0: raise click.UsageError('Parameter --imported-model-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6633,7 +6632,7 @@ def update_imported_model(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, model_id, display_name, description, vendor, version_parameterconflict, freeform_tags, defined_tags, if_match): - if isinstance(model_id, six.string_types) and len(model_id.strip()) == 0: + if isinstance(model_id, str) and len(model_id.strip()) == 0: raise click.UsageError('Parameter --model-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6723,7 +6722,7 @@ def update_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_semantic_store(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, description, display_name, model_selection, is_user_defined_semantics_enabled, refresh_schedule, schemas, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') if not force: if model_selection or refresh_schedule or schemas or freeform_tags or defined_tags: @@ -6818,7 +6817,7 @@ def update_semantic_store(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_semantic_store_default_semantic_store_model_selection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, description, display_name, is_user_defined_semantics_enabled, refresh_schedule, schemas, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') if not force: if refresh_schedule or schemas or freeform_tags or defined_tags: @@ -6914,7 +6913,7 @@ def update_semantic_store_default_semantic_store_model_selection(ctx, from_json, @cli_util.wrap_exceptions def update_semantic_store_custom_semantic_store_model_selection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, model_selection_model_id, description, display_name, is_user_defined_semantics_enabled, refresh_schedule, schemas, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') if not force: if refresh_schedule or schemas or freeform_tags or defined_tags: @@ -7010,7 +7009,7 @@ def update_semantic_store_custom_semantic_store_model_selection(ctx, from_json, @cli_util.wrap_exceptions def update_semantic_store_refresh_schedule_on_create_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, description, display_name, model_selection, is_user_defined_semantics_enabled, schemas, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') if not force: if model_selection or schemas or freeform_tags or defined_tags: @@ -7105,7 +7104,7 @@ def update_semantic_store_refresh_schedule_on_create_details(ctx, from_json, for @cli_util.wrap_exceptions def update_semantic_store_refresh_schedule_none_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, description, display_name, model_selection, is_user_defined_semantics_enabled, schemas, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') if not force: if model_selection or schemas or freeform_tags or defined_tags: @@ -7201,7 +7200,7 @@ def update_semantic_store_refresh_schedule_none_details(ctx, from_json, force, w @cli_util.wrap_exceptions def update_semantic_store_refresh_schedule_interval_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, refresh_schedule_value, description, display_name, model_selection, is_user_defined_semantics_enabled, schemas, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') if not force: if model_selection or schemas or freeform_tags or defined_tags: @@ -7298,7 +7297,7 @@ def update_semantic_store_refresh_schedule_interval_details(ctx, from_json, forc @cli_util.wrap_exceptions def update_semantic_store_create_schemas_database_tools_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, schemas_schemas, description, display_name, model_selection, is_user_defined_semantics_enabled, refresh_schedule, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') if not force: if model_selection or refresh_schedule or freeform_tags or defined_tags: @@ -7393,7 +7392,7 @@ def update_semantic_store_create_schemas_database_tools_connection_details(ctx, @cli_util.wrap_exceptions def update_vector_store_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vector_store_connector_id, description, display_name, schedule_config, configuration, freeform_tags, defined_tags, if_match): - if isinstance(vector_store_connector_id, six.string_types) and len(vector_store_connector_id.strip()) == 0: + if isinstance(vector_store_connector_id, str) and len(vector_store_connector_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-id cannot be whitespace or empty string') if not force: if schedule_config or configuration or freeform_tags or defined_tags: @@ -7488,7 +7487,7 @@ def update_vector_store_connector(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_vector_store_connector_schedule_cron_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vector_store_connector_id, schedule_config_cron_expression, description, display_name, configuration, freeform_tags, defined_tags, if_match, schedule_config_state, schedule_config_time_start, schedule_config_time_end): - if isinstance(vector_store_connector_id, six.string_types) and len(vector_store_connector_id.strip()) == 0: + if isinstance(vector_store_connector_id, str) and len(vector_store_connector_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-id cannot be whitespace or empty string') if not force: if configuration or freeform_tags or defined_tags: @@ -7594,7 +7593,7 @@ def update_vector_store_connector_schedule_cron_config(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_vector_store_connector_schedule_interval_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vector_store_connector_id, schedule_config_frequency, schedule_config_interval, description, display_name, configuration, freeform_tags, defined_tags, if_match, schedule_config_state, schedule_config_time_start, schedule_config_time_end): - if isinstance(vector_store_connector_id, six.string_types) and len(vector_store_connector_id.strip()) == 0: + if isinstance(vector_store_connector_id, str) and len(vector_store_connector_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-id cannot be whitespace or empty string') if not force: if configuration or freeform_tags or defined_tags: @@ -7697,7 +7696,7 @@ def update_vector_store_connector_schedule_interval_config(ctx, from_json, force @cli_util.wrap_exceptions def update_vector_store_connector_oci_object_storage_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vector_store_connector_id, configuration_storage_config_list, description, display_name, schedule_config, freeform_tags, defined_tags, if_match): - if isinstance(vector_store_connector_id, six.string_types) and len(vector_store_connector_id.strip()) == 0: + if isinstance(vector_store_connector_id, str) and len(vector_store_connector_id.strip()) == 0: raise click.UsageError('Parameter --vector-store-connector-id cannot be whitespace or empty string') if not force: if schedule_config or freeform_tags or defined_tags: diff --git a/services/generative_ai_agent/src/oci_cli_generative_ai_agent/generated/generativeaiagent_cli.py b/services/generative_ai_agent/src/oci_cli_generative_ai_agent/generated/generativeaiagent_cli.py index d3d1cced1..ae721cb01 100644 --- a/services/generative_ai_agent/src/oci_cli_generative_ai_agent/generated/generativeaiagent_cli.py +++ b/services/generative_ai_agent/src/oci_cli_generative_ai_agent/generated/generativeaiagent_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -127,7 +126,7 @@ def tool_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -156,7 +155,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_agent_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_id, compartment_id, if_match): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') kwargs = {} @@ -217,7 +216,7 @@ def change_agent_compartment(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def change_agent_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_endpoint_id, compartment_id, if_match): - if isinstance(agent_endpoint_id, six.string_types) and len(agent_endpoint_id.strip()) == 0: + if isinstance(agent_endpoint_id, str) and len(agent_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --agent-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -278,7 +277,7 @@ def change_agent_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_knowledge_base_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, knowledge_base_id, compartment_id, if_match): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') kwargs = {} @@ -339,7 +338,7 @@ def change_knowledge_base_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_provisioned_capacity_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, provisioned_capacity_id, compartment_id, if_match): - if isinstance(provisioned_capacity_id, six.string_types) and len(provisioned_capacity_id.strip()) == 0: + if isinstance(provisioned_capacity_id, str) and len(provisioned_capacity_id.strip()) == 0: raise click.UsageError('Parameter --provisioned-capacity-id cannot be whitespace or empty string') kwargs = {} @@ -1791,7 +1790,7 @@ def create_tool_rag_tool_config(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_agent(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_id, if_match): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') kwargs = {} @@ -1847,7 +1846,7 @@ def delete_agent(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_agent_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_endpoint_id, if_match): - if isinstance(agent_endpoint_id, six.string_types) and len(agent_endpoint_id.strip()) == 0: + if isinstance(agent_endpoint_id, str) and len(agent_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --agent-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -1903,7 +1902,7 @@ def delete_agent_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_data_ingestion_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, data_ingestion_job_id, if_match): - if isinstance(data_ingestion_job_id, six.string_types) and len(data_ingestion_job_id.strip()) == 0: + if isinstance(data_ingestion_job_id, str) and len(data_ingestion_job_id.strip()) == 0: raise click.UsageError('Parameter --data-ingestion-job-id cannot be whitespace or empty string') kwargs = {} @@ -1959,7 +1958,7 @@ def delete_data_ingestion_job(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, data_source_id, if_match): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') kwargs = {} @@ -2015,7 +2014,7 @@ def delete_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_knowledge_base(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, knowledge_base_id, if_match): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') kwargs = {} @@ -2071,7 +2070,7 @@ def delete_knowledge_base(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_provisioned_capacity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, provisioned_capacity_id, if_match): - if isinstance(provisioned_capacity_id, six.string_types) and len(provisioned_capacity_id.strip()) == 0: + if isinstance(provisioned_capacity_id, str) and len(provisioned_capacity_id.strip()) == 0: raise click.UsageError('Parameter --provisioned-capacity-id cannot be whitespace or empty string') kwargs = {} @@ -2127,7 +2126,7 @@ def delete_provisioned_capacity(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_tool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tool_id, if_match): - if isinstance(tool_id, six.string_types) and len(tool_id.strip()) == 0: + if isinstance(tool_id, str) and len(tool_id.strip()) == 0: raise click.UsageError('Parameter --tool-id cannot be whitespace or empty string') kwargs = {} @@ -2178,7 +2177,7 @@ def delete_tool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def get_agent(ctx, from_json, agent_id): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') kwargs = {} @@ -2200,7 +2199,7 @@ def get_agent(ctx, from_json, agent_id): @cli_util.wrap_exceptions def get_agent_endpoint(ctx, from_json, agent_endpoint_id): - if isinstance(agent_endpoint_id, six.string_types) and len(agent_endpoint_id.strip()) == 0: + if isinstance(agent_endpoint_id, str) and len(agent_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --agent-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2222,7 +2221,7 @@ def get_agent_endpoint(ctx, from_json, agent_endpoint_id): @cli_util.wrap_exceptions def get_data_ingestion_job(ctx, from_json, data_ingestion_job_id): - if isinstance(data_ingestion_job_id, six.string_types) and len(data_ingestion_job_id.strip()) == 0: + if isinstance(data_ingestion_job_id, str) and len(data_ingestion_job_id.strip()) == 0: raise click.UsageError('Parameter --data-ingestion-job-id cannot be whitespace or empty string') kwargs = {} @@ -2245,7 +2244,7 @@ def get_data_ingestion_job(ctx, from_json, data_ingestion_job_id): @cli_util.wrap_exceptions def get_data_ingestion_job_log_content(ctx, from_json, file, data_ingestion_job_id): - if isinstance(data_ingestion_job_id, six.string_types) and len(data_ingestion_job_id.strip()) == 0: + if isinstance(data_ingestion_job_id, str) and len(data_ingestion_job_id.strip()) == 0: raise click.UsageError('Parameter --data-ingestion-job-id cannot be whitespace or empty string') kwargs = {} @@ -2289,7 +2288,7 @@ def get_data_ingestion_job_log_content(ctx, from_json, file, data_ingestion_job_ @cli_util.wrap_exceptions def get_data_source(ctx, from_json, data_source_id): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') kwargs = {} @@ -2311,7 +2310,7 @@ def get_data_source(ctx, from_json, data_source_id): @cli_util.wrap_exceptions def get_knowledge_base(ctx, from_json, knowledge_base_id): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') kwargs = {} @@ -2333,7 +2332,7 @@ def get_knowledge_base(ctx, from_json, knowledge_base_id): @cli_util.wrap_exceptions def get_provisioned_capacity(ctx, from_json, provisioned_capacity_id): - if isinstance(provisioned_capacity_id, six.string_types) and len(provisioned_capacity_id.strip()) == 0: + if isinstance(provisioned_capacity_id, str) and len(provisioned_capacity_id.strip()) == 0: raise click.UsageError('Parameter --provisioned-capacity-id cannot be whitespace or empty string') kwargs = {} @@ -2355,7 +2354,7 @@ def get_provisioned_capacity(ctx, from_json, provisioned_capacity_id): @cli_util.wrap_exceptions def get_tool(ctx, from_json, tool_id): - if isinstance(tool_id, six.string_types) and len(tool_id.strip()) == 0: + if isinstance(tool_id, str) and len(tool_id.strip()) == 0: raise click.UsageError('Parameter --tool-id cannot be whitespace or empty string') kwargs = {} @@ -2377,7 +2376,7 @@ def get_tool(ctx, from_json, tool_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2836,7 +2835,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2893,7 +2892,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3019,7 +3018,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_agent(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_id, display_name, description, knowledge_base_ids, welcome_message, llm_config, freeform_tags, defined_tags, if_match): - if isinstance(agent_id, six.string_types) and len(agent_id.strip()) == 0: + if isinstance(agent_id, str) and len(agent_id.strip()) == 0: raise click.UsageError('Parameter --agent-id cannot be whitespace or empty string') if not force: if knowledge_base_ids or llm_config or freeform_tags or defined_tags: @@ -3122,7 +3121,7 @@ def update_agent(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_agent_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, agent_endpoint_id, display_name, description, content_moderation_config, guardrail_config, metadata, human_input_config, output_config, should_enable_trace, should_enable_citation, should_enable_multi_language, session_config, provisioned_capacity_config, freeform_tags, defined_tags, if_match): - if isinstance(agent_endpoint_id, six.string_types) and len(agent_endpoint_id.strip()) == 0: + if isinstance(agent_endpoint_id, str) and len(agent_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --agent-endpoint-id cannot be whitespace or empty string') if not force: if content_moderation_config or guardrail_config or metadata or human_input_config or output_config or session_config or provisioned_capacity_config or freeform_tags or defined_tags: @@ -3238,7 +3237,7 @@ def update_agent_endpoint(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_data_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_source_id, display_name, description, data_source_config, metadata, freeform_tags, defined_tags, if_match): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') if not force: if data_source_config or metadata or freeform_tags or defined_tags: @@ -3333,7 +3332,7 @@ def update_data_source(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_data_source_oci_object_storage_data_source_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, data_source_id, display_name, description, metadata, freeform_tags, defined_tags, if_match, data_source_config_should_enable_multi_modality, data_source_config_object_storage_prefixes): - if isinstance(data_source_id, six.string_types) and len(data_source_id.strip()) == 0: + if isinstance(data_source_id, str) and len(data_source_id.strip()) == 0: raise click.UsageError('Parameter --data-source-id cannot be whitespace or empty string') if not force: if metadata or freeform_tags or defined_tags: @@ -3430,7 +3429,7 @@ def update_data_source_oci_object_storage_data_source_config(ctx, from_json, for @cli_util.wrap_exceptions def update_knowledge_base(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, knowledge_base_id, display_name, description, index_config, freeform_tags, defined_tags, if_match): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') if not force: if index_config or freeform_tags or defined_tags: @@ -3518,7 +3517,7 @@ def update_knowledge_base(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_knowledge_base_default_index_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, knowledge_base_id, display_name, description, freeform_tags, defined_tags, if_match, index_config_should_enable_hybrid_search): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3610,7 +3609,7 @@ def update_knowledge_base_default_index_config(ctx, from_json, force, wait_for_s @cli_util.wrap_exceptions def update_knowledge_base_oci_database_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, knowledge_base_id, index_config_database_connection, index_config_database_functions, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3702,7 +3701,7 @@ def update_knowledge_base_oci_database_config(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_knowledge_base_oci_open_search_index_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, knowledge_base_id, index_config_cluster_id, index_config_secret_detail, index_config_indexes, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3793,7 +3792,7 @@ def update_knowledge_base_oci_open_search_index_config(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_provisioned_capacity(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, provisioned_capacity_id, display_name, description, number_of_units, freeform_tags, defined_tags, if_match): - if isinstance(provisioned_capacity_id, six.string_types) and len(provisioned_capacity_id.strip()) == 0: + if isinstance(provisioned_capacity_id, str) and len(provisioned_capacity_id.strip()) == 0: raise click.UsageError('Parameter --provisioned-capacity-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3882,7 +3881,7 @@ def update_provisioned_capacity(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_tool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tool_id, display_name, description, tool_config, metadata, freeform_tags, defined_tags, if_match): - if isinstance(tool_id, six.string_types) and len(tool_id.strip()) == 0: + if isinstance(tool_id, str) and len(tool_id.strip()) == 0: raise click.UsageError('Parameter --tool-id cannot be whitespace or empty string') if not force: if tool_config or metadata or freeform_tags or defined_tags: @@ -3983,7 +3982,7 @@ def update_tool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_tool_sql_tool_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tool_id, tool_config_dialect, display_name, description, metadata, freeform_tags, defined_tags, if_match, tool_config_icl_examples, tool_config_database_schema, tool_config_should_enable_sql_execution, tool_config_model_size, tool_config_should_enable_self_correction, tool_config_table_and_column_description, tool_config_generation_llm_customization, tool_config_database_connection, tool_config_runtime_version): - if isinstance(tool_id, six.string_types) and len(tool_id.strip()) == 0: + if isinstance(tool_id, str) and len(tool_id.strip()) == 0: raise click.UsageError('Parameter --tool-id cannot be whitespace or empty string') if not force: if metadata or freeform_tags or defined_tags: @@ -4103,7 +4102,7 @@ def update_tool_sql_tool_config(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_tool_function_calling_tool_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tool_id, tool_config_function, display_name, description, metadata, freeform_tags, defined_tags, if_match): - if isinstance(tool_id, six.string_types) and len(tool_id.strip()) == 0: + if isinstance(tool_id, str) and len(tool_id.strip()) == 0: raise click.UsageError('Parameter --tool-id cannot be whitespace or empty string') if not force: if metadata or freeform_tags or defined_tags: @@ -4198,7 +4197,7 @@ def update_tool_function_calling_tool_config(ctx, from_json, force, wait_for_sta @cli_util.wrap_exceptions def update_tool_http_endpoint_tool_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tool_id, tool_config_api_schema, tool_config_subnet_id, tool_config_http_endpoint_auth_config, display_name, description, metadata, freeform_tags, defined_tags, if_match): - if isinstance(tool_id, six.string_types) and len(tool_id.strip()) == 0: + if isinstance(tool_id, str) and len(tool_id.strip()) == 0: raise click.UsageError('Parameter --tool-id cannot be whitespace or empty string') if not force: if metadata or freeform_tags or defined_tags: @@ -4293,7 +4292,7 @@ def update_tool_http_endpoint_tool_config(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_tool_agent_tool_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tool_id, tool_config_agent_endpoint_id, display_name, description, metadata, freeform_tags, defined_tags, if_match): - if isinstance(tool_id, six.string_types) and len(tool_id.strip()) == 0: + if isinstance(tool_id, str) and len(tool_id.strip()) == 0: raise click.UsageError('Parameter --tool-id cannot be whitespace or empty string') if not force: if metadata or freeform_tags or defined_tags: @@ -4391,7 +4390,7 @@ def update_tool_agent_tool_config(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_tool_rag_tool_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tool_id, tool_config_knowledge_base_configs, display_name, description, metadata, freeform_tags, defined_tags, if_match, tool_config_generation_llm_customization, tool_config_runtime_version, tool_config_embedding_llm_customization, tool_config_reranking_llm_customization, tool_config_reasoning_llm_customization): - if isinstance(tool_id, six.string_types) and len(tool_id.strip()) == 0: + if isinstance(tool_id, str) and len(tool_id.strip()) == 0: raise click.UsageError('Parameter --tool-id cannot be whitespace or empty string') if not force: if metadata or freeform_tags or defined_tags: diff --git a/services/generative_ai_agent_runtime/src/oci_cli_generative_ai_agent_runtime/generated/generativeaiagentruntime_cli.py b/services/generative_ai_agent_runtime/src/oci_cli_generative_ai_agent_runtime/generated/generativeaiagentruntime_cli.py index 70cf49b74..68a46bcd5 100644 --- a/services/generative_ai_agent_runtime/src/oci_cli_generative_ai_agent_runtime/generated/generativeaiagentruntime_cli.py +++ b/services/generative_ai_agent_runtime/src/oci_cli_generative_ai_agent_runtime/generated/generativeaiagentruntime_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -73,7 +72,7 @@ def agent_endpoint_group(): @cli_util.wrap_exceptions def chat(ctx, from_json, agent_endpoint_id, user_message, should_stream, session_id, tool_parameters, tool_inputs, performed_actions, if_match): - if isinstance(agent_endpoint_id, six.string_types) and len(agent_endpoint_id.strip()) == 0: + if isinstance(agent_endpoint_id, str) and len(agent_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --agent-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -123,7 +122,7 @@ def chat(ctx, from_json, agent_endpoint_id, user_message, should_stream, session @cli_util.wrap_exceptions def create_session(ctx, from_json, agent_endpoint_id, display_name, description): - if isinstance(agent_endpoint_id, six.string_types) and len(agent_endpoint_id.strip()) == 0: + if isinstance(agent_endpoint_id, str) and len(agent_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --agent-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -158,10 +157,10 @@ def create_session(ctx, from_json, agent_endpoint_id, display_name, description) @cli_util.wrap_exceptions def delete_session(ctx, from_json, agent_endpoint_id, session_id, if_match): - if isinstance(agent_endpoint_id, six.string_types) and len(agent_endpoint_id.strip()) == 0: + if isinstance(agent_endpoint_id, str) and len(agent_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --agent-endpoint-id cannot be whitespace or empty string') - if isinstance(session_id, six.string_types) and len(session_id.strip()) == 0: + if isinstance(session_id, str) and len(session_id.strip()) == 0: raise click.UsageError('Parameter --session-id cannot be whitespace or empty string') kwargs = {} @@ -187,10 +186,10 @@ def delete_session(ctx, from_json, agent_endpoint_id, session_id, if_match): @cli_util.wrap_exceptions def get_session(ctx, from_json, agent_endpoint_id, session_id): - if isinstance(agent_endpoint_id, six.string_types) and len(agent_endpoint_id.strip()) == 0: + if isinstance(agent_endpoint_id, str) and len(agent_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --agent-endpoint-id cannot be whitespace or empty string') - if isinstance(session_id, six.string_types) and len(session_id.strip()) == 0: + if isinstance(session_id, str) and len(session_id.strip()) == 0: raise click.UsageError('Parameter --session-id cannot be whitespace or empty string') kwargs = {} @@ -217,7 +216,7 @@ def get_session(ctx, from_json, agent_endpoint_id, session_id): @cli_util.wrap_exceptions def retrieve_metadata(ctx, from_json, knowledge_base_id, filters, if_match): - if isinstance(knowledge_base_id, six.string_types) and len(knowledge_base_id.strip()) == 0: + if isinstance(knowledge_base_id, str) and len(knowledge_base_id.strip()) == 0: raise click.UsageError('Parameter --knowledge-base-id cannot be whitespace or empty string') kwargs = {} @@ -252,10 +251,10 @@ def retrieve_metadata(ctx, from_json, knowledge_base_id, filters, if_match): @cli_util.wrap_exceptions def update_session(ctx, from_json, agent_endpoint_id, session_id, display_name, description, if_match): - if isinstance(agent_endpoint_id, six.string_types) and len(agent_endpoint_id.strip()) == 0: + if isinstance(agent_endpoint_id, str) and len(agent_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --agent-endpoint-id cannot be whitespace or empty string') - if isinstance(session_id, six.string_types) and len(session_id.strip()) == 0: + if isinstance(session_id, str) and len(session_id.strip()) == 0: raise click.UsageError('Parameter --session-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/generative_ai_data/src/oci_cli_enrichment_job/enrichmentjob_cli_extended.py b/services/generative_ai_data/src/oci_cli_enrichment_job/enrichmentjob_cli_extended.py index 4d598c110..fdfa084da 100644 --- a/services/generative_ai_data/src/oci_cli_enrichment_job/enrichmentjob_cli_extended.py +++ b/services/generative_ai_data/src/oci_cli_enrichment_job/enrichmentjob_cli_extended.py @@ -4,7 +4,6 @@ from __future__ import print_function import click import oci -import six import sys from oci_cli import cli_util from oci_cli import custom_types @@ -52,10 +51,10 @@ def cancel_enrichment_job_extended(ctx, **kwargs): wait_interval_seconds = kwargs.pop('wait_interval_seconds', None) kwargs.pop('from_json', None) - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') - if isinstance(enrichment_job_id, six.string_types) and len(enrichment_job_id.strip()) == 0: + if isinstance(enrichment_job_id, str) and len(enrichment_job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') operation_kwargs = {} diff --git a/services/generative_ai_data/src/oci_cli_enrichment_job/generated/enrichmentjob_cli.py b/services/generative_ai_data/src/oci_cli_enrichment_job/generated/enrichmentjob_cli.py index 007702a3e..e47b8eb73 100644 --- a/services/generative_ai_data/src/oci_cli_enrichment_job/generated/enrichmentjob_cli.py +++ b/services/generative_ai_data/src/oci_cli_enrichment_job/generated/enrichmentjob_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,10 +52,10 @@ def enrichment_job_collection_group(): @cli_util.wrap_exceptions def cancel_enrichment_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, semantic_store_id, enrichment_job_id, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') - if isinstance(enrichment_job_id, six.string_types) and len(enrichment_job_id.strip()) == 0: + if isinstance(enrichment_job_id, str) and len(enrichment_job_id.strip()) == 0: raise click.UsageError('Parameter --enrichment-job-id cannot be whitespace or empty string') kwargs = {} @@ -111,7 +110,7 @@ def cancel_enrichment_job(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def generate_enrichment_job(ctx, from_json, enrichment_job_configuration, semantic_store_id, description, display_name, enrichment_job_type, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') kwargs = {} @@ -163,7 +162,7 @@ def generate_enrichment_job(ctx, from_json, enrichment_job_configuration, semant @cli_util.wrap_exceptions def generate_enrichment_job_delta_refresh_enrichment_job_configuration(ctx, from_json, semantic_store_id, enrichment_job_configuration_schema_name, description, display_name, enrichment_job_type, freeform_tags, defined_tags, if_match, enrichment_job_configuration_delta_refresh_schedule): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') kwargs = {} @@ -221,7 +220,7 @@ def generate_enrichment_job_delta_refresh_enrichment_job_configuration(ctx, from @cli_util.wrap_exceptions def generate_enrichment_job_partial_build_enrichment_job_configuration(ctx, from_json, semantic_store_id, enrichment_job_configuration_schema_name, enrichment_job_configuration_database_objects, description, display_name, enrichment_job_type, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') kwargs = {} @@ -276,7 +275,7 @@ def generate_enrichment_job_partial_build_enrichment_job_configuration(ctx, from @cli_util.wrap_exceptions def generate_enrichment_job_full_build_enrichment_job_configuration(ctx, from_json, semantic_store_id, enrichment_job_configuration_schema_name, description, display_name, enrichment_job_type, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') kwargs = {} @@ -324,10 +323,10 @@ def generate_enrichment_job_full_build_enrichment_job_configuration(ctx, from_js @cli_util.wrap_exceptions def get_enrichment_job(ctx, from_json, semantic_store_id, enrichment_job_id): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') - if isinstance(enrichment_job_id, six.string_types) and len(enrichment_job_id.strip()) == 0: + if isinstance(enrichment_job_id, str) and len(enrichment_job_id.strip()) == 0: raise click.UsageError('Parameter --enrichment-job-id cannot be whitespace or empty string') kwargs = {} @@ -362,7 +361,7 @@ def list_enrichment_jobs(ctx, from_json, all_pages, page_size, semantic_store_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/generative_ai_data/src/oci_cli_generate_sql/generated/generatesql_cli.py b/services/generative_ai_data/src/oci_cli_generate_sql/generated/generatesql_cli.py index f68adf614..c09c76c57 100644 --- a/services/generative_ai_data/src/oci_cli_generate_sql/generated/generatesql_cli.py +++ b/services/generative_ai_data/src/oci_cli_generate_sql/generated/generatesql_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def generate_sql_from_nl_job_group(): @cli_util.wrap_exceptions def generate_sql_from_nl(ctx, from_json, input_natural_language_query, semantic_store_id, description, display_name, model_id, completion_mode, freeform_tags, defined_tags, if_match): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') kwargs = {} @@ -105,10 +104,10 @@ def generate_sql_from_nl(ctx, from_json, input_natural_language_query, semantic_ @cli_util.wrap_exceptions def get_generate_sql_from_nl_job(ctx, from_json, semantic_store_id, generate_sql_from_nl_job_id): - if isinstance(semantic_store_id, six.string_types) and len(semantic_store_id.strip()) == 0: + if isinstance(semantic_store_id, str) and len(semantic_store_id.strip()) == 0: raise click.UsageError('Parameter --semantic-store-id cannot be whitespace or empty string') - if isinstance(generate_sql_from_nl_job_id, six.string_types) and len(generate_sql_from_nl_job_id.strip()) == 0: + if isinstance(generate_sql_from_nl_job_id, str) and len(generate_sql_from_nl_job_id.strip()) == 0: raise click.UsageError('Parameter --generate-sql-from-nl-job-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/generative_ai_inference/src/oci_cli_generative_ai_inference/generated/generativeaiinference_cli.py b/services/generative_ai_inference/src/oci_cli_generative_ai_inference/generated/generativeaiinference_cli.py index e0fc8022c..e051bd1b5 100644 --- a/services/generative_ai_inference/src/oci_cli_generative_ai_inference/generated/generativeaiinference_cli.py +++ b/services/generative_ai_inference/src/oci_cli_generative_ai_inference/generated/generativeaiinference_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 diff --git a/services/generic_artifacts_content/src/oci_cli_generic_artifacts_content/generated/genericartifactscontent_cli.py b/services/generic_artifacts_content/src/oci_cli_generic_artifacts_content/generated/genericartifactscontent_cli.py index 72aebdbb4..e6f056808 100644 --- a/services/generic_artifacts_content/src/oci_cli_generic_artifacts_content/generated/genericartifactscontent_cli.py +++ b/services/generic_artifacts_content/src/oci_cli_generic_artifacts_content/generated/genericartifactscontent_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -44,7 +43,7 @@ def generic_artifact_group(): @cli_util.wrap_exceptions def get_generic_artifact_content(ctx, from_json, file, artifact_id): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') kwargs = {} @@ -97,13 +96,13 @@ def get_generic_artifact_content(ctx, from_json, file, artifact_id): @cli_util.wrap_exceptions def get_generic_artifact_content_by_path(ctx, from_json, file, repository_id, artifact_path, version_parameterconflict): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(artifact_path, six.string_types) and len(artifact_path.strip()) == 0: + if isinstance(artifact_path, str) and len(artifact_path.strip()) == 0: raise click.UsageError('Parameter --artifact-path cannot be whitespace or empty string') - if isinstance(version_parameterconflict, six.string_types) and len(version_parameterconflict.strip()) == 0: + if isinstance(version_parameterconflict, str) and len(version_parameterconflict.strip()) == 0: raise click.UsageError('Parameter --version-parameterconflict cannot be whitespace or empty string') kwargs = {} @@ -159,13 +158,13 @@ def get_generic_artifact_content_by_path(ctx, from_json, file, repository_id, ar @cli_util.wrap_exceptions def put_generic_artifact_content_by_path(ctx, from_json, repository_id, artifact_path, version_parameterconflict, generic_artifact_content_body, if_match): - if isinstance(repository_id, six.string_types) and len(repository_id.strip()) == 0: + if isinstance(repository_id, str) and len(repository_id.strip()) == 0: raise click.UsageError('Parameter --repository-id cannot be whitespace or empty string') - if isinstance(artifact_path, six.string_types) and len(artifact_path.strip()) == 0: + if isinstance(artifact_path, str) and len(artifact_path.strip()) == 0: raise click.UsageError('Parameter --artifact-path cannot be whitespace or empty string') - if isinstance(version_parameterconflict, six.string_types) and len(version_parameterconflict.strip()) == 0: + if isinstance(version_parameterconflict, str) and len(version_parameterconflict.strip()) == 0: raise click.UsageError('Parameter --version-parameterconflict cannot be whitespace or empty string') kwargs = {} diff --git a/services/golden_gate/src/oci_cli_golden_gate/generated/goldengate_cli.py b/services/golden_gate/src/oci_cli_golden_gate/generated/goldengate_cli.py index 4f2d0773e..bb5667da0 100644 --- a/services/golden_gate/src/oci_cli_golden_gate/generated/goldengate_cli.py +++ b/services/golden_gate/src/oci_cli_golden_gate/generated/goldengate_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -200,7 +199,7 @@ def deployment_group(): @cli_util.wrap_exceptions def add_connection_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, type, message, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -261,7 +260,7 @@ def add_connection_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def add_deployment_backup_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_backup_id, type, message, if_match): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -322,7 +321,7 @@ def add_deployment_backup_lock(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def add_deployment_local_peer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, availability_domain, fault_domain, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -389,7 +388,7 @@ def add_deployment_local_peer(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def add_deployment_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, type, message, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -450,7 +449,7 @@ def add_deployment_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def cancel_deployment_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_backup_id, type, if_match, is_lock_override): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -513,7 +512,7 @@ def cancel_deployment_backup(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def cancel_deployment_backup_default_cancel_deployment_backup_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_backup_id, if_match, is_lock_override): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -577,7 +576,7 @@ def cancel_deployment_backup_default_cancel_deployment_backup_details(ctx, from_ @cli_util.wrap_exceptions def cancel_deployment_upgrade(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_upgrade_id, type, if_match): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -633,7 +632,7 @@ def cancel_deployment_upgrade(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def cancel_deployment_upgrade_default_cancel_deployment_upgrade_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_upgrade_id, if_match): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -688,7 +687,7 @@ def cancel_deployment_upgrade_default_cancel_deployment_upgrade_details(ctx, fro @cli_util.wrap_exceptions def cancel_snooze_deployment_upgrade(ctx, from_json, deployment_upgrade_id, type, if_match): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -718,7 +717,7 @@ def cancel_snooze_deployment_upgrade(ctx, from_json, deployment_upgrade_id, type @cli_util.wrap_exceptions def cancel_snooze_deployment_upgrade_default_cancel_snooze_deployment_upgrade_details(ctx, from_json, deployment_upgrade_id, if_match): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -754,7 +753,7 @@ def cancel_snooze_deployment_upgrade_default_cancel_snooze_deployment_upgrade_de @cli_util.wrap_exceptions def change_connection_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, compartment_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -818,7 +817,7 @@ def change_connection_compartment(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def change_connection_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, subscription_id, is_default, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -884,7 +883,7 @@ def change_connection_subscription(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def change_database_registration_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_registration_id, compartment_id, if_match): - if isinstance(database_registration_id, six.string_types) and len(database_registration_id.strip()) == 0: + if isinstance(database_registration_id, str) and len(database_registration_id.strip()) == 0: raise click.UsageError('Parameter --database-registration-id cannot be whitespace or empty string') kwargs = {} @@ -943,7 +942,7 @@ def change_database_registration_compartment(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def change_deployment_backup_compartment(ctx, from_json, deployment_backup_id, compartment_id, if_match, is_lock_override): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -980,7 +979,7 @@ def change_deployment_backup_compartment(ctx, from_json, deployment_backup_id, c @cli_util.wrap_exceptions def change_deployment_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, compartment_id, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -1044,7 +1043,7 @@ def change_deployment_compartment(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def change_deployment_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, subscription_id, is_default, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -1111,7 +1110,7 @@ def change_deployment_subscription(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def change_pipeline_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, compartment_id, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -1352,7 +1351,7 @@ def clone_pipeline_default_clone_pipeline_details(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def collect_deployment_diagnostic(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, namespace_name, bucket_name, diagnostic_name_prefix, time_diagnostic_start, time_diagnostic_end, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -1423,7 +1422,7 @@ def collect_deployment_diagnostic(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def collect_pipeline_diagnostic(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, namespace_name, bucket_name, diagnostic_name_prefix, if_match): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -1495,7 +1494,7 @@ def collect_pipeline_diagnostic(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def copy_deployment_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_backup_id, namespace_name, bucket_name, freeform_tags, defined_tags, if_match): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -1564,7 +1563,7 @@ def copy_deployment_backup(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def create_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key, certificate_content, deployment_id, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -7470,10 +7469,10 @@ def create_pipeline_create_zero_etl_pipeline_details(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def delete_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, certificate_key, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') - if isinstance(certificate_key, six.string_types) and len(certificate_key.strip()) == 0: + if isinstance(certificate_key, str) and len(certificate_key.strip()) == 0: raise click.UsageError('Parameter --certificate-key cannot be whitespace or empty string') kwargs = {} @@ -7533,7 +7532,7 @@ def delete_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -7592,7 +7591,7 @@ def delete_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_connection_assignment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_assignment_id, if_match, is_lock_override): - if isinstance(connection_assignment_id, six.string_types) and len(connection_assignment_id.strip()) == 0: + if isinstance(connection_assignment_id, str) and len(connection_assignment_id.strip()) == 0: raise click.UsageError('Parameter --connection-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -7650,7 +7649,7 @@ def delete_connection_assignment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_database_registration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_registration_id, if_match): - if isinstance(database_registration_id, six.string_types) and len(database_registration_id.strip()) == 0: + if isinstance(database_registration_id, str) and len(database_registration_id.strip()) == 0: raise click.UsageError('Parameter --database-registration-id cannot be whitespace or empty string') kwargs = {} @@ -7707,7 +7706,7 @@ def delete_database_registration(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -7766,7 +7765,7 @@ def delete_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_deployment_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_backup_id, if_match, is_lock_override): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -7825,7 +7824,7 @@ def delete_deployment_backup(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -7880,7 +7879,7 @@ def delete_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def deployment_wallet_exists(ctx, from_json, deployment_id, type, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -7910,7 +7909,7 @@ def deployment_wallet_exists(ctx, from_json, deployment_id, type, if_match): @cli_util.wrap_exceptions def deployment_wallet_exists_default_deployment_wallet_exists_details(ctx, from_json, deployment_id, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -7949,7 +7948,7 @@ def deployment_wallet_exists_default_deployment_wallet_exists_details(ctx, from_ @cli_util.wrap_exceptions def export_deployment_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, vault_id, master_encryption_key_id, secret_name, secret_compartment_id, description, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8019,7 +8018,7 @@ def export_deployment_wallet(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def generate_disaster_recovery_precheck_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, availability_domain, fault_domain, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8078,7 +8077,7 @@ def generate_disaster_recovery_precheck_report(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def generate_library_url(ctx, from_json, deployment_id, library_type, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8108,7 +8107,7 @@ def generate_library_url(ctx, from_json, deployment_id, library_type, if_match): @cli_util.wrap_exceptions def generate_library_url_generate_log_reader_component_library_url_details(ctx, from_json, deployment_id, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8139,10 +8138,10 @@ def generate_library_url_generate_log_reader_component_library_url_details(ctx, @cli_util.wrap_exceptions def get_certificate(ctx, from_json, deployment_id, certificate_key): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') - if isinstance(certificate_key, six.string_types) and len(certificate_key.strip()) == 0: + if isinstance(certificate_key, str) and len(certificate_key.strip()) == 0: raise click.UsageError('Parameter --certificate-key cannot be whitespace or empty string') kwargs = {} @@ -8166,7 +8165,7 @@ def get_certificate(ctx, from_json, deployment_id, certificate_key): @cli_util.wrap_exceptions def get_connection(ctx, from_json, connection_id, view): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -8190,7 +8189,7 @@ def get_connection(ctx, from_json, connection_id, view): @cli_util.wrap_exceptions def get_connection_assignment(ctx, from_json, connection_assignment_id): - if isinstance(connection_assignment_id, six.string_types) and len(connection_assignment_id.strip()) == 0: + if isinstance(connection_assignment_id, str) and len(connection_assignment_id.strip()) == 0: raise click.UsageError('Parameter --connection-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -8212,7 +8211,7 @@ def get_connection_assignment(ctx, from_json, connection_assignment_id): @cli_util.wrap_exceptions def get_database_registration(ctx, from_json, database_registration_id): - if isinstance(database_registration_id, six.string_types) and len(database_registration_id.strip()) == 0: + if isinstance(database_registration_id, str) and len(database_registration_id.strip()) == 0: raise click.UsageError('Parameter --database-registration-id cannot be whitespace or empty string') kwargs = {} @@ -8234,7 +8233,7 @@ def get_database_registration(ctx, from_json, database_registration_id): @cli_util.wrap_exceptions def get_deployment(ctx, from_json, deployment_id): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8256,7 +8255,7 @@ def get_deployment(ctx, from_json, deployment_id): @cli_util.wrap_exceptions def get_deployment_backup(ctx, from_json, deployment_backup_id): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -8278,7 +8277,7 @@ def get_deployment_backup(ctx, from_json, deployment_backup_id): @cli_util.wrap_exceptions def get_deployment_upgrade(ctx, from_json, deployment_upgrade_id): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -8302,7 +8301,7 @@ def get_deployment_upgrade(ctx, from_json, deployment_upgrade_id): @cli_util.wrap_exceptions def get_disaster_recovery_precheck_report(ctx, from_json, deployment_id, availability_domain, fault_domain): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8326,7 +8325,7 @@ def get_disaster_recovery_precheck_report(ctx, from_json, deployment_id, availab @cli_util.wrap_exceptions def get_pipeline(ctx, from_json, pipeline_id): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -8348,7 +8347,7 @@ def get_pipeline(ctx, from_json, pipeline_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -8381,7 +8380,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def import_deployment_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, vault_id, new_wallet_secret_id, wallet_backup_secret_name, wallet_backup_secret_compartment_id, master_encryption_key_id, description, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8510,7 +8509,7 @@ def list_certificates(ctx, from_json, all_pages, page_size, deployment_id, lifec if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -8898,7 +8897,7 @@ def list_deployment_peers(ctx, from_json, all_pages, page_size, deployment_id, l if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -9146,7 +9145,7 @@ def list_deployment_wallets_operations(ctx, from_json, all_pages, page_size, dep if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -9323,7 +9322,7 @@ def list_messages(ctx, from_json, all_pages, page_size, deployment_id, limit, pa @cli_util.wrap_exceptions def list_pipeline_initialization_steps(ctx, from_json, all_pages, pipeline_id): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -9354,7 +9353,7 @@ def list_pipeline_running_processes(ctx, from_json, all_pages, page_size, pipeli if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -9414,7 +9413,7 @@ def list_pipeline_schema_tables(ctx, from_json, all_pages, page_size, pipeline_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -9480,7 +9479,7 @@ def list_pipeline_schemas(ctx, from_json, all_pages, page_size, pipeline_id, dis if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -9784,7 +9783,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -9835,7 +9834,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -9936,7 +9935,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def migrate_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, type, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -10002,7 +10001,7 @@ def migrate_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def migrate_connection_secret_migrate_connection_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, secret_compartment_id, vault_id, key_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -10070,7 +10069,7 @@ def migrate_connection_secret_migrate_connection_details(ctx, from_json, wait_fo @cli_util.wrap_exceptions def pause_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, type, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -10133,7 +10132,7 @@ def pause_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def pause_pipeline_default_pause_pipeline_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -10198,7 +10197,7 @@ def pause_pipeline_default_pause_pipeline_details(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def refresh_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, type, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -10261,7 +10260,7 @@ def refresh_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def refresh_connection_default_refresh_connection_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -10325,7 +10324,7 @@ def refresh_connection_default_refresh_connection_details(ctx, from_json, wait_f @cli_util.wrap_exceptions def remove_connection_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, type, if_match): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') kwargs = {} @@ -10382,7 +10381,7 @@ def remove_connection_lock(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def remove_deployment_backup_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_backup_id, type, if_match): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -10440,7 +10439,7 @@ def remove_deployment_backup_lock(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def remove_deployment_local_peer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, availability_domain, fault_domain, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -10502,7 +10501,7 @@ def remove_deployment_local_peer(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def remove_deployment_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, type, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -10559,7 +10558,7 @@ def remove_deployment_lock(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def reschedule_deployment_upgrade(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_upgrade_id, type, if_match): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -10616,7 +10615,7 @@ def reschedule_deployment_upgrade(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def reschedule_deployment_upgrade_reschedule_deployment_upgrade_to_date_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_upgrade_id, time_schedule, if_match): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -10676,7 +10675,7 @@ def reschedule_deployment_upgrade_reschedule_deployment_upgrade_to_date_details( @cli_util.wrap_exceptions def restore_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_backup_id, type, if_match, is_lock_override): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -10739,7 +10738,7 @@ def restore_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def restore_deployment_default_restore_deployment_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_backup_id, if_match, is_lock_override): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') kwargs = {} @@ -10804,7 +10803,7 @@ def restore_deployment_default_restore_deployment_details(ctx, from_json, wait_f @cli_util.wrap_exceptions def rollback_deployment_upgrade(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_upgrade_id, type, if_match, is_lock_override): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -10867,7 +10866,7 @@ def rollback_deployment_upgrade(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def rollback_deployment_upgrade_default_rollback_deployment_upgrade_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_upgrade_id, if_match, is_lock_override): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -10928,7 +10927,7 @@ def rollback_deployment_upgrade_default_rollback_deployment_upgrade_details(ctx, @cli_util.wrap_exceptions def snooze_deployment_upgrade(ctx, from_json, deployment_upgrade_id, type, if_match): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -10958,7 +10957,7 @@ def snooze_deployment_upgrade(ctx, from_json, deployment_upgrade_id, type, if_ma @cli_util.wrap_exceptions def snooze_deployment_upgrade_default_snooze_deployment_upgrade_details(ctx, from_json, deployment_upgrade_id, if_match): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -10994,7 +10993,7 @@ def snooze_deployment_upgrade_default_snooze_deployment_upgrade_details(ctx, fro @cli_util.wrap_exceptions def start_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, type, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -11057,7 +11056,7 @@ def start_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def start_deployment_default_start_deployment_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -11122,7 +11121,7 @@ def start_deployment_default_start_deployment_details(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def start_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, type, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -11185,7 +11184,7 @@ def start_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def start_pipeline_default_start_pipeline_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -11250,7 +11249,7 @@ def start_pipeline_default_start_pipeline_details(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def stop_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, type, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -11313,7 +11312,7 @@ def stop_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def stop_deployment_default_stop_deployment_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -11378,7 +11377,7 @@ def stop_deployment_default_stop_deployment_details(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def stop_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, type, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -11441,7 +11440,7 @@ def stop_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def stop_pipeline_default_stop_pipeline_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -11507,7 +11506,7 @@ def stop_pipeline_default_stop_pipeline_details(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def switchover_deployment_peer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, availability_domain, fault_domain, mode, if_match): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -11569,7 +11568,7 @@ def switchover_deployment_peer(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def test_connection_assignment(ctx, from_json, connection_assignment_id, type, if_match): - if isinstance(connection_assignment_id, six.string_types) and len(connection_assignment_id.strip()) == 0: + if isinstance(connection_assignment_id, str) and len(connection_assignment_id.strip()) == 0: raise click.UsageError('Parameter --connection-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -11599,7 +11598,7 @@ def test_connection_assignment(ctx, from_json, connection_assignment_id, type, i @cli_util.wrap_exceptions def test_connection_assignment_default_test_connection_assignment_details(ctx, from_json, connection_assignment_id, if_match): - if isinstance(connection_assignment_id, six.string_types) and len(connection_assignment_id.strip()) == 0: + if isinstance(connection_assignment_id, str) and len(connection_assignment_id.strip()) == 0: raise click.UsageError('Parameter --connection-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -11631,7 +11630,7 @@ def test_connection_assignment_default_test_connection_assignment_details(ctx, f @cli_util.wrap_exceptions def test_pipeline_connection(ctx, from_json, pipeline_id, type, if_match): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -11662,7 +11661,7 @@ def test_pipeline_connection(ctx, from_json, pipeline_id, type, if_match): @cli_util.wrap_exceptions def test_pipeline_connection_default_test_pipeline_connection_details(ctx, from_json, pipeline_id, connection_id, if_match): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -11735,7 +11734,7 @@ def test_pipeline_connection_default_test_pipeline_connection_details(ctx, from_ @cli_util.wrap_exceptions def update_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, connection_type, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -11880,7 +11879,7 @@ def update_connection(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_connection_update_elasticsearch_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, servers, security_protocol, authentication_type, username, password, password_secret_id, fingerprint, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -12041,7 +12040,7 @@ def update_connection_update_elasticsearch_connection_details(ctx, from_json, fo @cli_util.wrap_exceptions def update_connection_update_google_big_query_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, endpoint_parameterconflict, service_account_key_file, service_account_key_file_secret_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -12203,7 +12202,7 @@ def update_connection_update_google_big_query_connection_details(ctx, from_json, @cli_util.wrap_exceptions def update_connection_update_oracle_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, username, password, password_secret_id, connection_string, authentication_mode, wallet, wallet_secret_id, session_mode, private_ip, database_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -12374,7 +12373,7 @@ def update_connection_update_oracle_connection_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_connection_update_amazon_redshift_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, connection_url, username, password, password_secret_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -12532,7 +12531,7 @@ def update_connection_update_amazon_redshift_connection_details(ctx, from_json, @cli_util.wrap_exceptions def update_connection_update_oci_object_storage_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, tenancy_id, region_parameterconflict, user_id, private_key_file, private_key_file_secret_id, private_key_passphrase, private_key_passphrase_secret_id, public_key_fingerprint, should_use_resource_principal, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -12711,7 +12710,7 @@ def update_connection_update_oci_object_storage_connection_details(ctx, from_jso @cli_util.wrap_exceptions def update_connection_update_redis_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, servers, security_protocol, authentication_type, username, password, password_secret_id, trust_store, trust_store_secret_id, trust_store_password, trust_store_password_secret_id, key_store, key_store_secret_id, key_store_password, key_store_password_secret_id, redis_cluster_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -12904,7 +12903,7 @@ def update_connection_update_redis_connection_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_connection_update_mongo_db_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, connection_string, username, password, password_secret_id, database_id, security_protocol, tls_ca_file, tls_certificate_key_file, tls_certificate_key_file_secret_id, tls_certificate_key_file_password, tls_certificate_key_file_password_secret_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -13077,7 +13076,7 @@ def update_connection_update_mongo_db_connection_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_connection_update_google_cloud_storage_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, endpoint_parameterconflict, service_account_key_file, service_account_key_file_secret_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -13233,7 +13232,7 @@ def update_connection_update_google_cloud_storage_connection_details(ctx, from_j @cli_util.wrap_exceptions def update_connection_update_oracle_ai_data_platform_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, connection_url, tenancy_id, region_parameterconflict, user_id, private_key_file_secret_id, private_key_passphrase_secret_id, private_key_file, private_key_passphrase, public_key_fingerprint, should_use_resource_principal, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -13403,7 +13402,7 @@ def update_connection_update_oracle_ai_data_platform_connection_details(ctx, fro @cli_util.wrap_exceptions def update_connection_update_ai_model_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, model_key, max_input_chars, auth_details, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes or auth_details: @@ -13554,7 +13553,7 @@ def update_connection_update_ai_model_connection_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_connection_update_microsoft_fabric_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, tenant_id, client_id, client_secret, client_secret_secret_id, endpoint_parameterconflict, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -13726,7 +13725,7 @@ def update_connection_update_microsoft_fabric_connection_details(ctx, from_json, @cli_util.wrap_exceptions def update_connection_update_postgresql_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, database_name, host, port, username, password, password_secret_id, additional_attributes, security_protocol, ssl_mode, ssl_ca, ssl_crl, ssl_cert, ssl_key, ssl_key_secret_id, private_ip, db_system_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes or additional_attributes: @@ -13926,7 +13925,7 @@ def update_connection_update_postgresql_connection_details(ctx, from_json, force @cli_util.wrap_exceptions def update_connection_update_microsoft_sqlserver_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, database_name, host, port, username, password, password_secret_id, additional_attributes, security_protocol, ssl_ca, should_validate_server_certificate, private_ip, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes or additional_attributes: @@ -14105,7 +14104,7 @@ def update_connection_update_microsoft_sqlserver_connection_details(ctx, from_js @cli_util.wrap_exceptions def update_connection_update_snowflake_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, connection_url, authentication_type, username, password, password_secret_id, private_key_file, private_key_file_secret_id, private_key_passphrase, private_key_passphrase_secret_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -14270,7 +14269,7 @@ def update_connection_update_snowflake_connection_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_connection_update_hdfs_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, core_site_xml, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -14418,7 +14417,7 @@ def update_connection_update_hdfs_connection_details(ctx, from_json, force, wait @cli_util.wrap_exceptions def update_connection_update_databricks_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, authentication_type, connection_url, password, password_secret_id, client_id, client_secret, client_secret_secret_id, storage_credential_name, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -14601,7 +14600,7 @@ def update_connection_update_databricks_connection_details(ctx, from_json, force @cli_util.wrap_exceptions def update_connection_update_kafka_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, stream_pool_id, cluster_id, bootstrap_servers, security_protocol, username, password, password_secret_id, trust_store, trust_store_secret_id, trust_store_password, trust_store_password_secret_id, key_store, key_store_secret_id, key_store_password, key_store_password_secret_id, ssl_key_password, ssl_key_password_secret_id, consumer_properties, producer_properties, should_use_resource_principal, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes or bootstrap_servers: @@ -14810,7 +14809,7 @@ def update_connection_update_kafka_connection_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_connection_update_azure_data_lake_storage_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, authentication_type, account_name, account_key, account_key_secret_id, sas_token, sas_token_secret_id, azure_tenant_id, client_id, client_secret, client_secret_secret_id, endpoint_parameterconflict, azure_authority_host, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -14988,7 +14987,7 @@ def update_connection_update_azure_data_lake_storage_connection_details(ctx, fro @cli_util.wrap_exceptions def update_connection_update_amazon_kinesis_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, access_key_id, secret_access_key, secret_access_key_secret_id, endpoint_parameterconflict, region_parameterconflict, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -15167,7 +15166,7 @@ def update_connection_update_amazon_kinesis_connection_details(ctx, from_json, f @cli_util.wrap_exceptions def update_connection_update_java_message_service_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, should_use_jndi, jndi_connection_factory, jndi_provider_url, jndi_initial_context_factory, jndi_security_principal, jndi_security_credentials, jndi_security_credentials_secret_id, connection_url, connection_factory, username, password, password_secret_id, security_protocol, authentication_type, trust_store, trust_store_secret_id, trust_store_password, trust_store_password_secret_id, key_store, key_store_secret_id, key_store_password, key_store_password_secret_id, ssl_key_password, ssl_key_password_secret_id, private_ip, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -15388,7 +15387,7 @@ def update_connection_update_java_message_service_connection_details(ctx, from_j @cli_util.wrap_exceptions def update_connection_update_golden_gate_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, deployment_id, host, port, username, password, password_secret_id, private_ip, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -15548,7 +15547,7 @@ def update_connection_update_golden_gate_connection_details(ctx, from_json, forc @cli_util.wrap_exceptions def update_connection_update_google_pub_sub_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, service_account_key_file, service_account_key_file_secret_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -15700,7 +15699,7 @@ def update_connection_update_google_pub_sub_connection_details(ctx, from_json, f @cli_util.wrap_exceptions def update_connection_update_oracle_nosql_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, tenancy_id, region_parameterconflict, user_id, private_key_file, private_key_file_secret_id, private_key_passphrase, private_key_passphrase_secret_id, public_key_fingerprint, should_use_resource_principal, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -15882,7 +15881,7 @@ def update_connection_update_oracle_nosql_connection_details(ctx, from_json, for @cli_util.wrap_exceptions def update_connection_update_kafka_schema_registry_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, url, authentication_type, username, password, password_secret_id, trust_store, trust_store_secret_id, trust_store_password, trust_store_password_secret_id, key_store, key_store_secret_id, key_store_password, key_store_password_secret_id, ssl_key_password, ssl_key_password_secret_id, private_ip, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -16074,7 +16073,7 @@ def update_connection_update_kafka_schema_registry_connection_details(ctx, from_ @cli_util.wrap_exceptions def update_connection_update_amazon_s3_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, access_key_id, secret_access_key, secret_access_key_secret_id, endpoint_parameterconflict, region_parameterconflict, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -16246,7 +16245,7 @@ def update_connection_update_amazon_s3_connection_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_connection_update_mysql_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, username, password, password_secret_id, host, port, database_name, security_protocol, ssl_mode, ssl_ca, ssl_crl, ssl_cert, ssl_key, ssl_key_secret_id, private_ip, additional_attributes, db_system_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes or additional_attributes: @@ -16454,7 +16453,7 @@ def update_connection_update_mysql_connection_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_connection_update_db2_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, database_name, host, port, username, password, password_secret_id, additional_attributes, security_protocol, ssl_client_keystoredb, ssl_client_keystoredb_secret_id, ssl_client_keystash, ssl_client_keystash_secret_id, ssl_server_certificate, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes or additional_attributes: @@ -16632,7 +16631,7 @@ def update_connection_update_db2_connection_details(ctx, from_json, force, wait_ @cli_util.wrap_exceptions def update_connection_update_iceberg_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, catalog, storage, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes or catalog or storage: @@ -16778,7 +16777,7 @@ def update_connection_update_iceberg_connection_details(ctx, from_json, force, w @cli_util.wrap_exceptions def update_connection_update_generic_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, host, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -16922,7 +16921,7 @@ def update_connection_update_generic_connection_details(ctx, from_json, force, w @cli_util.wrap_exceptions def update_connection_update_azure_synapse_connection_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_id, display_name, description, freeform_tags, defined_tags, vault_id, key_id, nsg_ids, subnet_id, routing_method, does_use_secret_ids, security_attributes, connection_string, username, password, password_secret_id, if_match, is_lock_override): - if isinstance(connection_id, six.string_types) and len(connection_id.strip()) == 0: + if isinstance(connection_id, str) and len(connection_id.strip()) == 0: raise click.UsageError('Parameter --connection-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or security_attributes: @@ -17050,7 +17049,7 @@ def update_connection_update_azure_synapse_connection_details(ctx, from_json, fo @cli_util.wrap_exceptions def update_database_registration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_registration_id, display_name, description, freeform_tags, defined_tags, fqdn, username, password, connection_string, session_mode, wallet, alias_name, if_match): - if isinstance(database_registration_id, six.string_types) and len(database_registration_id.strip()) == 0: + if isinstance(database_registration_id, str) and len(database_registration_id.strip()) == 0: raise click.UsageError('Parameter --database-registration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -17181,7 +17180,7 @@ def update_database_registration(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_deployment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, display_name, license_model, is_byol_cpu_core_count_limit_enabled, byol_cpu_core_count_limit, environment_type, description, freeform_tags, defined_tags, nsg_ids, subnet_id, load_balancer_subnet_id, is_public, fqdn, cpu_core_count, is_auto_scaling_enabled, placements, security_attributes, ogg_data, maintenance_window, maintenance_configuration, backup_schedule, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or placements or security_attributes or ogg_data or maintenance_window or maintenance_configuration or backup_schedule: @@ -17317,7 +17316,7 @@ def update_deployment(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_deployment_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_backup_id, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(deployment_backup_id, six.string_types) and len(deployment_backup_id.strip()) == 0: + if isinstance(deployment_backup_id, str) and len(deployment_backup_id.strip()) == 0: raise click.UsageError('Parameter --deployment-backup-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -17399,7 +17398,7 @@ def update_deployment_backup(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_pipeline(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, recipe_type, display_name, description, license_model, freeform_tags, defined_tags, subnet_id, cpu_core_count, is_auto_scaling_enabled, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -17509,7 +17508,7 @@ def update_pipeline(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_pipeline_update_zero_etl_pipeline_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, pipeline_id, display_name, description, license_model, freeform_tags, defined_tags, subnet_id, cpu_core_count, is_auto_scaling_enabled, process_options, mapping_rules, if_match, is_lock_override): - if isinstance(pipeline_id, six.string_types) and len(pipeline_id.strip()) == 0: + if isinstance(pipeline_id, str) and len(pipeline_id.strip()) == 0: raise click.UsageError('Parameter --pipeline-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or process_options or mapping_rules: @@ -17608,7 +17607,7 @@ def update_pipeline_update_zero_etl_pipeline_details(ctx, from_json, force, wait @cli_util.wrap_exceptions def upgrade_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, type, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -17672,7 +17671,7 @@ def upgrade_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def upgrade_deployment_upgrade_deployment_specific_release_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, ogg_version, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -17737,7 +17736,7 @@ def upgrade_deployment_upgrade_deployment_specific_release_details(ctx, from_jso @cli_util.wrap_exceptions def upgrade_deployment_upgrade_deployment_current_release_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_id, if_match, is_lock_override): - if isinstance(deployment_id, six.string_types) and len(deployment_id.strip()) == 0: + if isinstance(deployment_id, str) and len(deployment_id.strip()) == 0: raise click.UsageError('Parameter --deployment-id cannot be whitespace or empty string') kwargs = {} @@ -17802,7 +17801,7 @@ def upgrade_deployment_upgrade_deployment_current_release_details(ctx, from_json @cli_util.wrap_exceptions def upgrade_deployment_upgrade(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_upgrade_id, type, if_match, is_lock_override): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} @@ -17865,7 +17864,7 @@ def upgrade_deployment_upgrade(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def upgrade_deployment_upgrade_default_upgrade_deployment_upgrade_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, deployment_upgrade_id, if_match, is_lock_override): - if isinstance(deployment_upgrade_id, six.string_types) and len(deployment_upgrade_id.strip()) == 0: + if isinstance(deployment_upgrade_id, str) and len(deployment_upgrade_id.strip()) == 0: raise click.UsageError('Parameter --deployment-upgrade-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/governance_rules_control_plane/src/oci_cli_governance_rule/generated/governancerule_cli.py b/services/governance_rules_control_plane/src/oci_cli_governance_rule/generated/governancerule_cli.py index 801aec9a5..0ecacf721 100644 --- a/services/governance_rules_control_plane/src/oci_cli_governance_rule/generated/governancerule_cli.py +++ b/services/governance_rules_control_plane/src/oci_cli_governance_rule/generated/governancerule_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -547,7 +546,7 @@ def create_inclusion_criterion_tenancy_association(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def delete_governance_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, governance_rule_id, if_match): - if isinstance(governance_rule_id, six.string_types) and len(governance_rule_id.strip()) == 0: + if isinstance(governance_rule_id, str) and len(governance_rule_id.strip()) == 0: raise click.UsageError('Parameter --governance-rule-id cannot be whitespace or empty string') kwargs = {} @@ -603,7 +602,7 @@ def delete_governance_rule(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_inclusion_criterion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, inclusion_criterion_id, if_match): - if isinstance(inclusion_criterion_id, six.string_types) and len(inclusion_criterion_id.strip()) == 0: + if isinstance(inclusion_criterion_id, str) and len(inclusion_criterion_id.strip()) == 0: raise click.UsageError('Parameter --inclusion-criterion-id cannot be whitespace or empty string') kwargs = {} @@ -654,7 +653,7 @@ def delete_inclusion_criterion(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_enforced_governance_rule(ctx, from_json, enforced_governance_rule_id): - if isinstance(enforced_governance_rule_id, six.string_types) and len(enforced_governance_rule_id.strip()) == 0: + if isinstance(enforced_governance_rule_id, str) and len(enforced_governance_rule_id.strip()) == 0: raise click.UsageError('Parameter --enforced-governance-rule-id cannot be whitespace or empty string') kwargs = {} @@ -676,7 +675,7 @@ def get_enforced_governance_rule(ctx, from_json, enforced_governance_rule_id): @cli_util.wrap_exceptions def get_governance_rule(ctx, from_json, governance_rule_id): - if isinstance(governance_rule_id, six.string_types) and len(governance_rule_id.strip()) == 0: + if isinstance(governance_rule_id, str) and len(governance_rule_id.strip()) == 0: raise click.UsageError('Parameter --governance-rule-id cannot be whitespace or empty string') kwargs = {} @@ -698,7 +697,7 @@ def get_governance_rule(ctx, from_json, governance_rule_id): @cli_util.wrap_exceptions def get_inclusion_criterion(ctx, from_json, inclusion_criterion_id): - if isinstance(inclusion_criterion_id, six.string_types) and len(inclusion_criterion_id.strip()) == 0: + if isinstance(inclusion_criterion_id, str) and len(inclusion_criterion_id.strip()) == 0: raise click.UsageError('Parameter --inclusion-criterion-id cannot be whitespace or empty string') kwargs = {} @@ -720,7 +719,7 @@ def get_inclusion_criterion(ctx, from_json, inclusion_criterion_id): @cli_util.wrap_exceptions def get_tenancy_attachment(ctx, from_json, tenancy_attachment_id): - if isinstance(tenancy_attachment_id, six.string_types) and len(tenancy_attachment_id.strip()) == 0: + if isinstance(tenancy_attachment_id, str) and len(tenancy_attachment_id.strip()) == 0: raise click.UsageError('Parameter --tenancy-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -998,7 +997,7 @@ def list_tenancy_attachments(ctx, from_json, all_pages, page_size, compartment_i @cli_util.wrap_exceptions def retry_governance_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, governance_rule_id, if_match): - if isinstance(governance_rule_id, six.string_types) and len(governance_rule_id.strip()) == 0: + if isinstance(governance_rule_id, str) and len(governance_rule_id.strip()) == 0: raise click.UsageError('Parameter --governance-rule-id cannot be whitespace or empty string') kwargs = {} @@ -1053,7 +1052,7 @@ def retry_governance_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def retry_tenancy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tenancy_attachment_id, if_match): - if isinstance(tenancy_attachment_id, six.string_types) and len(tenancy_attachment_id.strip()) == 0: + if isinstance(tenancy_attachment_id, str) and len(tenancy_attachment_id.strip()) == 0: raise click.UsageError('Parameter --tenancy-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -1115,7 +1114,7 @@ def retry_tenancy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_governance_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, governance_rule_id, display_name, description, template, related_resource_id, freeform_tags, defined_tags, if_match): - if isinstance(governance_rule_id, six.string_types) and len(governance_rule_id.strip()) == 0: + if isinstance(governance_rule_id, str) and len(governance_rule_id.strip()) == 0: raise click.UsageError('Parameter --governance-rule-id cannot be whitespace or empty string') if not force: if template or freeform_tags or defined_tags: @@ -1210,7 +1209,7 @@ def update_governance_rule(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_governance_rule_tag_template(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, governance_rule_id, template_name, display_name, description, related_resource_id, freeform_tags, defined_tags, if_match, template_description, template_tags, template_tag_defaults): - if isinstance(governance_rule_id, six.string_types) and len(governance_rule_id.strip()) == 0: + if isinstance(governance_rule_id, str) and len(governance_rule_id.strip()) == 0: raise click.UsageError('Parameter --governance-rule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1310,7 +1309,7 @@ def update_governance_rule_tag_template(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_governance_rule_quota_template(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, governance_rule_id, template_display_name, template_statements, display_name, description, related_resource_id, freeform_tags, defined_tags, if_match, template_description): - if isinstance(governance_rule_id, six.string_types) and len(governance_rule_id.strip()) == 0: + if isinstance(governance_rule_id, str) and len(governance_rule_id.strip()) == 0: raise click.UsageError('Parameter --governance-rule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1405,7 +1404,7 @@ def update_governance_rule_quota_template(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_governance_rule_allowed_regions_template(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, governance_rule_id, template_display_name, template_regions, display_name, description, related_resource_id, freeform_tags, defined_tags, if_match, template_description): - if isinstance(governance_rule_id, six.string_types) and len(governance_rule_id.strip()) == 0: + if isinstance(governance_rule_id, str) and len(governance_rule_id.strip()) == 0: raise click.UsageError('Parameter --governance-rule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/governance_rules_control_plane/src/oci_cli_work_request/generated/workrequest_cli.py b/services/governance_rules_control_plane/src/oci_cli_work_request/generated/workrequest_cli.py index 93442faed..5144f107c 100644 --- a/services/governance_rules_control_plane/src/oci_cli_work_request/generated/workrequest_cli.py +++ b/services/governance_rules_control_plane/src/oci_cli_work_request/generated/workrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -81,7 +80,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -112,7 +111,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -169,7 +168,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/healthchecks/src/oci_cli_health_checks/generated/healthchecks_cli.py b/services/healthchecks/src/oci_cli_health_checks/generated/healthchecks_cli.py index 80ab40c4a..4aad3ff89 100644 --- a/services/healthchecks/src/oci_cli_health_checks/generated/healthchecks_cli.py +++ b/services/healthchecks/src/oci_cli_health_checks/generated/healthchecks_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -86,7 +85,7 @@ def http_probe_group(): @cli_util.wrap_exceptions def change_http_monitor_compartment(ctx, from_json, monitor_id, compartment_id, if_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') kwargs = {} @@ -117,7 +116,7 @@ def change_http_monitor_compartment(ctx, from_json, monitor_id, compartment_id, @cli_util.wrap_exceptions def change_ping_monitor_compartment(ctx, from_json, monitor_id, compartment_id, if_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') kwargs = {} @@ -368,7 +367,7 @@ def create_ping_monitor(ctx, from_json, compartment_id, targets, protocol, displ @cli_util.wrap_exceptions def delete_http_monitor(ctx, from_json, monitor_id, if_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') kwargs = {} @@ -394,7 +393,7 @@ def delete_http_monitor(ctx, from_json, monitor_id, if_match): @cli_util.wrap_exceptions def delete_ping_monitor(ctx, from_json, monitor_id, if_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') kwargs = {} @@ -419,7 +418,7 @@ def delete_ping_monitor(ctx, from_json, monitor_id, if_match): @cli_util.wrap_exceptions def get_http_monitor(ctx, from_json, monitor_id, if_none_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') kwargs = {} @@ -444,7 +443,7 @@ def get_http_monitor(ctx, from_json, monitor_id, if_none_match): @cli_util.wrap_exceptions def get_ping_monitor(ctx, from_json, monitor_id, if_none_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') kwargs = {} @@ -595,7 +594,7 @@ def list_http_probe_results(ctx, from_json, all_pages, page_size, probe_configur if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(probe_configuration_id, six.string_types) and len(probe_configuration_id.strip()) == 0: + if isinstance(probe_configuration_id, str) and len(probe_configuration_id.strip()) == 0: raise click.UsageError('Parameter --probe-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -722,7 +721,7 @@ def list_ping_probe_results(ctx, from_json, all_pages, page_size, probe_configur if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(probe_configuration_id, six.string_types) and len(probe_configuration_id.strip()) == 0: + if isinstance(probe_configuration_id, str) and len(probe_configuration_id.strip()) == 0: raise click.UsageError('Parameter --probe-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -791,7 +790,7 @@ def list_ping_probe_results(ctx, from_json, all_pages, page_size, probe_configur @cli_util.wrap_exceptions def update_http_monitor(ctx, from_json, force, monitor_id, targets, vantage_point_names, port, timeout_in_seconds, protocol, method, path, headers, display_name, interval_in_seconds, is_enabled, freeform_tags, defined_tags, if_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if targets or vantage_point_names or headers or freeform_tags or defined_tags: @@ -874,7 +873,7 @@ def update_http_monitor(ctx, from_json, force, monitor_id, targets, vantage_poin @cli_util.wrap_exceptions def update_ping_monitor(ctx, from_json, force, monitor_id, targets, vantage_point_names, port, timeout_in_seconds, protocol, display_name, interval_in_seconds, is_enabled, freeform_tags, defined_tags, if_match): - if isinstance(monitor_id, six.string_types) and len(monitor_id.strip()) == 0: + if isinstance(monitor_id, str) and len(monitor_id.strip()) == 0: raise click.UsageError('Parameter --monitor-id cannot be whitespace or empty string') if not force: if targets or vantage_point_names or freeform_tags or defined_tags: diff --git a/services/identity/src/oci_cli_identity/generated/identity_cli.py b/services/identity/src/oci_cli_identity/generated/identity_cli.py index 9a3391ff2..19ba87438 100644 --- a/services/identity/src/oci_cli_identity/generated/identity_cli.py +++ b/services/identity/src/oci_cli_identity/generated/identity_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -389,7 +388,7 @@ def user_group(): @cli_util.wrap_exceptions def activate_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_id, if_match): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') kwargs = {} @@ -443,10 +442,10 @@ def activate_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def activate_mfa_totp_device(ctx, from_json, user_id, mfa_totp_device_id, totp_token, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(mfa_totp_device_id, six.string_types) and len(mfa_totp_device_id.strip()) == 0: + if isinstance(mfa_totp_device_id, str) and len(mfa_totp_device_id.strip()) == 0: raise click.UsageError('Parameter --mfa-totp-device-id cannot be whitespace or empty string') kwargs = {} @@ -484,7 +483,7 @@ def activate_mfa_totp_device(ctx, from_json, user_id, mfa_totp_device_id, totp_t @cli_util.wrap_exceptions def add_tag_default_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_default_id, type, related_resource_id, message, if_match): - if isinstance(tag_default_id, six.string_types) and len(tag_default_id.strip()) == 0: + if isinstance(tag_default_id, str) and len(tag_default_id.strip()) == 0: raise click.UsageError('Parameter --tag-default-id cannot be whitespace or empty string') kwargs = {} @@ -549,7 +548,7 @@ def add_tag_default_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def add_tag_namespace_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, type, related_resource_id, message, if_match): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -684,7 +683,7 @@ def assemble_effective_tag_set(ctx, from_json, compartment_id, lifecycle_state): @cli_util.wrap_exceptions def bulk_delete_resources(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, resources): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') kwargs = {} @@ -874,7 +873,7 @@ def bulk_edit_tags(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def bulk_move_resources(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, resources, target_compartment_id): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') kwargs = {} @@ -946,7 +945,7 @@ def bulk_move_resources(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def cascade_delete_tag_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, if_match, is_lock_override): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -1006,7 +1005,7 @@ def cascade_delete_tag_namespace(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def change_domain_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_id, compartment_id, if_match): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') kwargs = {} @@ -1071,7 +1070,7 @@ def change_domain_compartment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_domain_license_type(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_id, license_type, if_match): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') kwargs = {} @@ -1135,7 +1134,7 @@ def change_domain_license_type(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_tag_namespace_compartment(ctx, from_json, tag_namespace_id, compartment_id, is_lock_override): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -1170,7 +1169,7 @@ def change_tag_namespace_compartment(ctx, from_json, tag_namespace_id, compartme @cli_util.wrap_exceptions def create_auth_token(ctx, from_json, description, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -1269,7 +1268,7 @@ def create_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def create_customer_secret_key(ctx, from_json, display_name, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -1299,7 +1298,7 @@ def create_customer_secret_key(ctx, from_json, display_name, user_id): @cli_util.wrap_exceptions def create_db_credential(ctx, from_json, password, description, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -1743,7 +1742,7 @@ def create_identity_provider_create_saml2_identity_provider_details(ctx, from_js @cli_util.wrap_exceptions def create_idp_group_mapping(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, idp_group_name, group_id, identity_provider_id): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -1796,7 +1795,7 @@ def create_idp_group_mapping(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def create_mfa_totp_device(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -1901,7 +1900,7 @@ def create_network_source(ctx, from_json, compartment_id, name, description, pub @cli_util.wrap_exceptions def create_o_auth_client_credential(ctx, from_json, user_id, name, description, scopes): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -1935,7 +1934,7 @@ def create_o_auth_client_credential(ctx, from_json, user_id, name, description, @cli_util.wrap_exceptions def create_or_reset_ui_password(ctx, from_json, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -2035,7 +2034,7 @@ def create_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def create_region_subscription(ctx, from_json, region_key, tenancy_id): - if isinstance(tenancy_id, six.string_types) and len(tenancy_id.strip()) == 0: + if isinstance(tenancy_id, str) and len(tenancy_id.strip()) == 0: raise click.UsageError('Parameter --tenancy-id cannot be whitespace or empty string') kwargs = {} @@ -2064,7 +2063,7 @@ def create_region_subscription(ctx, from_json, region_key, tenancy_id): @cli_util.wrap_exceptions def create_smtp_credential(ctx, from_json, description, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -2099,7 +2098,7 @@ def create_smtp_credential(ctx, from_json, description, user_id): @cli_util.wrap_exceptions def create_swift_password(ctx, from_json, description, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -2149,7 +2148,7 @@ def create_swift_password(ctx, from_json, description, user_id): @cli_util.wrap_exceptions def create_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, name, description, freeform_tags, defined_tags, is_cost_tracking, validator, is_lock_override): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -2236,7 +2235,7 @@ def create_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def create_tag_default_tag_definition_validator(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, name, description, freeform_tags, defined_tags, is_cost_tracking, is_lock_override): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -2324,7 +2323,7 @@ def create_tag_default_tag_definition_validator(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def create_tag_enum_tag_definition_validator(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, name, description, freeform_tags, defined_tags, is_cost_tracking, is_lock_override, validator_values): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -2626,7 +2625,7 @@ def create_user(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def deactivate_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_id, if_match): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') kwargs = {} @@ -2682,10 +2681,10 @@ def deactivate_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_api_key(ctx, from_json, user_id, fingerprint, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(fingerprint, six.string_types) and len(fingerprint.strip()) == 0: + if isinstance(fingerprint, str) and len(fingerprint.strip()) == 0: raise click.UsageError('Parameter --fingerprint cannot be whitespace or empty string') kwargs = {} @@ -2712,10 +2711,10 @@ def delete_api_key(ctx, from_json, user_id, fingerprint, if_match): @cli_util.wrap_exceptions def delete_auth_token(ctx, from_json, user_id, auth_token_id, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(auth_token_id, six.string_types) and len(auth_token_id.strip()) == 0: + if isinstance(auth_token_id, str) and len(auth_token_id.strip()) == 0: raise click.UsageError('Parameter --auth-token-id cannot be whitespace or empty string') kwargs = {} @@ -2744,7 +2743,7 @@ def delete_auth_token(ctx, from_json, user_id, auth_token_id, if_match): @cli_util.wrap_exceptions def delete_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, if_match): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') kwargs = {} @@ -2797,10 +2796,10 @@ def delete_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_customer_secret_key(ctx, from_json, user_id, customer_secret_key_id, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(customer_secret_key_id, six.string_types) and len(customer_secret_key_id.strip()) == 0: + if isinstance(customer_secret_key_id, str) and len(customer_secret_key_id.strip()) == 0: raise click.UsageError('Parameter --customer-secret-key-id cannot be whitespace or empty string') kwargs = {} @@ -2827,10 +2826,10 @@ def delete_customer_secret_key(ctx, from_json, user_id, customer_secret_key_id, @cli_util.wrap_exceptions def delete_db_credential(ctx, from_json, user_id, db_credential_id, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(db_credential_id, six.string_types) and len(db_credential_id.strip()) == 0: + if isinstance(db_credential_id, str) and len(db_credential_id.strip()) == 0: raise click.UsageError('Parameter --db-credential-id cannot be whitespace or empty string') kwargs = {} @@ -2862,7 +2861,7 @@ def delete_db_credential(ctx, from_json, user_id, db_credential_id, if_match): @cli_util.wrap_exceptions def delete_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_id, if_match): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') kwargs = {} @@ -2918,7 +2917,7 @@ def delete_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_dynamic_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dynamic_group_id, if_match): - if isinstance(dynamic_group_id, six.string_types) and len(dynamic_group_id.strip()) == 0: + if isinstance(dynamic_group_id, str) and len(dynamic_group_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-group-id cannot be whitespace or empty string') kwargs = {} @@ -2981,7 +2980,7 @@ def delete_dynamic_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, group_id, if_match): - if isinstance(group_id, six.string_types) and len(group_id.strip()) == 0: + if isinstance(group_id, str) and len(group_id.strip()) == 0: raise click.UsageError('Parameter --group-id cannot be whitespace or empty string') kwargs = {} @@ -3046,7 +3045,7 @@ def delete_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_identity_provider(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, identity_provider_id, if_match): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -3109,10 +3108,10 @@ def delete_identity_provider(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_idp_group_mapping(ctx, from_json, identity_provider_id, mapping_id, if_match): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') - if isinstance(mapping_id, six.string_types) and len(mapping_id.strip()) == 0: + if isinstance(mapping_id, str) and len(mapping_id.strip()) == 0: raise click.UsageError('Parameter --mapping-id cannot be whitespace or empty string') kwargs = {} @@ -3139,10 +3138,10 @@ def delete_idp_group_mapping(ctx, from_json, identity_provider_id, mapping_id, i @cli_util.wrap_exceptions def delete_mfa_totp_device(ctx, from_json, user_id, mfa_totp_device_id, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(mfa_totp_device_id, six.string_types) and len(mfa_totp_device_id.strip()) == 0: + if isinstance(mfa_totp_device_id, str) and len(mfa_totp_device_id.strip()) == 0: raise click.UsageError('Parameter --mfa-totp-device-id cannot be whitespace or empty string') kwargs = {} @@ -3168,7 +3167,7 @@ def delete_mfa_totp_device(ctx, from_json, user_id, mfa_totp_device_id, if_match @cli_util.wrap_exceptions def delete_network_source(ctx, from_json, network_source_id, if_match): - if isinstance(network_source_id, six.string_types) and len(network_source_id.strip()) == 0: + if isinstance(network_source_id, str) and len(network_source_id.strip()) == 0: raise click.UsageError('Parameter --network-source-id cannot be whitespace or empty string') kwargs = {} @@ -3194,10 +3193,10 @@ def delete_network_source(ctx, from_json, network_source_id, if_match): @cli_util.wrap_exceptions def delete_o_auth_client_credential(ctx, from_json, user_id, oauth2_client_credential_id, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(oauth2_client_credential_id, six.string_types) and len(oauth2_client_credential_id.strip()) == 0: + if isinstance(oauth2_client_credential_id, str) and len(oauth2_client_credential_id.strip()) == 0: raise click.UsageError('Parameter --oauth2-client-credential-id cannot be whitespace or empty string') kwargs = {} @@ -3226,7 +3225,7 @@ def delete_o_auth_client_credential(ctx, from_json, user_id, oauth2_client_crede @cli_util.wrap_exceptions def delete_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, policy_id, if_match): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') kwargs = {} @@ -3287,10 +3286,10 @@ def delete_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_smtp_credential(ctx, from_json, user_id, smtp_credential_id, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(smtp_credential_id, six.string_types) and len(smtp_credential_id.strip()) == 0: + if isinstance(smtp_credential_id, str) and len(smtp_credential_id.strip()) == 0: raise click.UsageError('Parameter --smtp-credential-id cannot be whitespace or empty string') kwargs = {} @@ -3319,10 +3318,10 @@ def delete_smtp_credential(ctx, from_json, user_id, smtp_credential_id, if_match @cli_util.wrap_exceptions def delete_swift_password(ctx, from_json, user_id, swift_password_id, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(swift_password_id, six.string_types) and len(swift_password_id.strip()) == 0: + if isinstance(swift_password_id, str) and len(swift_password_id.strip()) == 0: raise click.UsageError('Parameter --swift-password-id cannot be whitespace or empty string') kwargs = {} @@ -3363,10 +3362,10 @@ def delete_swift_password(ctx, from_json, user_id, swift_password_id, if_match): @cli_util.wrap_exceptions def delete_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, tag_name, if_match, is_lock_override): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') - if isinstance(tag_name, six.string_types) and len(tag_name.strip()) == 0: + if isinstance(tag_name, str) and len(tag_name.strip()) == 0: raise click.UsageError('Parameter --tag-name cannot be whitespace or empty string') kwargs = {} @@ -3425,7 +3424,7 @@ def delete_tag(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_tag_default(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_default_id, if_match, is_lock_override): - if isinstance(tag_default_id, six.string_types) and len(tag_default_id.strip()) == 0: + if isinstance(tag_default_id, str) and len(tag_default_id.strip()) == 0: raise click.UsageError('Parameter --tag-default-id cannot be whitespace or empty string') kwargs = {} @@ -3496,7 +3495,7 @@ def delete_tag_default(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_tag_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, if_match, is_lock_override): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -3562,7 +3561,7 @@ def delete_tag_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_user(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_id, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -3631,7 +3630,7 @@ def delete_user(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def enable_replication_to_region(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_id, replica_region, if_match): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') kwargs = {} @@ -3694,10 +3693,10 @@ def enable_replication_to_region(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def generate_totp_seed(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_id, mfa_totp_device_id, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(mfa_totp_device_id, six.string_types) and len(mfa_totp_device_id.strip()) == 0: + if isinstance(mfa_totp_device_id, str) and len(mfa_totp_device_id.strip()) == 0: raise click.UsageError('Parameter --mfa-totp-device-id cannot be whitespace or empty string') kwargs = {} @@ -3744,7 +3743,7 @@ def generate_totp_seed(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_authentication_policy(ctx, from_json, compartment_id): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') kwargs = {} @@ -3767,7 +3766,7 @@ def get_authentication_policy(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_compartment(ctx, from_json, compartment_id): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') kwargs = {} @@ -3788,7 +3787,7 @@ def get_compartment(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_domain(ctx, from_json, domain_id): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') kwargs = {} @@ -3810,7 +3809,7 @@ def get_domain(ctx, from_json, domain_id): @cli_util.wrap_exceptions def get_dynamic_group(ctx, from_json, dynamic_group_id): - if isinstance(dynamic_group_id, six.string_types) and len(dynamic_group_id.strip()) == 0: + if isinstance(dynamic_group_id, str) and len(dynamic_group_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-group-id cannot be whitespace or empty string') kwargs = {} @@ -3833,7 +3832,7 @@ def get_dynamic_group(ctx, from_json, dynamic_group_id): @cli_util.wrap_exceptions def get_group(ctx, from_json, group_id): - if isinstance(group_id, six.string_types) and len(group_id.strip()) == 0: + if isinstance(group_id, str) and len(group_id.strip()) == 0: raise click.UsageError('Parameter --group-id cannot be whitespace or empty string') kwargs = {} @@ -3854,7 +3853,7 @@ def get_group(ctx, from_json, group_id): @cli_util.wrap_exceptions def get_iam_work_request(ctx, from_json, iam_work_request_id): - if isinstance(iam_work_request_id, six.string_types) and len(iam_work_request_id.strip()) == 0: + if isinstance(iam_work_request_id, str) and len(iam_work_request_id.strip()) == 0: raise click.UsageError('Parameter --iam-work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3878,7 +3877,7 @@ def get_iam_work_request(ctx, from_json, iam_work_request_id): @cli_util.wrap_exceptions def get_identity_provider(ctx, from_json, identity_provider_id): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -3902,10 +3901,10 @@ def get_identity_provider(ctx, from_json, identity_provider_id): @cli_util.wrap_exceptions def get_idp_group_mapping(ctx, from_json, identity_provider_id, mapping_id): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') - if isinstance(mapping_id, six.string_types) and len(mapping_id.strip()) == 0: + if isinstance(mapping_id, str) and len(mapping_id.strip()) == 0: raise click.UsageError('Parameter --mapping-id cannot be whitespace or empty string') kwargs = {} @@ -3928,10 +3927,10 @@ def get_idp_group_mapping(ctx, from_json, identity_provider_id, mapping_id): @cli_util.wrap_exceptions def get_mfa_totp_device(ctx, from_json, user_id, mfa_totp_device_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(mfa_totp_device_id, six.string_types) and len(mfa_totp_device_id.strip()) == 0: + if isinstance(mfa_totp_device_id, str) and len(mfa_totp_device_id.strip()) == 0: raise click.UsageError('Parameter --mfa-totp-device-id cannot be whitespace or empty string') kwargs = {} @@ -3953,7 +3952,7 @@ def get_mfa_totp_device(ctx, from_json, user_id, mfa_totp_device_id): @cli_util.wrap_exceptions def get_network_source(ctx, from_json, network_source_id): - if isinstance(network_source_id, six.string_types) and len(network_source_id.strip()) == 0: + if isinstance(network_source_id, str) and len(network_source_id.strip()) == 0: raise click.UsageError('Parameter --network-source-id cannot be whitespace or empty string') kwargs = {} @@ -3974,7 +3973,7 @@ def get_network_source(ctx, from_json, network_source_id): @cli_util.wrap_exceptions def get_policy(ctx, from_json, policy_id): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') kwargs = {} @@ -3996,7 +3995,7 @@ def get_policy(ctx, from_json, policy_id): @cli_util.wrap_exceptions def get_standard_tag_template(ctx, from_json, compartment_id, standard_tag_namespace_name): - if isinstance(standard_tag_namespace_name, six.string_types) and len(standard_tag_namespace_name.strip()) == 0: + if isinstance(standard_tag_namespace_name, str) and len(standard_tag_namespace_name.strip()) == 0: raise click.UsageError('Parameter --standard-tag-namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4019,10 +4018,10 @@ def get_standard_tag_template(ctx, from_json, compartment_id, standard_tag_names @cli_util.wrap_exceptions def get_tag(ctx, from_json, tag_namespace_id, tag_name): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') - if isinstance(tag_name, six.string_types) and len(tag_name.strip()) == 0: + if isinstance(tag_name, str) and len(tag_name.strip()) == 0: raise click.UsageError('Parameter --tag-name cannot be whitespace or empty string') kwargs = {} @@ -4044,7 +4043,7 @@ def get_tag(ctx, from_json, tag_namespace_id, tag_name): @cli_util.wrap_exceptions def get_tag_default(ctx, from_json, tag_default_id): - if isinstance(tag_default_id, six.string_types) and len(tag_default_id.strip()) == 0: + if isinstance(tag_default_id, str) and len(tag_default_id.strip()) == 0: raise click.UsageError('Parameter --tag-default-id cannot be whitespace or empty string') kwargs = {} @@ -4065,7 +4064,7 @@ def get_tag_default(ctx, from_json, tag_default_id): @cli_util.wrap_exceptions def get_tag_namespace(ctx, from_json, tag_namespace_id): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -4086,7 +4085,7 @@ def get_tag_namespace(ctx, from_json, tag_namespace_id): @cli_util.wrap_exceptions def get_tagging_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4107,7 +4106,7 @@ def get_tagging_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def get_tenancy(ctx, from_json, tenancy_id): - if isinstance(tenancy_id, six.string_types) and len(tenancy_id.strip()) == 0: + if isinstance(tenancy_id, str) and len(tenancy_id.strip()) == 0: raise click.UsageError('Parameter --tenancy-id cannot be whitespace or empty string') kwargs = {} @@ -4128,7 +4127,7 @@ def get_tenancy(ctx, from_json, tenancy_id): @cli_util.wrap_exceptions def get_user(ctx, from_json, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -4149,7 +4148,7 @@ def get_user(ctx, from_json, user_id): @cli_util.wrap_exceptions def get_user_group_membership(ctx, from_json, user_group_membership_id): - if isinstance(user_group_membership_id, six.string_types) and len(user_group_membership_id.strip()) == 0: + if isinstance(user_group_membership_id, str) and len(user_group_membership_id.strip()) == 0: raise click.UsageError('Parameter --user-group-membership-id cannot be whitespace or empty string') kwargs = {} @@ -4170,7 +4169,7 @@ def get_user_group_membership(ctx, from_json, user_group_membership_id): @cli_util.wrap_exceptions def get_user_ui_password_information(ctx, from_json, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -4191,7 +4190,7 @@ def get_user_ui_password_information(ctx, from_json, user_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4293,7 +4292,7 @@ def list_allowed_domain_license_types(ctx, from_json, all_pages, current_license @cli_util.wrap_exceptions def list_api_keys(ctx, from_json, all_pages, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -4315,7 +4314,7 @@ def list_api_keys(ctx, from_json, all_pages, user_id): @cli_util.wrap_exceptions def list_auth_tokens(ctx, from_json, all_pages, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -4570,7 +4569,7 @@ def list_cost_tracking_tags(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def list_customer_secret_keys(ctx, from_json, all_pages, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -4604,7 +4603,7 @@ def list_db_credentials(ctx, from_json, all_pages, page_size, user_id, page, lim if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -4887,7 +4886,7 @@ def list_iam_work_request_errors(ctx, from_json, all_pages, page_size, iam_work_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(iam_work_request_id, six.string_types) and len(iam_work_request_id.strip()) == 0: + if isinstance(iam_work_request_id, str) and len(iam_work_request_id.strip()) == 0: raise click.UsageError('Parameter --iam-work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4941,7 +4940,7 @@ def list_iam_work_request_logs(ctx, from_json, all_pages, page_size, iam_work_re if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(iam_work_request_id, six.string_types) and len(iam_work_request_id.strip()) == 0: + if isinstance(iam_work_request_id, str) and len(iam_work_request_id.strip()) == 0: raise click.UsageError('Parameter --iam-work-request-id cannot be whitespace or empty string') kwargs = {} @@ -5049,7 +5048,7 @@ def list_identity_provider_groups(ctx, from_json, all_pages, page_size, identity if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -5172,7 +5171,7 @@ def list_idp_group_mappings(ctx, from_json, all_pages, page_size, identity_provi if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -5226,7 +5225,7 @@ def list_mfa_totp_devices(ctx, from_json, all_pages, page_size, user_id, page, l if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -5342,7 +5341,7 @@ def list_o_auth_client_credentials(ctx, from_json, all_pages, page_size, user_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -5451,7 +5450,7 @@ def list_policies(ctx, from_json, all_pages, page_size, compartment_id, page, li @cli_util.wrap_exceptions def list_region_subscriptions(ctx, from_json, all_pages, tenancy_id): - if isinstance(tenancy_id, six.string_types) and len(tenancy_id.strip()) == 0: + if isinstance(tenancy_id, str) and len(tenancy_id.strip()) == 0: raise click.UsageError('Parameter --tenancy-id cannot be whitespace or empty string') kwargs = {} @@ -5490,7 +5489,7 @@ def list_regions(ctx, from_json, all_pages, ): @cli_util.wrap_exceptions def list_smtp_credentials(ctx, from_json, all_pages, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -5561,7 +5560,7 @@ def list_standard_tag_namespaces(ctx, from_json, all_pages, page_size, compartme @cli_util.wrap_exceptions def list_swift_passwords(ctx, from_json, all_pages, user_id): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -5697,7 +5696,7 @@ def list_tagging_work_request_errors(ctx, from_json, all_pages, page_size, work_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -5747,7 +5746,7 @@ def list_tagging_work_request_logs(ctx, from_json, all_pages, page_size, work_re if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -5848,7 +5847,7 @@ def list_tags(ctx, from_json, all_pages, page_size, tag_namespace_id, page, limi if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -6072,7 +6071,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def move_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, target_compartment_id, if_match): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') kwargs = {} @@ -6132,7 +6131,7 @@ def move_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def recover_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, if_match): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') kwargs = {} @@ -6184,7 +6183,7 @@ def recover_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def remove_tag_default_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_default_id, type, if_match): - if isinstance(tag_default_id, six.string_types) and len(tag_default_id.strip()) == 0: + if isinstance(tag_default_id, str) and len(tag_default_id.strip()) == 0: raise click.UsageError('Parameter --tag-default-id cannot be whitespace or empty string') kwargs = {} @@ -6241,7 +6240,7 @@ def remove_tag_default_lock(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def remove_tag_namespace_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, type, if_match): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -6295,7 +6294,7 @@ def remove_tag_namespace_lock(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def remove_user_from_group(ctx, from_json, user_group_membership_id, if_match): - if isinstance(user_group_membership_id, six.string_types) and len(user_group_membership_id.strip()) == 0: + if isinstance(user_group_membership_id, str) and len(user_group_membership_id.strip()) == 0: raise click.UsageError('Parameter --user-group-membership-id cannot be whitespace or empty string') kwargs = {} @@ -6318,7 +6317,7 @@ def remove_user_from_group(ctx, from_json, user_group_membership_id, if_match): @cli_util.wrap_exceptions def reset_idp_scim_client(ctx, from_json, identity_provider_id): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -6344,10 +6343,10 @@ def reset_idp_scim_client(ctx, from_json, identity_provider_id): @cli_util.wrap_exceptions def update_auth_token(ctx, from_json, user_id, auth_token_id, description, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(auth_token_id, six.string_types) and len(auth_token_id.strip()) == 0: + if isinstance(auth_token_id, str) and len(auth_token_id.strip()) == 0: raise click.UsageError('Parameter --auth-token-id cannot be whitespace or empty string') kwargs = {} @@ -6382,7 +6381,7 @@ def update_auth_token(ctx, from_json, user_id, auth_token_id, description, if_ma @cli_util.wrap_exceptions def update_authentication_policy(ctx, from_json, force, compartment_id, password_policy, network_policy, if_match): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') if not force: if password_policy or network_policy: @@ -6428,7 +6427,7 @@ def update_authentication_policy(ctx, from_json, force, compartment_id, password @cli_util.wrap_exceptions def update_compartment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, description, name, freeform_tags, defined_tags, if_match): - if isinstance(compartment_id, six.string_types) and len(compartment_id.strip()) == 0: + if isinstance(compartment_id, str) and len(compartment_id.strip()) == 0: raise click.UsageError('Parameter --compartment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6499,10 +6498,10 @@ def update_compartment(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_customer_secret_key(ctx, from_json, user_id, customer_secret_key_id, display_name, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(customer_secret_key_id, six.string_types) and len(customer_secret_key_id.strip()) == 0: + if isinstance(customer_secret_key_id, str) and len(customer_secret_key_id.strip()) == 0: raise click.UsageError('Parameter --customer-secret-key-id cannot be whitespace or empty string') kwargs = {} @@ -6545,7 +6544,7 @@ def update_customer_secret_key(ctx, from_json, user_id, customer_secret_key_id, @cli_util.wrap_exceptions def update_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_id, description, display_name, is_hidden_on_login, freeform_tags, defined_tags, if_match): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6630,7 +6629,7 @@ def update_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_dynamic_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dynamic_group_id, description, matching_rule, freeform_tags, defined_tags, if_match): - if isinstance(dynamic_group_id, six.string_types) and len(dynamic_group_id.strip()) == 0: + if isinstance(dynamic_group_id, str) and len(dynamic_group_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6706,7 +6705,7 @@ def update_dynamic_group(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, group_id, description, freeform_tags, defined_tags, if_match): - if isinstance(group_id, six.string_types) and len(group_id.strip()) == 0: + if isinstance(group_id, str) and len(group_id.strip()) == 0: raise click.UsageError('Parameter --group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6782,7 +6781,7 @@ def update_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_identity_provider(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, identity_provider_id, protocol, description, freeform_tags, defined_tags, if_match): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6859,7 +6858,7 @@ def update_identity_provider(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_identity_provider_update_saml2_identity_provider_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, identity_provider_id, description, freeform_tags, defined_tags, metadata_url, metadata, freeform_attributes, if_match): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or freeform_attributes: @@ -6942,10 +6941,10 @@ def update_identity_provider_update_saml2_identity_provider_details(ctx, from_js @cli_util.wrap_exceptions def update_idp_group_mapping(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, identity_provider_id, mapping_id, idp_group_name, group_id, if_match): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') - if isinstance(mapping_id, six.string_types) and len(mapping_id.strip()) == 0: + if isinstance(mapping_id, str) and len(mapping_id.strip()) == 0: raise click.UsageError('Parameter --mapping-id cannot be whitespace or empty string') kwargs = {} @@ -7012,7 +7011,7 @@ def update_idp_group_mapping(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_network_source(ctx, from_json, force, network_source_id, description, public_source_list, virtual_source_list, services, freeform_tags, defined_tags, if_match): - if isinstance(network_source_id, six.string_types) and len(network_source_id.strip()) == 0: + if isinstance(network_source_id, str) and len(network_source_id.strip()) == 0: raise click.UsageError('Parameter --network-source-id cannot be whitespace or empty string') if not force: if public_source_list or virtual_source_list or services or freeform_tags or defined_tags: @@ -7067,10 +7066,10 @@ def update_network_source(ctx, from_json, force, network_source_id, description, @cli_util.wrap_exceptions def update_o_auth_client_credential(ctx, from_json, force, user_id, oauth2_client_credential_id, description, scopes, is_reset_password, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(oauth2_client_credential_id, six.string_types) and len(oauth2_client_credential_id.strip()) == 0: + if isinstance(oauth2_client_credential_id, str) and len(oauth2_client_credential_id.strip()) == 0: raise click.UsageError('Parameter --oauth2-client-credential-id cannot be whitespace or empty string') if not force: if scopes: @@ -7119,7 +7118,7 @@ def update_o_auth_client_credential(ctx, from_json, force, user_id, oauth2_clien @cli_util.wrap_exceptions def update_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, policy_id, description, statements, version_date, freeform_tags, defined_tags, if_match): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') if not force: if statements or freeform_tags or defined_tags: @@ -7193,10 +7192,10 @@ def update_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_smtp_credential(ctx, from_json, user_id, smtp_credential_id, description, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(smtp_credential_id, six.string_types) and len(smtp_credential_id.strip()) == 0: + if isinstance(smtp_credential_id, str) and len(smtp_credential_id.strip()) == 0: raise click.UsageError('Parameter --smtp-credential-id cannot be whitespace or empty string') kwargs = {} @@ -7234,10 +7233,10 @@ def update_smtp_credential(ctx, from_json, user_id, smtp_credential_id, descript @cli_util.wrap_exceptions def update_swift_password(ctx, from_json, user_id, swift_password_id, description, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') - if isinstance(swift_password_id, six.string_types) and len(swift_password_id.strip()) == 0: + if isinstance(swift_password_id, str) and len(swift_password_id.strip()) == 0: raise click.UsageError('Parameter --swift-password-id cannot be whitespace or empty string') kwargs = {} @@ -7289,10 +7288,10 @@ def update_swift_password(ctx, from_json, user_id, swift_password_id, descriptio @cli_util.wrap_exceptions def update_tag(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, tag_name, description, is_retired, freeform_tags, defined_tags, is_cost_tracking, validator, if_match, is_lock_override): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') - if isinstance(tag_name, six.string_types) and len(tag_name.strip()) == 0: + if isinstance(tag_name, str) and len(tag_name.strip()) == 0: raise click.UsageError('Parameter --tag-name cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or validator: @@ -7387,10 +7386,10 @@ def update_tag(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_tag_default_tag_definition_validator(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, tag_name, description, is_retired, freeform_tags, defined_tags, is_cost_tracking, if_match, is_lock_override): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') - if isinstance(tag_name, six.string_types) and len(tag_name.strip()) == 0: + if isinstance(tag_name, str) and len(tag_name.strip()) == 0: raise click.UsageError('Parameter --tag-name cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -7486,10 +7485,10 @@ def update_tag_default_tag_definition_validator(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_tag_enum_tag_definition_validator(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, tag_name, description, is_retired, freeform_tags, defined_tags, is_cost_tracking, if_match, is_lock_override, validator_values): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') - if isinstance(tag_name, six.string_types) and len(tag_name.strip()) == 0: + if isinstance(tag_name, str) and len(tag_name.strip()) == 0: raise click.UsageError('Parameter --tag-name cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -7580,7 +7579,7 @@ def update_tag_enum_tag_definition_validator(ctx, from_json, force, wait_for_sta @cli_util.wrap_exceptions def update_tag_default(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_default_id, value, is_required, is_lock_override, if_match): - if isinstance(tag_default_id, six.string_types) and len(tag_default_id.strip()) == 0: + if isinstance(tag_default_id, str) and len(tag_default_id.strip()) == 0: raise click.UsageError('Parameter --tag-default-id cannot be whitespace or empty string') kwargs = {} @@ -7650,7 +7649,7 @@ def update_tag_default(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_tag_namespace(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, tag_namespace_id, description, is_retired, freeform_tags, defined_tags, is_lock_override): - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -7730,7 +7729,7 @@ def update_tag_namespace(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_user(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, user_id, description, email, db_user_name, freeform_tags, defined_tags, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -7810,7 +7809,7 @@ def update_user(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_user_capabilities(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_id, can_use_console_password, can_use_api_keys, can_use_auth_tokens, can_use_smtp_credentials, can_use_db_credentials, can_use_customer_secret_keys, can_use_o_auth2_client_credentials, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -7886,7 +7885,7 @@ def update_user_capabilities(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_user_state(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, user_id, blocked, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -7946,7 +7945,7 @@ def update_user_state(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def upload_api_key(ctx, from_json, user_id, key): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/identity/src/oci_cli_identity/identity_cli_extended.py b/services/identity/src/oci_cli_identity/identity_cli_extended.py index 35906ce1a..ccdbfb652 100644 --- a/services/identity/src/oci_cli_identity/identity_cli_extended.py +++ b/services/identity/src/oci_cli_identity/identity_cli_extended.py @@ -4,7 +4,6 @@ from __future__ import print_function import click -import six import sys from services.identity.src.oci_cli_identity.generated import identity_cli from oci_cli import cli_exceptions @@ -57,9 +56,9 @@ def set_iam_default_tenancy_help(): if not cli_root.cli.commands.get('iam', None): return iam_command = cli_root.cli.commands.get('iam') - for _, entitycommand in six.iteritems(iam_command.commands): + for _, entitycommand in iam_command.commands.items(): if entitycommand.name in iam_tenancy_defaults.keys(): - for _, subcommand in six.iteritems(entitycommand.commands): + for _, subcommand in entitycommand.commands.items(): for param in subcommand.params: if subcommand.name in iam_tenancy_defaults[entitycommand.name]: if param.name == 'compartment_id' or param.name == 'tenancy_id': @@ -374,10 +373,10 @@ def retire_tag(ctx, **kwargs): tag_namespace_id = kwargs['tag_namespace_id'] tag_name = kwargs['tag_name'] - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') - if isinstance(tag_name, six.string_types) and len(tag_name.strip()) == 0: + if isinstance(tag_name, str) and len(tag_name.strip()) == 0: raise click.UsageError('Parameter --tag-name cannot be whitespace or empty string') service_kwargs = {} @@ -405,10 +404,10 @@ def reactivate_tag(ctx, **kwargs): tag_namespace_id = kwargs['tag_namespace_id'] tag_name = kwargs['tag_name'] - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') - if isinstance(tag_name, six.string_types) and len(tag_name.strip()) == 0: + if isinstance(tag_name, str) and len(tag_name.strip()) == 0: raise click.UsageError('Parameter --tag-name cannot be whitespace or empty string') service_kwargs = {} @@ -435,7 +434,7 @@ def update_tag_namespace_description(ctx, **kwargs): freeform_tags = kwargs.get('freeform_tags') defined_tags = kwargs.get('defined_tags') - if isinstance(tag_namespace_id, six.string_types) and len(tag_namespace_id.strip()) == 0: + if isinstance(tag_namespace_id, str) and len(tag_namespace_id.strip()) == 0: raise click.UsageError('Parameter --tag-namespace-id cannot be whitespace or empty string') if not kwargs.get('force'): diff --git a/services/identity_data_plane/src/oci_cli_dataplane/generated/dataplane_cli.py b/services/identity_data_plane/src/oci_cli_dataplane/generated/dataplane_cli.py index ae0bfca81..dea506f64 100644 --- a/services/identity_data_plane/src/oci_cli_dataplane/generated/dataplane_cli.py +++ b/services/identity_data_plane/src/oci_cli_dataplane/generated/dataplane_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 diff --git a/services/identity_domains/src/oci_cli_identity_domains/generated/identitydomains_cli.py b/services/identity_domains/src/oci_cli_identity_domains/generated/identitydomains_cli.py index 684a1ed66..2280b2e4e 100644 --- a/services/identity_domains/src/oci_cli_identity_domains/generated/identitydomains_cli.py +++ b/services/identity_domains/src/oci_cli_identity_domains/generated/identitydomains_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -9519,7 +9518,7 @@ def create_verification_claim(ctx, from_json, schemas, oidc_provider, authorizat @cli_util.wrap_exceptions def delete_api_key(ctx, from_json, api_key_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -9555,7 +9554,7 @@ def delete_api_key(ctx, from_json, api_key_id, authorization, resource_type_sche @cli_util.wrap_exceptions def delete_app(ctx, from_json, app_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(app_id, six.string_types) and len(app_id.strip()) == 0: + if isinstance(app_id, str) and len(app_id.strip()) == 0: raise click.UsageError('Parameter --app-id cannot be whitespace or empty string') kwargs = {} @@ -9591,7 +9590,7 @@ def delete_app(ctx, from_json, app_id, authorization, resource_type_schema_versi @cli_util.wrap_exceptions def delete_app_role(ctx, from_json, app_role_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(app_role_id, six.string_types) and len(app_role_id.strip()) == 0: + if isinstance(app_role_id, str) and len(app_role_id.strip()) == 0: raise click.UsageError('Parameter --app-role-id cannot be whitespace or empty string') kwargs = {} @@ -9627,7 +9626,7 @@ def delete_app_role(ctx, from_json, app_role_id, authorization, resource_type_sc @cli_util.wrap_exceptions def delete_approval_workflow(ctx, from_json, approval_workflow_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(approval_workflow_id, six.string_types) and len(approval_workflow_id.strip()) == 0: + if isinstance(approval_workflow_id, str) and len(approval_workflow_id.strip()) == 0: raise click.UsageError('Parameter --approval-workflow-id cannot be whitespace or empty string') kwargs = {} @@ -9663,7 +9662,7 @@ def delete_approval_workflow(ctx, from_json, approval_workflow_id, authorization @cli_util.wrap_exceptions def delete_approval_workflow_assignment(ctx, from_json, approval_workflow_assignment_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(approval_workflow_assignment_id, six.string_types) and len(approval_workflow_assignment_id.strip()) == 0: + if isinstance(approval_workflow_assignment_id, str) and len(approval_workflow_assignment_id.strip()) == 0: raise click.UsageError('Parameter --approval-workflow-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -9699,7 +9698,7 @@ def delete_approval_workflow_assignment(ctx, from_json, approval_workflow_assign @cli_util.wrap_exceptions def delete_approval_workflow_step(ctx, from_json, approval_workflow_step_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(approval_workflow_step_id, six.string_types) and len(approval_workflow_step_id.strip()) == 0: + if isinstance(approval_workflow_step_id, str) and len(approval_workflow_step_id.strip()) == 0: raise click.UsageError('Parameter --approval-workflow-step-id cannot be whitespace or empty string') kwargs = {} @@ -9735,7 +9734,7 @@ def delete_approval_workflow_step(ctx, from_json, approval_workflow_step_id, aut @cli_util.wrap_exceptions def delete_auth_token(ctx, from_json, auth_token_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(auth_token_id, six.string_types) and len(auth_token_id.strip()) == 0: + if isinstance(auth_token_id, str) and len(auth_token_id.strip()) == 0: raise click.UsageError('Parameter --auth-token-id cannot be whitespace or empty string') kwargs = {} @@ -9771,7 +9770,7 @@ def delete_auth_token(ctx, from_json, auth_token_id, authorization, resource_typ @cli_util.wrap_exceptions def delete_cloud_gate(ctx, from_json, cloud_gate_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(cloud_gate_id, six.string_types) and len(cloud_gate_id.strip()) == 0: + if isinstance(cloud_gate_id, str) and len(cloud_gate_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-id cannot be whitespace or empty string') kwargs = {} @@ -9807,7 +9806,7 @@ def delete_cloud_gate(ctx, from_json, cloud_gate_id, authorization, resource_typ @cli_util.wrap_exceptions def delete_cloud_gate_mapping(ctx, from_json, cloud_gate_mapping_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(cloud_gate_mapping_id, six.string_types) and len(cloud_gate_mapping_id.strip()) == 0: + if isinstance(cloud_gate_mapping_id, str) and len(cloud_gate_mapping_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-mapping-id cannot be whitespace or empty string') kwargs = {} @@ -9843,7 +9842,7 @@ def delete_cloud_gate_mapping(ctx, from_json, cloud_gate_mapping_id, authorizati @cli_util.wrap_exceptions def delete_cloud_gate_server(ctx, from_json, cloud_gate_server_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(cloud_gate_server_id, six.string_types) and len(cloud_gate_server_id.strip()) == 0: + if isinstance(cloud_gate_server_id, str) and len(cloud_gate_server_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-server-id cannot be whitespace or empty string') kwargs = {} @@ -9879,7 +9878,7 @@ def delete_cloud_gate_server(ctx, from_json, cloud_gate_server_id, authorization @cli_util.wrap_exceptions def delete_condition(ctx, from_json, condition_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(condition_id, six.string_types) and len(condition_id.strip()) == 0: + if isinstance(condition_id, str) and len(condition_id.strip()) == 0: raise click.UsageError('Parameter --condition-id cannot be whitespace or empty string') kwargs = {} @@ -9915,7 +9914,7 @@ def delete_condition(ctx, from_json, condition_id, authorization, resource_type_ @cli_util.wrap_exceptions def delete_customer_secret_key(ctx, from_json, customer_secret_key_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(customer_secret_key_id, six.string_types) and len(customer_secret_key_id.strip()) == 0: + if isinstance(customer_secret_key_id, str) and len(customer_secret_key_id.strip()) == 0: raise click.UsageError('Parameter --customer-secret-key-id cannot be whitespace or empty string') kwargs = {} @@ -9951,7 +9950,7 @@ def delete_customer_secret_key(ctx, from_json, customer_secret_key_id, authoriza @cli_util.wrap_exceptions def delete_dynamic_resource_group(ctx, from_json, dynamic_resource_group_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(dynamic_resource_group_id, six.string_types) and len(dynamic_resource_group_id.strip()) == 0: + if isinstance(dynamic_resource_group_id, str) and len(dynamic_resource_group_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-resource-group-id cannot be whitespace or empty string') kwargs = {} @@ -9987,7 +9986,7 @@ def delete_dynamic_resource_group(ctx, from_json, dynamic_resource_group_id, aut @cli_util.wrap_exceptions def delete_grant(ctx, from_json, grant_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(grant_id, six.string_types) and len(grant_id.strip()) == 0: + if isinstance(grant_id, str) and len(grant_id.strip()) == 0: raise click.UsageError('Parameter --grant-id cannot be whitespace or empty string') kwargs = {} @@ -10023,7 +10022,7 @@ def delete_grant(ctx, from_json, grant_id, authorization, resource_type_schema_v @cli_util.wrap_exceptions def delete_group(ctx, from_json, group_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(group_id, six.string_types) and len(group_id.strip()) == 0: + if isinstance(group_id, str) and len(group_id.strip()) == 0: raise click.UsageError('Parameter --group-id cannot be whitespace or empty string') kwargs = {} @@ -10059,7 +10058,7 @@ def delete_group(ctx, from_json, group_id, authorization, resource_type_schema_v @cli_util.wrap_exceptions def delete_identity_proofing_provider(ctx, from_json, identity_proofing_provider_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(identity_proofing_provider_id, six.string_types) and len(identity_proofing_provider_id.strip()) == 0: + if isinstance(identity_proofing_provider_id, str) and len(identity_proofing_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-proofing-provider-id cannot be whitespace or empty string') kwargs = {} @@ -10095,7 +10094,7 @@ def delete_identity_proofing_provider(ctx, from_json, identity_proofing_provider @cli_util.wrap_exceptions def delete_identity_proofing_provider_template(ctx, from_json, identity_proofing_provider_template_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(identity_proofing_provider_template_id, six.string_types) and len(identity_proofing_provider_template_id.strip()) == 0: + if isinstance(identity_proofing_provider_template_id, str) and len(identity_proofing_provider_template_id.strip()) == 0: raise click.UsageError('Parameter --identity-proofing-provider-template-id cannot be whitespace or empty string') kwargs = {} @@ -10131,7 +10130,7 @@ def delete_identity_proofing_provider_template(ctx, from_json, identity_proofing @cli_util.wrap_exceptions def delete_identity_propagation_trust(ctx, from_json, identity_propagation_trust_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(identity_propagation_trust_id, six.string_types) and len(identity_propagation_trust_id.strip()) == 0: + if isinstance(identity_propagation_trust_id, str) and len(identity_propagation_trust_id.strip()) == 0: raise click.UsageError('Parameter --identity-propagation-trust-id cannot be whitespace or empty string') kwargs = {} @@ -10167,7 +10166,7 @@ def delete_identity_propagation_trust(ctx, from_json, identity_propagation_trust @cli_util.wrap_exceptions def delete_identity_provider(ctx, from_json, identity_provider_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -10203,7 +10202,7 @@ def delete_identity_provider(ctx, from_json, identity_provider_id, authorization @cli_util.wrap_exceptions def delete_my_api_key(ctx, from_json, my_api_key_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(my_api_key_id, six.string_types) and len(my_api_key_id.strip()) == 0: + if isinstance(my_api_key_id, str) and len(my_api_key_id.strip()) == 0: raise click.UsageError('Parameter --my-api-key-id cannot be whitespace or empty string') kwargs = {} @@ -10239,7 +10238,7 @@ def delete_my_api_key(ctx, from_json, my_api_key_id, authorization, resource_typ @cli_util.wrap_exceptions def delete_my_auth_token(ctx, from_json, my_auth_token_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(my_auth_token_id, six.string_types) and len(my_auth_token_id.strip()) == 0: + if isinstance(my_auth_token_id, str) and len(my_auth_token_id.strip()) == 0: raise click.UsageError('Parameter --my-auth-token-id cannot be whitespace or empty string') kwargs = {} @@ -10275,7 +10274,7 @@ def delete_my_auth_token(ctx, from_json, my_auth_token_id, authorization, resour @cli_util.wrap_exceptions def delete_my_customer_secret_key(ctx, from_json, my_customer_secret_key_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(my_customer_secret_key_id, six.string_types) and len(my_customer_secret_key_id.strip()) == 0: + if isinstance(my_customer_secret_key_id, str) and len(my_customer_secret_key_id.strip()) == 0: raise click.UsageError('Parameter --my-customer-secret-key-id cannot be whitespace or empty string') kwargs = {} @@ -10311,7 +10310,7 @@ def delete_my_customer_secret_key(ctx, from_json, my_customer_secret_key_id, aut @cli_util.wrap_exceptions def delete_my_device(ctx, from_json, my_device_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(my_device_id, six.string_types) and len(my_device_id.strip()) == 0: + if isinstance(my_device_id, str) and len(my_device_id.strip()) == 0: raise click.UsageError('Parameter --my-device-id cannot be whitespace or empty string') kwargs = {} @@ -10347,7 +10346,7 @@ def delete_my_device(ctx, from_json, my_device_id, authorization, resource_type_ @cli_util.wrap_exceptions def delete_my_o_auth2_client_credential(ctx, from_json, my_o_auth2_client_credential_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(my_o_auth2_client_credential_id, six.string_types) and len(my_o_auth2_client_credential_id.strip()) == 0: + if isinstance(my_o_auth2_client_credential_id, str) and len(my_o_auth2_client_credential_id.strip()) == 0: raise click.UsageError('Parameter --my-o-auth2-client-credential-id cannot be whitespace or empty string') kwargs = {} @@ -10383,7 +10382,7 @@ def delete_my_o_auth2_client_credential(ctx, from_json, my_o_auth2_client_creden @cli_util.wrap_exceptions def delete_my_smtp_credential(ctx, from_json, my_smtp_credential_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(my_smtp_credential_id, six.string_types) and len(my_smtp_credential_id.strip()) == 0: + if isinstance(my_smtp_credential_id, str) and len(my_smtp_credential_id.strip()) == 0: raise click.UsageError('Parameter --my-smtp-credential-id cannot be whitespace or empty string') kwargs = {} @@ -10419,7 +10418,7 @@ def delete_my_smtp_credential(ctx, from_json, my_smtp_credential_id, authorizati @cli_util.wrap_exceptions def delete_my_support_account(ctx, from_json, my_support_account_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(my_support_account_id, six.string_types) and len(my_support_account_id.strip()) == 0: + if isinstance(my_support_account_id, str) and len(my_support_account_id.strip()) == 0: raise click.UsageError('Parameter --my-support-account-id cannot be whitespace or empty string') kwargs = {} @@ -10455,7 +10454,7 @@ def delete_my_support_account(ctx, from_json, my_support_account_id, authorizati @cli_util.wrap_exceptions def delete_my_trusted_user_agent(ctx, from_json, my_trusted_user_agent_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(my_trusted_user_agent_id, six.string_types) and len(my_trusted_user_agent_id.strip()) == 0: + if isinstance(my_trusted_user_agent_id, str) and len(my_trusted_user_agent_id.strip()) == 0: raise click.UsageError('Parameter --my-trusted-user-agent-id cannot be whitespace or empty string') kwargs = {} @@ -10491,7 +10490,7 @@ def delete_my_trusted_user_agent(ctx, from_json, my_trusted_user_agent_id, autho @cli_util.wrap_exceptions def delete_my_user_db_credential(ctx, from_json, my_user_db_credential_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(my_user_db_credential_id, six.string_types) and len(my_user_db_credential_id.strip()) == 0: + if isinstance(my_user_db_credential_id, str) and len(my_user_db_credential_id.strip()) == 0: raise click.UsageError('Parameter --my-user-db-credential-id cannot be whitespace or empty string') kwargs = {} @@ -10527,7 +10526,7 @@ def delete_my_user_db_credential(ctx, from_json, my_user_db_credential_id, autho @cli_util.wrap_exceptions def delete_network_perimeter(ctx, from_json, network_perimeter_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(network_perimeter_id, six.string_types) and len(network_perimeter_id.strip()) == 0: + if isinstance(network_perimeter_id, str) and len(network_perimeter_id.strip()) == 0: raise click.UsageError('Parameter --network-perimeter-id cannot be whitespace or empty string') kwargs = {} @@ -10563,7 +10562,7 @@ def delete_network_perimeter(ctx, from_json, network_perimeter_id, authorization @cli_util.wrap_exceptions def delete_o_auth2_client_credential(ctx, from_json, o_auth2_client_credential_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(o_auth2_client_credential_id, six.string_types) and len(o_auth2_client_credential_id.strip()) == 0: + if isinstance(o_auth2_client_credential_id, str) and len(o_auth2_client_credential_id.strip()) == 0: raise click.UsageError('Parameter --o-auth2-client-credential-id cannot be whitespace or empty string') kwargs = {} @@ -10599,7 +10598,7 @@ def delete_o_auth2_client_credential(ctx, from_json, o_auth2_client_credential_i @cli_util.wrap_exceptions def delete_o_auth_client_certificate(ctx, from_json, o_auth_client_certificate_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(o_auth_client_certificate_id, six.string_types) and len(o_auth_client_certificate_id.strip()) == 0: + if isinstance(o_auth_client_certificate_id, str) and len(o_auth_client_certificate_id.strip()) == 0: raise click.UsageError('Parameter --o-auth-client-certificate-id cannot be whitespace or empty string') kwargs = {} @@ -10635,7 +10634,7 @@ def delete_o_auth_client_certificate(ctx, from_json, o_auth_client_certificate_i @cli_util.wrap_exceptions def delete_o_auth_partner_certificate(ctx, from_json, o_auth_partner_certificate_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(o_auth_partner_certificate_id, six.string_types) and len(o_auth_partner_certificate_id.strip()) == 0: + if isinstance(o_auth_partner_certificate_id, str) and len(o_auth_partner_certificate_id.strip()) == 0: raise click.UsageError('Parameter --o-auth-partner-certificate-id cannot be whitespace or empty string') kwargs = {} @@ -10671,7 +10670,7 @@ def delete_o_auth_partner_certificate(ctx, from_json, o_auth_partner_certificate @cli_util.wrap_exceptions def delete_password_policy(ctx, from_json, password_policy_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(password_policy_id, six.string_types) and len(password_policy_id.strip()) == 0: + if isinstance(password_policy_id, str) and len(password_policy_id.strip()) == 0: raise click.UsageError('Parameter --password-policy-id cannot be whitespace or empty string') kwargs = {} @@ -10707,7 +10706,7 @@ def delete_password_policy(ctx, from_json, password_policy_id, authorization, re @cli_util.wrap_exceptions def delete_policy(ctx, from_json, policy_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') kwargs = {} @@ -10743,7 +10742,7 @@ def delete_policy(ctx, from_json, policy_id, authorization, resource_type_schema @cli_util.wrap_exceptions def delete_rule(ctx, from_json, rule_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(rule_id, six.string_types) and len(rule_id.strip()) == 0: + if isinstance(rule_id, str) and len(rule_id.strip()) == 0: raise click.UsageError('Parameter --rule-id cannot be whitespace or empty string') kwargs = {} @@ -10779,7 +10778,7 @@ def delete_rule(ctx, from_json, rule_id, authorization, resource_type_schema_ver @cli_util.wrap_exceptions def delete_security_question(ctx, from_json, security_question_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(security_question_id, six.string_types) and len(security_question_id.strip()) == 0: + if isinstance(security_question_id, str) and len(security_question_id.strip()) == 0: raise click.UsageError('Parameter --security-question-id cannot be whitespace or empty string') kwargs = {} @@ -10815,7 +10814,7 @@ def delete_security_question(ctx, from_json, security_question_id, authorization @cli_util.wrap_exceptions def delete_self_registration_profile(ctx, from_json, self_registration_profile_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(self_registration_profile_id, six.string_types) and len(self_registration_profile_id.strip()) == 0: + if isinstance(self_registration_profile_id, str) and len(self_registration_profile_id.strip()) == 0: raise click.UsageError('Parameter --self-registration-profile-id cannot be whitespace or empty string') kwargs = {} @@ -10851,7 +10850,7 @@ def delete_self_registration_profile(ctx, from_json, self_registration_profile_i @cli_util.wrap_exceptions def delete_smtp_credential(ctx, from_json, smtp_credential_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(smtp_credential_id, six.string_types) and len(smtp_credential_id.strip()) == 0: + if isinstance(smtp_credential_id, str) and len(smtp_credential_id.strip()) == 0: raise click.UsageError('Parameter --smtp-credential-id cannot be whitespace or empty string') kwargs = {} @@ -10887,7 +10886,7 @@ def delete_smtp_credential(ctx, from_json, smtp_credential_id, authorization, re @cli_util.wrap_exceptions def delete_social_identity_provider(ctx, from_json, social_identity_provider_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(social_identity_provider_id, six.string_types) and len(social_identity_provider_id.strip()) == 0: + if isinstance(social_identity_provider_id, str) and len(social_identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --social-identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -10923,7 +10922,7 @@ def delete_social_identity_provider(ctx, from_json, social_identity_provider_id, @cli_util.wrap_exceptions def delete_user(ctx, from_json, user_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -10959,7 +10958,7 @@ def delete_user(ctx, from_json, user_id, authorization, resource_type_schema_ver @cli_util.wrap_exceptions def delete_user_db_credential(ctx, from_json, user_db_credential_id, authorization, resource_type_schema_version, force_delete, if_match): - if isinstance(user_db_credential_id, six.string_types) and len(user_db_credential_id.strip()) == 0: + if isinstance(user_db_credential_id, str) and len(user_db_credential_id.strip()) == 0: raise click.UsageError('Parameter --user-db-credential-id cannot be whitespace or empty string') kwargs = {} @@ -10994,7 +10993,7 @@ def delete_user_db_credential(ctx, from_json, user_db_credential_id, authorizati @cli_util.wrap_exceptions def get_account_mgmt_info(ctx, from_json, account_mgmt_info_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(account_mgmt_info_id, six.string_types) and len(account_mgmt_info_id.strip()) == 0: + if isinstance(account_mgmt_info_id, str) and len(account_mgmt_info_id.strip()) == 0: raise click.UsageError('Parameter --account-mgmt-info-id cannot be whitespace or empty string') kwargs = {} @@ -11029,7 +11028,7 @@ def get_account_mgmt_info(ctx, from_json, account_mgmt_info_id, authorization, r @cli_util.wrap_exceptions def get_account_recovery_setting(ctx, from_json, account_recovery_setting_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(account_recovery_setting_id, six.string_types) and len(account_recovery_setting_id.strip()) == 0: + if isinstance(account_recovery_setting_id, str) and len(account_recovery_setting_id.strip()) == 0: raise click.UsageError('Parameter --account-recovery-setting-id cannot be whitespace or empty string') kwargs = {} @@ -11064,7 +11063,7 @@ def get_account_recovery_setting(ctx, from_json, account_recovery_setting_id, au @cli_util.wrap_exceptions def get_api_key(ctx, from_json, api_key_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -11099,7 +11098,7 @@ def get_api_key(ctx, from_json, api_key_id, authorization, resource_type_schema_ @cli_util.wrap_exceptions def get_app(ctx, from_json, app_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(app_id, six.string_types) and len(app_id.strip()) == 0: + if isinstance(app_id, str) and len(app_id.strip()) == 0: raise click.UsageError('Parameter --app-id cannot be whitespace or empty string') kwargs = {} @@ -11134,7 +11133,7 @@ def get_app(ctx, from_json, app_id, authorization, resource_type_schema_version, @cli_util.wrap_exceptions def get_app_role(ctx, from_json, app_role_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(app_role_id, six.string_types) and len(app_role_id.strip()) == 0: + if isinstance(app_role_id, str) and len(app_role_id.strip()) == 0: raise click.UsageError('Parameter --app-role-id cannot be whitespace or empty string') kwargs = {} @@ -11169,7 +11168,7 @@ def get_app_role(ctx, from_json, app_role_id, authorization, resource_type_schem @cli_util.wrap_exceptions def get_approval_workflow(ctx, from_json, approval_workflow_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(approval_workflow_id, six.string_types) and len(approval_workflow_id.strip()) == 0: + if isinstance(approval_workflow_id, str) and len(approval_workflow_id.strip()) == 0: raise click.UsageError('Parameter --approval-workflow-id cannot be whitespace or empty string') kwargs = {} @@ -11204,7 +11203,7 @@ def get_approval_workflow(ctx, from_json, approval_workflow_id, authorization, r @cli_util.wrap_exceptions def get_approval_workflow_assignment(ctx, from_json, approval_workflow_assignment_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(approval_workflow_assignment_id, six.string_types) and len(approval_workflow_assignment_id.strip()) == 0: + if isinstance(approval_workflow_assignment_id, str) and len(approval_workflow_assignment_id.strip()) == 0: raise click.UsageError('Parameter --approval-workflow-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -11239,7 +11238,7 @@ def get_approval_workflow_assignment(ctx, from_json, approval_workflow_assignmen @cli_util.wrap_exceptions def get_approval_workflow_step(ctx, from_json, approval_workflow_step_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(approval_workflow_step_id, six.string_types) and len(approval_workflow_step_id.strip()) == 0: + if isinstance(approval_workflow_step_id, str) and len(approval_workflow_step_id.strip()) == 0: raise click.UsageError('Parameter --approval-workflow-step-id cannot be whitespace or empty string') kwargs = {} @@ -11274,7 +11273,7 @@ def get_approval_workflow_step(ctx, from_json, approval_workflow_step_id, author @cli_util.wrap_exceptions def get_auth_token(ctx, from_json, auth_token_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(auth_token_id, six.string_types) and len(auth_token_id.strip()) == 0: + if isinstance(auth_token_id, str) and len(auth_token_id.strip()) == 0: raise click.UsageError('Parameter --auth-token-id cannot be whitespace or empty string') kwargs = {} @@ -11309,7 +11308,7 @@ def get_auth_token(ctx, from_json, auth_token_id, authorization, resource_type_s @cli_util.wrap_exceptions def get_authentication_factor_setting(ctx, from_json, authentication_factor_setting_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(authentication_factor_setting_id, six.string_types) and len(authentication_factor_setting_id.strip()) == 0: + if isinstance(authentication_factor_setting_id, str) and len(authentication_factor_setting_id.strip()) == 0: raise click.UsageError('Parameter --authentication-factor-setting-id cannot be whitespace or empty string') kwargs = {} @@ -11344,7 +11343,7 @@ def get_authentication_factor_setting(ctx, from_json, authentication_factor_sett @cli_util.wrap_exceptions def get_branding_setting(ctx, from_json, branding_setting_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(branding_setting_id, six.string_types) and len(branding_setting_id.strip()) == 0: + if isinstance(branding_setting_id, str) and len(branding_setting_id.strip()) == 0: raise click.UsageError('Parameter --branding-setting-id cannot be whitespace or empty string') kwargs = {} @@ -11379,7 +11378,7 @@ def get_branding_setting(ctx, from_json, branding_setting_id, authorization, res @cli_util.wrap_exceptions def get_cloud_gate(ctx, from_json, cloud_gate_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(cloud_gate_id, six.string_types) and len(cloud_gate_id.strip()) == 0: + if isinstance(cloud_gate_id, str) and len(cloud_gate_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-id cannot be whitespace or empty string') kwargs = {} @@ -11414,7 +11413,7 @@ def get_cloud_gate(ctx, from_json, cloud_gate_id, authorization, resource_type_s @cli_util.wrap_exceptions def get_cloud_gate_mapping(ctx, from_json, cloud_gate_mapping_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(cloud_gate_mapping_id, six.string_types) and len(cloud_gate_mapping_id.strip()) == 0: + if isinstance(cloud_gate_mapping_id, str) and len(cloud_gate_mapping_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-mapping-id cannot be whitespace or empty string') kwargs = {} @@ -11449,7 +11448,7 @@ def get_cloud_gate_mapping(ctx, from_json, cloud_gate_mapping_id, authorization, @cli_util.wrap_exceptions def get_cloud_gate_server(ctx, from_json, cloud_gate_server_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(cloud_gate_server_id, six.string_types) and len(cloud_gate_server_id.strip()) == 0: + if isinstance(cloud_gate_server_id, str) and len(cloud_gate_server_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-server-id cannot be whitespace or empty string') kwargs = {} @@ -11484,7 +11483,7 @@ def get_cloud_gate_server(ctx, from_json, cloud_gate_server_id, authorization, r @cli_util.wrap_exceptions def get_condition(ctx, from_json, condition_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(condition_id, six.string_types) and len(condition_id.strip()) == 0: + if isinstance(condition_id, str) and len(condition_id.strip()) == 0: raise click.UsageError('Parameter --condition-id cannot be whitespace or empty string') kwargs = {} @@ -11519,7 +11518,7 @@ def get_condition(ctx, from_json, condition_id, authorization, resource_type_sch @cli_util.wrap_exceptions def get_customer_secret_key(ctx, from_json, customer_secret_key_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(customer_secret_key_id, six.string_types) and len(customer_secret_key_id.strip()) == 0: + if isinstance(customer_secret_key_id, str) and len(customer_secret_key_id.strip()) == 0: raise click.UsageError('Parameter --customer-secret-key-id cannot be whitespace or empty string') kwargs = {} @@ -11554,7 +11553,7 @@ def get_customer_secret_key(ctx, from_json, customer_secret_key_id, authorizatio @cli_util.wrap_exceptions def get_dynamic_resource_group(ctx, from_json, dynamic_resource_group_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(dynamic_resource_group_id, six.string_types) and len(dynamic_resource_group_id.strip()) == 0: + if isinstance(dynamic_resource_group_id, str) and len(dynamic_resource_group_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-resource-group-id cannot be whitespace or empty string') kwargs = {} @@ -11589,7 +11588,7 @@ def get_dynamic_resource_group(ctx, from_json, dynamic_resource_group_id, author @cli_util.wrap_exceptions def get_grant(ctx, from_json, grant_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(grant_id, six.string_types) and len(grant_id.strip()) == 0: + if isinstance(grant_id, str) and len(grant_id.strip()) == 0: raise click.UsageError('Parameter --grant-id cannot be whitespace or empty string') kwargs = {} @@ -11624,7 +11623,7 @@ def get_grant(ctx, from_json, grant_id, authorization, resource_type_schema_vers @cli_util.wrap_exceptions def get_group(ctx, from_json, group_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(group_id, six.string_types) and len(group_id.strip()) == 0: + if isinstance(group_id, str) and len(group_id.strip()) == 0: raise click.UsageError('Parameter --group-id cannot be whitespace or empty string') kwargs = {} @@ -11659,7 +11658,7 @@ def get_group(ctx, from_json, group_id, authorization, resource_type_schema_vers @cli_util.wrap_exceptions def get_identity_proofing_provider(ctx, from_json, identity_proofing_provider_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(identity_proofing_provider_id, six.string_types) and len(identity_proofing_provider_id.strip()) == 0: + if isinstance(identity_proofing_provider_id, str) and len(identity_proofing_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-proofing-provider-id cannot be whitespace or empty string') kwargs = {} @@ -11694,7 +11693,7 @@ def get_identity_proofing_provider(ctx, from_json, identity_proofing_provider_id @cli_util.wrap_exceptions def get_identity_proofing_provider_template(ctx, from_json, identity_proofing_provider_template_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(identity_proofing_provider_template_id, six.string_types) and len(identity_proofing_provider_template_id.strip()) == 0: + if isinstance(identity_proofing_provider_template_id, str) and len(identity_proofing_provider_template_id.strip()) == 0: raise click.UsageError('Parameter --identity-proofing-provider-template-id cannot be whitespace or empty string') kwargs = {} @@ -11729,7 +11728,7 @@ def get_identity_proofing_provider_template(ctx, from_json, identity_proofing_pr @cli_util.wrap_exceptions def get_identity_propagation_trust(ctx, from_json, identity_propagation_trust_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(identity_propagation_trust_id, six.string_types) and len(identity_propagation_trust_id.strip()) == 0: + if isinstance(identity_propagation_trust_id, str) and len(identity_propagation_trust_id.strip()) == 0: raise click.UsageError('Parameter --identity-propagation-trust-id cannot be whitespace or empty string') kwargs = {} @@ -11764,7 +11763,7 @@ def get_identity_propagation_trust(ctx, from_json, identity_propagation_trust_id @cli_util.wrap_exceptions def get_identity_provider(ctx, from_json, identity_provider_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -11799,7 +11798,7 @@ def get_identity_provider(ctx, from_json, identity_provider_id, authorization, r @cli_util.wrap_exceptions def get_identity_setting(ctx, from_json, identity_setting_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(identity_setting_id, six.string_types) and len(identity_setting_id.strip()) == 0: + if isinstance(identity_setting_id, str) and len(identity_setting_id.strip()) == 0: raise click.UsageError('Parameter --identity-setting-id cannot be whitespace or empty string') kwargs = {} @@ -11834,7 +11833,7 @@ def get_identity_setting(ctx, from_json, identity_setting_id, authorization, res @cli_util.wrap_exceptions def get_kmsi_setting(ctx, from_json, kmsi_setting_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(kmsi_setting_id, six.string_types) and len(kmsi_setting_id.strip()) == 0: + if isinstance(kmsi_setting_id, str) and len(kmsi_setting_id.strip()) == 0: raise click.UsageError('Parameter --kmsi-setting-id cannot be whitespace or empty string') kwargs = {} @@ -11869,7 +11868,7 @@ def get_kmsi_setting(ctx, from_json, kmsi_setting_id, authorization, resource_ty @cli_util.wrap_exceptions def get_mapped_attribute(ctx, from_json, mapped_attribute_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(mapped_attribute_id, six.string_types) and len(mapped_attribute_id.strip()) == 0: + if isinstance(mapped_attribute_id, str) and len(mapped_attribute_id.strip()) == 0: raise click.UsageError('Parameter --mapped-attribute-id cannot be whitespace or empty string') kwargs = {} @@ -11932,7 +11931,7 @@ def get_me(ctx, from_json, authorization, resource_type_schema_version, attribut @cli_util.wrap_exceptions def get_my_api_key(ctx, from_json, my_api_key_id, authorization, resource_type_schema_version): - if isinstance(my_api_key_id, six.string_types) and len(my_api_key_id.strip()) == 0: + if isinstance(my_api_key_id, str) and len(my_api_key_id.strip()) == 0: raise click.UsageError('Parameter --my-api-key-id cannot be whitespace or empty string') kwargs = {} @@ -11961,7 +11960,7 @@ def get_my_api_key(ctx, from_json, my_api_key_id, authorization, resource_type_s @cli_util.wrap_exceptions def get_my_auth_token(ctx, from_json, my_auth_token_id, authorization, resource_type_schema_version): - if isinstance(my_auth_token_id, six.string_types) and len(my_auth_token_id.strip()) == 0: + if isinstance(my_auth_token_id, str) and len(my_auth_token_id.strip()) == 0: raise click.UsageError('Parameter --my-auth-token-id cannot be whitespace or empty string') kwargs = {} @@ -11990,7 +11989,7 @@ def get_my_auth_token(ctx, from_json, my_auth_token_id, authorization, resource_ @cli_util.wrap_exceptions def get_my_completed_approval(ctx, from_json, my_completed_approval_id, authorization, resource_type_schema_version): - if isinstance(my_completed_approval_id, six.string_types) and len(my_completed_approval_id.strip()) == 0: + if isinstance(my_completed_approval_id, str) and len(my_completed_approval_id.strip()) == 0: raise click.UsageError('Parameter --my-completed-approval-id cannot be whitespace or empty string') kwargs = {} @@ -12019,7 +12018,7 @@ def get_my_completed_approval(ctx, from_json, my_completed_approval_id, authoriz @cli_util.wrap_exceptions def get_my_customer_secret_key(ctx, from_json, my_customer_secret_key_id, authorization, resource_type_schema_version): - if isinstance(my_customer_secret_key_id, six.string_types) and len(my_customer_secret_key_id.strip()) == 0: + if isinstance(my_customer_secret_key_id, str) and len(my_customer_secret_key_id.strip()) == 0: raise click.UsageError('Parameter --my-customer-secret-key-id cannot be whitespace or empty string') kwargs = {} @@ -12050,7 +12049,7 @@ def get_my_customer_secret_key(ctx, from_json, my_customer_secret_key_id, author @cli_util.wrap_exceptions def get_my_device(ctx, from_json, my_device_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(my_device_id, six.string_types) and len(my_device_id.strip()) == 0: + if isinstance(my_device_id, str) and len(my_device_id.strip()) == 0: raise click.UsageError('Parameter --my-device-id cannot be whitespace or empty string') kwargs = {} @@ -12083,7 +12082,7 @@ def get_my_device(ctx, from_json, my_device_id, authorization, resource_type_sch @cli_util.wrap_exceptions def get_my_o_auth2_client_credential(ctx, from_json, my_o_auth2_client_credential_id, authorization, resource_type_schema_version): - if isinstance(my_o_auth2_client_credential_id, six.string_types) and len(my_o_auth2_client_credential_id.strip()) == 0: + if isinstance(my_o_auth2_client_credential_id, str) and len(my_o_auth2_client_credential_id.strip()) == 0: raise click.UsageError('Parameter --my-o-auth2-client-credential-id cannot be whitespace or empty string') kwargs = {} @@ -12112,7 +12111,7 @@ def get_my_o_auth2_client_credential(ctx, from_json, my_o_auth2_client_credentia @cli_util.wrap_exceptions def get_my_pending_approval(ctx, from_json, my_pending_approval_id, authorization, resource_type_schema_version): - if isinstance(my_pending_approval_id, six.string_types) and len(my_pending_approval_id.strip()) == 0: + if isinstance(my_pending_approval_id, str) and len(my_pending_approval_id.strip()) == 0: raise click.UsageError('Parameter --my-pending-approval-id cannot be whitespace or empty string') kwargs = {} @@ -12143,7 +12142,7 @@ def get_my_pending_approval(ctx, from_json, my_pending_approval_id, authorizatio @cli_util.wrap_exceptions def get_my_request(ctx, from_json, my_request_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(my_request_id, six.string_types) and len(my_request_id.strip()) == 0: + if isinstance(my_request_id, str) and len(my_request_id.strip()) == 0: raise click.UsageError('Parameter --my-request-id cannot be whitespace or empty string') kwargs = {} @@ -12176,7 +12175,7 @@ def get_my_request(ctx, from_json, my_request_id, authorization, resource_type_s @cli_util.wrap_exceptions def get_my_smtp_credential(ctx, from_json, my_smtp_credential_id, authorization, resource_type_schema_version): - if isinstance(my_smtp_credential_id, six.string_types) and len(my_smtp_credential_id.strip()) == 0: + if isinstance(my_smtp_credential_id, str) and len(my_smtp_credential_id.strip()) == 0: raise click.UsageError('Parameter --my-smtp-credential-id cannot be whitespace or empty string') kwargs = {} @@ -12205,7 +12204,7 @@ def get_my_smtp_credential(ctx, from_json, my_smtp_credential_id, authorization, @cli_util.wrap_exceptions def get_my_support_account(ctx, from_json, my_support_account_id, authorization, resource_type_schema_version): - if isinstance(my_support_account_id, six.string_types) and len(my_support_account_id.strip()) == 0: + if isinstance(my_support_account_id, str) and len(my_support_account_id.strip()) == 0: raise click.UsageError('Parameter --my-support-account-id cannot be whitespace or empty string') kwargs = {} @@ -12236,7 +12235,7 @@ def get_my_support_account(ctx, from_json, my_support_account_id, authorization, @cli_util.wrap_exceptions def get_my_trusted_user_agent(ctx, from_json, my_trusted_user_agent_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(my_trusted_user_agent_id, six.string_types) and len(my_trusted_user_agent_id.strip()) == 0: + if isinstance(my_trusted_user_agent_id, str) and len(my_trusted_user_agent_id.strip()) == 0: raise click.UsageError('Parameter --my-trusted-user-agent-id cannot be whitespace or empty string') kwargs = {} @@ -12269,7 +12268,7 @@ def get_my_trusted_user_agent(ctx, from_json, my_trusted_user_agent_id, authoriz @cli_util.wrap_exceptions def get_my_user_db_credential(ctx, from_json, my_user_db_credential_id, authorization, resource_type_schema_version): - if isinstance(my_user_db_credential_id, six.string_types) and len(my_user_db_credential_id.strip()) == 0: + if isinstance(my_user_db_credential_id, str) and len(my_user_db_credential_id.strip()) == 0: raise click.UsageError('Parameter --my-user-db-credential-id cannot be whitespace or empty string') kwargs = {} @@ -12300,7 +12299,7 @@ def get_my_user_db_credential(ctx, from_json, my_user_db_credential_id, authoriz @cli_util.wrap_exceptions def get_network_perimeter(ctx, from_json, network_perimeter_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(network_perimeter_id, six.string_types) and len(network_perimeter_id.strip()) == 0: + if isinstance(network_perimeter_id, str) and len(network_perimeter_id.strip()) == 0: raise click.UsageError('Parameter --network-perimeter-id cannot be whitespace or empty string') kwargs = {} @@ -12335,7 +12334,7 @@ def get_network_perimeter(ctx, from_json, network_perimeter_id, authorization, r @cli_util.wrap_exceptions def get_notification_setting(ctx, from_json, notification_setting_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(notification_setting_id, six.string_types) and len(notification_setting_id.strip()) == 0: + if isinstance(notification_setting_id, str) and len(notification_setting_id.strip()) == 0: raise click.UsageError('Parameter --notification-setting-id cannot be whitespace or empty string') kwargs = {} @@ -12370,7 +12369,7 @@ def get_notification_setting(ctx, from_json, notification_setting_id, authorizat @cli_util.wrap_exceptions def get_o_auth2_client_credential(ctx, from_json, o_auth2_client_credential_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(o_auth2_client_credential_id, six.string_types) and len(o_auth2_client_credential_id.strip()) == 0: + if isinstance(o_auth2_client_credential_id, str) and len(o_auth2_client_credential_id.strip()) == 0: raise click.UsageError('Parameter --o-auth2-client-credential-id cannot be whitespace or empty string') kwargs = {} @@ -12403,7 +12402,7 @@ def get_o_auth2_client_credential(ctx, from_json, o_auth2_client_credential_id, @cli_util.wrap_exceptions def get_o_auth_client_certificate(ctx, from_json, o_auth_client_certificate_id, authorization, resource_type_schema_version): - if isinstance(o_auth_client_certificate_id, six.string_types) and len(o_auth_client_certificate_id.strip()) == 0: + if isinstance(o_auth_client_certificate_id, str) and len(o_auth_client_certificate_id.strip()) == 0: raise click.UsageError('Parameter --o-auth-client-certificate-id cannot be whitespace or empty string') kwargs = {} @@ -12432,7 +12431,7 @@ def get_o_auth_client_certificate(ctx, from_json, o_auth_client_certificate_id, @cli_util.wrap_exceptions def get_o_auth_partner_certificate(ctx, from_json, o_auth_partner_certificate_id, authorization, resource_type_schema_version): - if isinstance(o_auth_partner_certificate_id, six.string_types) and len(o_auth_partner_certificate_id.strip()) == 0: + if isinstance(o_auth_partner_certificate_id, str) and len(o_auth_partner_certificate_id.strip()) == 0: raise click.UsageError('Parameter --o-auth-partner-certificate-id cannot be whitespace or empty string') kwargs = {} @@ -12463,7 +12462,7 @@ def get_o_auth_partner_certificate(ctx, from_json, o_auth_partner_certificate_id @cli_util.wrap_exceptions def get_oci_console_sign_on_policy_consent(ctx, from_json, oci_console_sign_on_policy_consent_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(oci_console_sign_on_policy_consent_id, six.string_types) and len(oci_console_sign_on_policy_consent_id.strip()) == 0: + if isinstance(oci_console_sign_on_policy_consent_id, str) and len(oci_console_sign_on_policy_consent_id.strip()) == 0: raise click.UsageError('Parameter --oci-console-sign-on-policy-consent-id cannot be whitespace or empty string') kwargs = {} @@ -12498,7 +12497,7 @@ def get_oci_console_sign_on_policy_consent(ctx, from_json, oci_console_sign_on_p @cli_util.wrap_exceptions def get_password_policy(ctx, from_json, password_policy_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(password_policy_id, six.string_types) and len(password_policy_id.strip()) == 0: + if isinstance(password_policy_id, str) and len(password_policy_id.strip()) == 0: raise click.UsageError('Parameter --password-policy-id cannot be whitespace or empty string') kwargs = {} @@ -12533,7 +12532,7 @@ def get_password_policy(ctx, from_json, password_policy_id, authorization, resou @cli_util.wrap_exceptions def get_policy(ctx, from_json, policy_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') kwargs = {} @@ -12568,7 +12567,7 @@ def get_policy(ctx, from_json, policy_id, authorization, resource_type_schema_ve @cli_util.wrap_exceptions def get_rule(ctx, from_json, rule_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(rule_id, six.string_types) and len(rule_id.strip()) == 0: + if isinstance(rule_id, str) and len(rule_id.strip()) == 0: raise click.UsageError('Parameter --rule-id cannot be whitespace or empty string') kwargs = {} @@ -12601,7 +12600,7 @@ def get_rule(ctx, from_json, rule_id, authorization, resource_type_schema_versio @cli_util.wrap_exceptions def get_schema(ctx, from_json, schema_id, authorization, resource_type_schema_version): - if isinstance(schema_id, six.string_types) and len(schema_id.strip()) == 0: + if isinstance(schema_id, str) and len(schema_id.strip()) == 0: raise click.UsageError('Parameter --schema-id cannot be whitespace or empty string') kwargs = {} @@ -12632,7 +12631,7 @@ def get_schema(ctx, from_json, schema_id, authorization, resource_type_schema_ve @cli_util.wrap_exceptions def get_security_question(ctx, from_json, security_question_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(security_question_id, six.string_types) and len(security_question_id.strip()) == 0: + if isinstance(security_question_id, str) and len(security_question_id.strip()) == 0: raise click.UsageError('Parameter --security-question-id cannot be whitespace or empty string') kwargs = {} @@ -12667,7 +12666,7 @@ def get_security_question(ctx, from_json, security_question_id, authorization, r @cli_util.wrap_exceptions def get_security_question_setting(ctx, from_json, security_question_setting_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(security_question_setting_id, six.string_types) and len(security_question_setting_id.strip()) == 0: + if isinstance(security_question_setting_id, str) and len(security_question_setting_id.strip()) == 0: raise click.UsageError('Parameter --security-question-setting-id cannot be whitespace or empty string') kwargs = {} @@ -12702,7 +12701,7 @@ def get_security_question_setting(ctx, from_json, security_question_setting_id, @cli_util.wrap_exceptions def get_self_registration_profile(ctx, from_json, self_registration_profile_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(self_registration_profile_id, six.string_types) and len(self_registration_profile_id.strip()) == 0: + if isinstance(self_registration_profile_id, str) and len(self_registration_profile_id.strip()) == 0: raise click.UsageError('Parameter --self-registration-profile-id cannot be whitespace or empty string') kwargs = {} @@ -12737,7 +12736,7 @@ def get_self_registration_profile(ctx, from_json, self_registration_profile_id, @cli_util.wrap_exceptions def get_setting(ctx, from_json, setting_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(setting_id, six.string_types) and len(setting_id.strip()) == 0: + if isinstance(setting_id, str) and len(setting_id.strip()) == 0: raise click.UsageError('Parameter --setting-id cannot be whitespace or empty string') kwargs = {} @@ -12772,7 +12771,7 @@ def get_setting(ctx, from_json, setting_id, authorization, resource_type_schema_ @cli_util.wrap_exceptions def get_smtp_credential(ctx, from_json, smtp_credential_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(smtp_credential_id, six.string_types) and len(smtp_credential_id.strip()) == 0: + if isinstance(smtp_credential_id, str) and len(smtp_credential_id.strip()) == 0: raise click.UsageError('Parameter --smtp-credential-id cannot be whitespace or empty string') kwargs = {} @@ -12805,7 +12804,7 @@ def get_smtp_credential(ctx, from_json, smtp_credential_id, authorization, resou @cli_util.wrap_exceptions def get_social_identity_provider(ctx, from_json, social_identity_provider_id, authorization, resource_type_schema_version): - if isinstance(social_identity_provider_id, six.string_types) and len(social_identity_provider_id.strip()) == 0: + if isinstance(social_identity_provider_id, str) and len(social_identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --social-identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -12836,7 +12835,7 @@ def get_social_identity_provider(ctx, from_json, social_identity_provider_id, au @cli_util.wrap_exceptions def get_user(ctx, from_json, user_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -12871,7 +12870,7 @@ def get_user(ctx, from_json, user_id, authorization, resource_type_schema_versio @cli_util.wrap_exceptions def get_user_attributes_setting(ctx, from_json, user_attributes_setting_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(user_attributes_setting_id, six.string_types) and len(user_attributes_setting_id.strip()) == 0: + if isinstance(user_attributes_setting_id, str) and len(user_attributes_setting_id.strip()) == 0: raise click.UsageError('Parameter --user-attributes-setting-id cannot be whitespace or empty string') kwargs = {} @@ -12906,7 +12905,7 @@ def get_user_attributes_setting(ctx, from_json, user_attributes_setting_id, auth @cli_util.wrap_exceptions def get_user_db_credential(ctx, from_json, user_db_credential_id, authorization, resource_type_schema_version, attributes, attribute_sets): - if isinstance(user_db_credential_id, six.string_types) and len(user_db_credential_id.strip()) == 0: + if isinstance(user_db_credential_id, str) and len(user_db_credential_id.strip()) == 0: raise click.UsageError('Parameter --user-db-credential-id cannot be whitespace or empty string') kwargs = {} @@ -17108,7 +17107,7 @@ def list_users(ctx, from_json, all_pages, page_size, filter, sort_by, sort_order @cli_util.wrap_exceptions def patch_account_recovery_setting(ctx, from_json, account_recovery_setting_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(account_recovery_setting_id, six.string_types) and len(account_recovery_setting_id.strip()) == 0: + if isinstance(account_recovery_setting_id, str) and len(account_recovery_setting_id.strip()) == 0: raise click.UsageError('Parameter --account-recovery-setting-id cannot be whitespace or empty string') kwargs = {} @@ -17154,7 +17153,7 @@ def patch_account_recovery_setting(ctx, from_json, account_recovery_setting_id, @cli_util.wrap_exceptions def patch_api_key(ctx, from_json, api_key_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(api_key_id, six.string_types) and len(api_key_id.strip()) == 0: + if isinstance(api_key_id, str) and len(api_key_id.strip()) == 0: raise click.UsageError('Parameter --api-key-id cannot be whitespace or empty string') kwargs = {} @@ -17200,7 +17199,7 @@ def patch_api_key(ctx, from_json, api_key_id, schemas, operations, authorization @cli_util.wrap_exceptions def patch_app(ctx, from_json, app_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(app_id, six.string_types) and len(app_id.strip()) == 0: + if isinstance(app_id, str) and len(app_id.strip()) == 0: raise click.UsageError('Parameter --app-id cannot be whitespace or empty string') kwargs = {} @@ -17246,7 +17245,7 @@ def patch_app(ctx, from_json, app_id, schemas, operations, authorization, resour @cli_util.wrap_exceptions def patch_app_role(ctx, from_json, app_role_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(app_role_id, six.string_types) and len(app_role_id.strip()) == 0: + if isinstance(app_role_id, str) and len(app_role_id.strip()) == 0: raise click.UsageError('Parameter --app-role-id cannot be whitespace or empty string') kwargs = {} @@ -17292,7 +17291,7 @@ def patch_app_role(ctx, from_json, app_role_id, schemas, operations, authorizati @cli_util.wrap_exceptions def patch_approval_workflow(ctx, from_json, approval_workflow_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(approval_workflow_id, six.string_types) and len(approval_workflow_id.strip()) == 0: + if isinstance(approval_workflow_id, str) and len(approval_workflow_id.strip()) == 0: raise click.UsageError('Parameter --approval-workflow-id cannot be whitespace or empty string') kwargs = {} @@ -17338,7 +17337,7 @@ def patch_approval_workflow(ctx, from_json, approval_workflow_id, schemas, opera @cli_util.wrap_exceptions def patch_approval_workflow_step(ctx, from_json, approval_workflow_step_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(approval_workflow_step_id, six.string_types) and len(approval_workflow_step_id.strip()) == 0: + if isinstance(approval_workflow_step_id, str) and len(approval_workflow_step_id.strip()) == 0: raise click.UsageError('Parameter --approval-workflow-step-id cannot be whitespace or empty string') kwargs = {} @@ -17384,7 +17383,7 @@ def patch_approval_workflow_step(ctx, from_json, approval_workflow_step_id, sche @cli_util.wrap_exceptions def patch_auth_token(ctx, from_json, auth_token_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(auth_token_id, six.string_types) and len(auth_token_id.strip()) == 0: + if isinstance(auth_token_id, str) and len(auth_token_id.strip()) == 0: raise click.UsageError('Parameter --auth-token-id cannot be whitespace or empty string') kwargs = {} @@ -17430,7 +17429,7 @@ def patch_auth_token(ctx, from_json, auth_token_id, schemas, operations, authori @cli_util.wrap_exceptions def patch_cloud_gate(ctx, from_json, cloud_gate_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(cloud_gate_id, six.string_types) and len(cloud_gate_id.strip()) == 0: + if isinstance(cloud_gate_id, str) and len(cloud_gate_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-id cannot be whitespace or empty string') kwargs = {} @@ -17476,7 +17475,7 @@ def patch_cloud_gate(ctx, from_json, cloud_gate_id, schemas, operations, authori @cli_util.wrap_exceptions def patch_cloud_gate_mapping(ctx, from_json, cloud_gate_mapping_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(cloud_gate_mapping_id, six.string_types) and len(cloud_gate_mapping_id.strip()) == 0: + if isinstance(cloud_gate_mapping_id, str) and len(cloud_gate_mapping_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-mapping-id cannot be whitespace or empty string') kwargs = {} @@ -17522,7 +17521,7 @@ def patch_cloud_gate_mapping(ctx, from_json, cloud_gate_mapping_id, schemas, ope @cli_util.wrap_exceptions def patch_cloud_gate_server(ctx, from_json, cloud_gate_server_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(cloud_gate_server_id, six.string_types) and len(cloud_gate_server_id.strip()) == 0: + if isinstance(cloud_gate_server_id, str) and len(cloud_gate_server_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-server-id cannot be whitespace or empty string') kwargs = {} @@ -17568,7 +17567,7 @@ def patch_cloud_gate_server(ctx, from_json, cloud_gate_server_id, schemas, opera @cli_util.wrap_exceptions def patch_condition(ctx, from_json, condition_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(condition_id, six.string_types) and len(condition_id.strip()) == 0: + if isinstance(condition_id, str) and len(condition_id.strip()) == 0: raise click.UsageError('Parameter --condition-id cannot be whitespace or empty string') kwargs = {} @@ -17614,7 +17613,7 @@ def patch_condition(ctx, from_json, condition_id, schemas, operations, authoriza @cli_util.wrap_exceptions def patch_customer_secret_key(ctx, from_json, customer_secret_key_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(customer_secret_key_id, six.string_types) and len(customer_secret_key_id.strip()) == 0: + if isinstance(customer_secret_key_id, str) and len(customer_secret_key_id.strip()) == 0: raise click.UsageError('Parameter --customer-secret-key-id cannot be whitespace or empty string') kwargs = {} @@ -17660,7 +17659,7 @@ def patch_customer_secret_key(ctx, from_json, customer_secret_key_id, schemas, o @cli_util.wrap_exceptions def patch_dynamic_resource_group(ctx, from_json, dynamic_resource_group_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(dynamic_resource_group_id, six.string_types) and len(dynamic_resource_group_id.strip()) == 0: + if isinstance(dynamic_resource_group_id, str) and len(dynamic_resource_group_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-resource-group-id cannot be whitespace or empty string') kwargs = {} @@ -17706,7 +17705,7 @@ def patch_dynamic_resource_group(ctx, from_json, dynamic_resource_group_id, sche @cli_util.wrap_exceptions def patch_grant(ctx, from_json, grant_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(grant_id, six.string_types) and len(grant_id.strip()) == 0: + if isinstance(grant_id, str) and len(grant_id.strip()) == 0: raise click.UsageError('Parameter --grant-id cannot be whitespace or empty string') kwargs = {} @@ -17752,7 +17751,7 @@ def patch_grant(ctx, from_json, grant_id, schemas, operations, authorization, re @cli_util.wrap_exceptions def patch_group(ctx, from_json, group_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(group_id, six.string_types) and len(group_id.strip()) == 0: + if isinstance(group_id, str) and len(group_id.strip()) == 0: raise click.UsageError('Parameter --group-id cannot be whitespace or empty string') kwargs = {} @@ -17798,7 +17797,7 @@ def patch_group(ctx, from_json, group_id, schemas, operations, authorization, re @cli_util.wrap_exceptions def patch_identity_proofing_provider(ctx, from_json, identity_proofing_provider_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(identity_proofing_provider_id, six.string_types) and len(identity_proofing_provider_id.strip()) == 0: + if isinstance(identity_proofing_provider_id, str) and len(identity_proofing_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-proofing-provider-id cannot be whitespace or empty string') kwargs = {} @@ -17844,7 +17843,7 @@ def patch_identity_proofing_provider(ctx, from_json, identity_proofing_provider_ @cli_util.wrap_exceptions def patch_identity_proofing_provider_template(ctx, from_json, identity_proofing_provider_template_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(identity_proofing_provider_template_id, six.string_types) and len(identity_proofing_provider_template_id.strip()) == 0: + if isinstance(identity_proofing_provider_template_id, str) and len(identity_proofing_provider_template_id.strip()) == 0: raise click.UsageError('Parameter --identity-proofing-provider-template-id cannot be whitespace or empty string') kwargs = {} @@ -17890,7 +17889,7 @@ def patch_identity_proofing_provider_template(ctx, from_json, identity_proofing_ @cli_util.wrap_exceptions def patch_identity_propagation_trust(ctx, from_json, identity_propagation_trust_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(identity_propagation_trust_id, six.string_types) and len(identity_propagation_trust_id.strip()) == 0: + if isinstance(identity_propagation_trust_id, str) and len(identity_propagation_trust_id.strip()) == 0: raise click.UsageError('Parameter --identity-propagation-trust-id cannot be whitespace or empty string') kwargs = {} @@ -17936,7 +17935,7 @@ def patch_identity_propagation_trust(ctx, from_json, identity_propagation_trust_ @cli_util.wrap_exceptions def patch_identity_provider(ctx, from_json, identity_provider_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -17982,7 +17981,7 @@ def patch_identity_provider(ctx, from_json, identity_provider_id, schemas, opera @cli_util.wrap_exceptions def patch_identity_setting(ctx, from_json, identity_setting_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(identity_setting_id, six.string_types) and len(identity_setting_id.strip()) == 0: + if isinstance(identity_setting_id, str) and len(identity_setting_id.strip()) == 0: raise click.UsageError('Parameter --identity-setting-id cannot be whitespace or empty string') kwargs = {} @@ -18028,7 +18027,7 @@ def patch_identity_setting(ctx, from_json, identity_setting_id, schemas, operati @cli_util.wrap_exceptions def patch_kmsi_setting(ctx, from_json, kmsi_setting_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(kmsi_setting_id, six.string_types) and len(kmsi_setting_id.strip()) == 0: + if isinstance(kmsi_setting_id, str) and len(kmsi_setting_id.strip()) == 0: raise click.UsageError('Parameter --kmsi-setting-id cannot be whitespace or empty string') kwargs = {} @@ -18074,7 +18073,7 @@ def patch_kmsi_setting(ctx, from_json, kmsi_setting_id, schemas, operations, aut @cli_util.wrap_exceptions def patch_mapped_attribute(ctx, from_json, mapped_attribute_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(mapped_attribute_id, six.string_types) and len(mapped_attribute_id.strip()) == 0: + if isinstance(mapped_attribute_id, str) and len(mapped_attribute_id.strip()) == 0: raise click.UsageError('Parameter --mapped-attribute-id cannot be whitespace or empty string') kwargs = {} @@ -18159,7 +18158,7 @@ def patch_me(ctx, from_json, schemas, operations, authorization, resource_type_s @cli_util.wrap_exceptions def patch_my_api_key(ctx, from_json, my_api_key_id, schemas, operations, authorization, resource_type_schema_version, if_match): - if isinstance(my_api_key_id, six.string_types) and len(my_api_key_id.strip()) == 0: + if isinstance(my_api_key_id, str) and len(my_api_key_id.strip()) == 0: raise click.UsageError('Parameter --my-api-key-id cannot be whitespace or empty string') kwargs = {} @@ -18199,7 +18198,7 @@ def patch_my_api_key(ctx, from_json, my_api_key_id, schemas, operations, authori @cli_util.wrap_exceptions def patch_my_auth_token(ctx, from_json, my_auth_token_id, schemas, operations, authorization, resource_type_schema_version, if_match): - if isinstance(my_auth_token_id, six.string_types) and len(my_auth_token_id.strip()) == 0: + if isinstance(my_auth_token_id, str) and len(my_auth_token_id.strip()) == 0: raise click.UsageError('Parameter --my-auth-token-id cannot be whitespace or empty string') kwargs = {} @@ -18239,7 +18238,7 @@ def patch_my_auth_token(ctx, from_json, my_auth_token_id, schemas, operations, a @cli_util.wrap_exceptions def patch_my_customer_secret_key(ctx, from_json, my_customer_secret_key_id, schemas, operations, authorization, resource_type_schema_version, if_match): - if isinstance(my_customer_secret_key_id, six.string_types) and len(my_customer_secret_key_id.strip()) == 0: + if isinstance(my_customer_secret_key_id, str) and len(my_customer_secret_key_id.strip()) == 0: raise click.UsageError('Parameter --my-customer-secret-key-id cannot be whitespace or empty string') kwargs = {} @@ -18281,7 +18280,7 @@ def patch_my_customer_secret_key(ctx, from_json, my_customer_secret_key_id, sche @cli_util.wrap_exceptions def patch_my_device(ctx, from_json, my_device_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(my_device_id, six.string_types) and len(my_device_id.strip()) == 0: + if isinstance(my_device_id, str) and len(my_device_id.strip()) == 0: raise click.UsageError('Parameter --my-device-id cannot be whitespace or empty string') kwargs = {} @@ -18325,7 +18324,7 @@ def patch_my_device(ctx, from_json, my_device_id, schemas, operations, authoriza @cli_util.wrap_exceptions def patch_my_o_auth2_client_credential(ctx, from_json, my_o_auth2_client_credential_id, schemas, operations, authorization, resource_type_schema_version, if_match): - if isinstance(my_o_auth2_client_credential_id, six.string_types) and len(my_o_auth2_client_credential_id.strip()) == 0: + if isinstance(my_o_auth2_client_credential_id, str) and len(my_o_auth2_client_credential_id.strip()) == 0: raise click.UsageError('Parameter --my-o-auth2-client-credential-id cannot be whitespace or empty string') kwargs = {} @@ -18365,7 +18364,7 @@ def patch_my_o_auth2_client_credential(ctx, from_json, my_o_auth2_client_credent @cli_util.wrap_exceptions def patch_my_pending_approval(ctx, from_json, my_pending_approval_id, schemas, operations, authorization, resource_type_schema_version, if_match): - if isinstance(my_pending_approval_id, six.string_types) and len(my_pending_approval_id.strip()) == 0: + if isinstance(my_pending_approval_id, str) and len(my_pending_approval_id.strip()) == 0: raise click.UsageError('Parameter --my-pending-approval-id cannot be whitespace or empty string') kwargs = {} @@ -18407,7 +18406,7 @@ def patch_my_pending_approval(ctx, from_json, my_pending_approval_id, schemas, o @cli_util.wrap_exceptions def patch_my_request(ctx, from_json, my_request_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(my_request_id, six.string_types) and len(my_request_id.strip()) == 0: + if isinstance(my_request_id, str) and len(my_request_id.strip()) == 0: raise click.UsageError('Parameter --my-request-id cannot be whitespace or empty string') kwargs = {} @@ -18451,7 +18450,7 @@ def patch_my_request(ctx, from_json, my_request_id, schemas, operations, authori @cli_util.wrap_exceptions def patch_my_smtp_credential(ctx, from_json, my_smtp_credential_id, schemas, operations, authorization, resource_type_schema_version, if_match): - if isinstance(my_smtp_credential_id, six.string_types) and len(my_smtp_credential_id.strip()) == 0: + if isinstance(my_smtp_credential_id, str) and len(my_smtp_credential_id.strip()) == 0: raise click.UsageError('Parameter --my-smtp-credential-id cannot be whitespace or empty string') kwargs = {} @@ -18493,7 +18492,7 @@ def patch_my_smtp_credential(ctx, from_json, my_smtp_credential_id, schemas, ope @cli_util.wrap_exceptions def patch_network_perimeter(ctx, from_json, network_perimeter_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(network_perimeter_id, six.string_types) and len(network_perimeter_id.strip()) == 0: + if isinstance(network_perimeter_id, str) and len(network_perimeter_id.strip()) == 0: raise click.UsageError('Parameter --network-perimeter-id cannot be whitespace or empty string') kwargs = {} @@ -18539,7 +18538,7 @@ def patch_network_perimeter(ctx, from_json, network_perimeter_id, schemas, opera @cli_util.wrap_exceptions def patch_o_auth2_client_credential(ctx, from_json, o_auth2_client_credential_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(o_auth2_client_credential_id, six.string_types) and len(o_auth2_client_credential_id.strip()) == 0: + if isinstance(o_auth2_client_credential_id, str) and len(o_auth2_client_credential_id.strip()) == 0: raise click.UsageError('Parameter --o-auth2-client-credential-id cannot be whitespace or empty string') kwargs = {} @@ -18585,7 +18584,7 @@ def patch_o_auth2_client_credential(ctx, from_json, o_auth2_client_credential_id @cli_util.wrap_exceptions def patch_password_policy(ctx, from_json, password_policy_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(password_policy_id, six.string_types) and len(password_policy_id.strip()) == 0: + if isinstance(password_policy_id, str) and len(password_policy_id.strip()) == 0: raise click.UsageError('Parameter --password-policy-id cannot be whitespace or empty string') kwargs = {} @@ -18631,7 +18630,7 @@ def patch_password_policy(ctx, from_json, password_policy_id, schemas, operation @cli_util.wrap_exceptions def patch_policy(ctx, from_json, policy_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') kwargs = {} @@ -18677,7 +18676,7 @@ def patch_policy(ctx, from_json, policy_id, schemas, operations, authorization, @cli_util.wrap_exceptions def patch_rule(ctx, from_json, rule_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(rule_id, six.string_types) and len(rule_id.strip()) == 0: + if isinstance(rule_id, str) and len(rule_id.strip()) == 0: raise click.UsageError('Parameter --rule-id cannot be whitespace or empty string') kwargs = {} @@ -18721,7 +18720,7 @@ def patch_rule(ctx, from_json, rule_id, schemas, operations, authorization, reso @cli_util.wrap_exceptions def patch_schema(ctx, from_json, schema_id, schemas, operations, authorization, resource_type_schema_version, if_match): - if isinstance(schema_id, six.string_types) and len(schema_id.strip()) == 0: + if isinstance(schema_id, str) and len(schema_id.strip()) == 0: raise click.UsageError('Parameter --schema-id cannot be whitespace or empty string') kwargs = {} @@ -18763,7 +18762,7 @@ def patch_schema(ctx, from_json, schema_id, schemas, operations, authorization, @cli_util.wrap_exceptions def patch_security_question(ctx, from_json, security_question_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(security_question_id, six.string_types) and len(security_question_id.strip()) == 0: + if isinstance(security_question_id, str) and len(security_question_id.strip()) == 0: raise click.UsageError('Parameter --security-question-id cannot be whitespace or empty string') kwargs = {} @@ -18809,7 +18808,7 @@ def patch_security_question(ctx, from_json, security_question_id, schemas, opera @cli_util.wrap_exceptions def patch_security_question_setting(ctx, from_json, security_question_setting_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(security_question_setting_id, six.string_types) and len(security_question_setting_id.strip()) == 0: + if isinstance(security_question_setting_id, str) and len(security_question_setting_id.strip()) == 0: raise click.UsageError('Parameter --security-question-setting-id cannot be whitespace or empty string') kwargs = {} @@ -18855,7 +18854,7 @@ def patch_security_question_setting(ctx, from_json, security_question_setting_id @cli_util.wrap_exceptions def patch_self_registration_profile(ctx, from_json, self_registration_profile_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(self_registration_profile_id, six.string_types) and len(self_registration_profile_id.strip()) == 0: + if isinstance(self_registration_profile_id, str) and len(self_registration_profile_id.strip()) == 0: raise click.UsageError('Parameter --self-registration-profile-id cannot be whitespace or empty string') kwargs = {} @@ -18901,7 +18900,7 @@ def patch_self_registration_profile(ctx, from_json, self_registration_profile_id @cli_util.wrap_exceptions def patch_setting(ctx, from_json, setting_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(setting_id, six.string_types) and len(setting_id.strip()) == 0: + if isinstance(setting_id, str) and len(setting_id.strip()) == 0: raise click.UsageError('Parameter --setting-id cannot be whitespace or empty string') kwargs = {} @@ -18947,7 +18946,7 @@ def patch_setting(ctx, from_json, setting_id, schemas, operations, authorization @cli_util.wrap_exceptions def patch_smtp_credential(ctx, from_json, smtp_credential_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(smtp_credential_id, six.string_types) and len(smtp_credential_id.strip()) == 0: + if isinstance(smtp_credential_id, str) and len(smtp_credential_id.strip()) == 0: raise click.UsageError('Parameter --smtp-credential-id cannot be whitespace or empty string') kwargs = {} @@ -18991,7 +18990,7 @@ def patch_smtp_credential(ctx, from_json, smtp_credential_id, schemas, operation @cli_util.wrap_exceptions def patch_social_identity_provider(ctx, from_json, social_identity_provider_id, schemas, operations, authorization, resource_type_schema_version, if_match): - if isinstance(social_identity_provider_id, six.string_types) and len(social_identity_provider_id.strip()) == 0: + if isinstance(social_identity_provider_id, str) and len(social_identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --social-identity-provider-id cannot be whitespace or empty string') kwargs = {} @@ -19033,7 +19032,7 @@ def patch_social_identity_provider(ctx, from_json, social_identity_provider_id, @cli_util.wrap_exceptions def patch_user(ctx, from_json, user_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') kwargs = {} @@ -19079,7 +19078,7 @@ def patch_user(ctx, from_json, user_id, schemas, operations, authorization, reso @cli_util.wrap_exceptions def patch_user_attributes_setting(ctx, from_json, user_attributes_setting_id, schemas, operations, authorization, resource_type_schema_version, attributes, attribute_sets, if_match): - if isinstance(user_attributes_setting_id, six.string_types) and len(user_attributes_setting_id.strip()) == 0: + if isinstance(user_attributes_setting_id, str) and len(user_attributes_setting_id.strip()) == 0: raise click.UsageError('Parameter --user-attributes-setting-id cannot be whitespace or empty string') kwargs = {} @@ -19171,7 +19170,7 @@ def patch_user_attributes_setting(ctx, from_json, user_attributes_setting_id, sc @cli_util.wrap_exceptions def put_account_recovery_setting(ctx, from_json, force, account_recovery_setting_id, schemas, factors, max_incorrect_attempts, lockout_duration, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, if_match): - if isinstance(account_recovery_setting_id, six.string_types) and len(account_recovery_setting_id.strip()) == 0: + if isinstance(account_recovery_setting_id, str) and len(account_recovery_setting_id.strip()) == 0: raise click.UsageError('Parameter --account-recovery-setting-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or factors: @@ -19656,7 +19655,7 @@ def put_account_recovery_setting(ctx, from_json, force, account_recovery_setting @cli_util.wrap_exceptions def put_app(ctx, from_json, force, app_id, schemas, display_name, based_on_template, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, meter_as_opc_service, name, client_secret, hashed_client_secret, description, id_token_enc_algo, delegated_service_names, active, app_icon, app_thumbnail, migrated, infrastructure, is_login_target, show_in_my_apps, login_mechanism, landing_page_url, product_logo_url, privacy_policy_url, terms_of_service_url, contact_email_address, product_name, home_page_url, is_form_fill, is_o_auth_client, is_radius_app, client_type, redirect_uris, all_url_schemes_allowed, logout_uri, post_logout_redirect_uris, allowed_grants, allowed_operations, client_ip_checking, is_opc_service, is_unmanaged_app, allow_access_control, is_o_auth_resource, access_token_expiry, refresh_token_expiry, allow_offline, callback_service_url, audience, is_mobile_target, login_page_url, linking_callback_url, logout_page_url, error_page_url, is_saml_service_provider, is_web_tier_policy, is_kerberos_realm, icon, is_alias_app, is_managed_app, service_type_urn, service_type_version, is_obligation_capable, ready_to_upgrade, trust_scope, is_database_service, secondary_audiences, is_enterprise_app, bypass_consent, disable_kmsi_token_authentication, is_multicloud_service_app, radius_policy, apps_network_perimeters, cloud_control_properties, editable_attributes, terms_of_use, protectable_secondary_audiences, idp_policy, allowed_tags, app_signon_policy, trust_policies, signon_policy, identity_providers, accounts, grants, service_params, attr_rendering_metadata, granted_app_roles, saml_service_provider, allowed_scopes, certificates, alias_apps, as_opc_service, admin_roles, user_roles, scopes, urnietfparamsscimschemasoracleidcsextensionradius_app_app, urnietfparamsscimschemasoracleidcsextensionsaml_service_provider_app, urnietfparamsscimschemasoracleidcsextensionweb_tier_policy_app, urnietfparamsscimschemasoracleidcsextensionmanagedapp_app, urnietfparamsscimschemasoracleidcsextensionform_fill_app_template_app_template, urnietfparamsscimschemasoracleidcsextensionopc_service_app, urnietfparamsscimschemasoracleidcsextensionkerberos_realm_app, urnietfparamsscimschemasoracleidcsextensionrequestable_app, urnietfparamsscimschemasoracleidcsextensionform_fill_app_app, urnietfparamsscimschemasoracleidcsextensiondbcs_app, urnietfparamsscimschemasoracleidcsextensionenterprise_app_app, urnietfparamsscimschemasoracleidcsextension_oci_tags, urnietfparamsscimschemasoracleidcsextensionmulticloud_service_app_app, if_match): - if isinstance(app_id, six.string_types) and len(app_id.strip()) == 0: + if isinstance(app_id, str) and len(app_id.strip()) == 0: raise click.UsageError('Parameter --app-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or delegated_service_names or redirect_uris or post_logout_redirect_uris or allowed_grants or allowed_operations or secondary_audiences or radius_policy or apps_network_perimeters or cloud_control_properties or editable_attributes or terms_of_use or protectable_secondary_audiences or idp_policy or allowed_tags or app_signon_policy or trust_policies or signon_policy or identity_providers or accounts or grants or service_params or attr_rendering_metadata or based_on_template or granted_app_roles or saml_service_provider or allowed_scopes or certificates or alias_apps or as_opc_service or admin_roles or user_roles or scopes or urnietfparamsscimschemasoracleidcsextensionradius_app_app or urnietfparamsscimschemasoracleidcsextensionsaml_service_provider_app or urnietfparamsscimschemasoracleidcsextensionweb_tier_policy_app or urnietfparamsscimschemasoracleidcsextensionmanagedapp_app or urnietfparamsscimschemasoracleidcsextensionform_fill_app_template_app_template or urnietfparamsscimschemasoracleidcsextensionopc_service_app or urnietfparamsscimschemasoracleidcsextensionkerberos_realm_app or urnietfparamsscimschemasoracleidcsextensionrequestable_app or urnietfparamsscimschemasoracleidcsextensionform_fill_app_app or urnietfparamsscimschemasoracleidcsextensiondbcs_app or urnietfparamsscimschemasoracleidcsextensionenterprise_app_app or urnietfparamsscimschemasoracleidcsextension_oci_tags or urnietfparamsscimschemasoracleidcsextensionmulticloud_service_app_app: @@ -20086,7 +20085,7 @@ def put_app(ctx, from_json, force, app_id, schemas, display_name, based_on_templ @cli_util.wrap_exceptions def put_app_status_changer(ctx, from_json, force, app_status_changer_id, schemas, active, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, if_match): - if isinstance(app_status_changer_id, six.string_types) and len(app_status_changer_id.strip()) == 0: + if isinstance(app_status_changer_id, str) and len(app_status_changer_id.strip()) == 0: raise click.UsageError('Parameter --app-status-changer-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags: @@ -20218,7 +20217,7 @@ def put_app_status_changer(ctx, from_json, force, app_status_changer_id, schemas @cli_util.wrap_exceptions def put_approval_workflow(ctx, from_json, force, approval_workflow_id, schemas, name, max_duration, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, description, approval_workflow_steps, if_match): - if isinstance(approval_workflow_id, six.string_types) and len(approval_workflow_id.strip()) == 0: + if isinstance(approval_workflow_id, str) and len(approval_workflow_id.strip()) == 0: raise click.UsageError('Parameter --approval-workflow-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or max_duration or approval_workflow_steps: @@ -20418,7 +20417,7 @@ def put_approval_workflow(ctx, from_json, force, approval_workflow_id, schemas, @cli_util.wrap_exceptions def put_authentication_factor_setting(ctx, from_json, force, authentication_factor_setting_id, schemas, sms_enabled, totp_enabled, push_enabled, bypass_code_enabled, security_questions_enabled, mfa_enrollment_type, notification_settings, bypass_code_settings, client_app_settings, endpoint_restrictions, compliance_policy, totp_settings, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, email_enabled, phone_call_enabled, fido_authenticator_enabled, yubico_otp_enabled, mfa_enabled_category, hide_backup_factor_enabled, auto_enroll_email_factor_disabled, user_enrollment_disabled_factors, email_settings, third_party_factor, identity_store_settings, urnietfparamsscimschemasoracleidcsextensionthird_party_authentication_factor_settings, urnietfparamsscimschemasoracleidcsextensionfido_authentication_factor_settings, if_match): - if isinstance(authentication_factor_setting_id, six.string_types) and len(authentication_factor_setting_id.strip()) == 0: + if isinstance(authentication_factor_setting_id, str) and len(authentication_factor_setting_id.strip()) == 0: raise click.UsageError('Parameter --authentication-factor-setting-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or user_enrollment_disabled_factors or email_settings or third_party_factor or notification_settings or identity_store_settings or bypass_code_settings or client_app_settings or endpoint_restrictions or compliance_policy or totp_settings or urnietfparamsscimschemasoracleidcsextensionthird_party_authentication_factor_settings or urnietfparamsscimschemasoracleidcsextensionfido_authentication_factor_settings: @@ -20641,7 +20640,7 @@ def put_authentication_factor_setting(ctx, from_json, force, authentication_fact @cli_util.wrap_exceptions def put_cloud_gate(ctx, from_json, force, cloud_gate_id, schemas, display_name, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, is_opc_service, last_modified_time, description, active, type, upstream_server_groups, upstream_servers, oauth_client, servers, mappings, if_match): - if isinstance(cloud_gate_id, six.string_types) and len(cloud_gate_id.strip()) == 0: + if isinstance(cloud_gate_id, str) and len(cloud_gate_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or upstream_server_groups or upstream_servers or oauth_client or servers or mappings: @@ -20815,7 +20814,7 @@ def put_cloud_gate(ctx, from_json, force, cloud_gate_id, schemas, display_name, @cli_util.wrap_exceptions def put_cloud_gate_mapping(ctx, from_json, force, cloud_gate_mapping_id, schemas, resource_prefix, policy_name, server, gateway_app, cloud_gate, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, is_opc_service, description, proxy_pass, nginx_settings, upstream_server_group, if_match): - if isinstance(cloud_gate_mapping_id, six.string_types) and len(cloud_gate_mapping_id.strip()) == 0: + if isinstance(cloud_gate_mapping_id, str) and len(cloud_gate_mapping_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-mapping-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or upstream_server_group or server or gateway_app or cloud_gate: @@ -20978,7 +20977,7 @@ def put_cloud_gate_mapping(ctx, from_json, force, cloud_gate_mapping_id, schemas @cli_util.wrap_exceptions def put_cloud_gate_server(ctx, from_json, force, cloud_gate_server_id, schemas, display_name, host_name, port, ssl, cloud_gate, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, is_opc_service, description, nginx_settings, if_match): - if isinstance(cloud_gate_server_id, six.string_types) and len(cloud_gate_server_id.strip()) == 0: + if isinstance(cloud_gate_server_id, str) and len(cloud_gate_server_id.strip()) == 0: raise click.UsageError('Parameter --cloud-gate-server-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or cloud_gate: @@ -21133,7 +21132,7 @@ def put_cloud_gate_server(ctx, from_json, force, cloud_gate_server_id, schemas, @cli_util.wrap_exceptions def put_condition(ctx, from_json, force, condition_id, schemas, name, attribute_name, operator, attribute_value, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, description, evaluate_condition_if, urnietfparamsscimschemasoracleidcsextensionociconsolesignonpolicyconsent_policy, if_match): - if isinstance(condition_id, six.string_types) and len(condition_id.strip()) == 0: + if isinstance(condition_id, str) and len(condition_id.strip()) == 0: raise click.UsageError('Parameter --condition-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or urnietfparamsscimschemasoracleidcsextensionociconsolesignonpolicyconsent_policy: @@ -21288,7 +21287,7 @@ def put_condition(ctx, from_json, force, condition_id, schemas, name, attribute_ @cli_util.wrap_exceptions def put_dynamic_resource_group(ctx, from_json, force, dynamic_resource_group_id, schemas, matching_rule, display_name, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, description, grants, dynamic_group_app_roles, urnietfparamsscimschemasoracleidcsextension_oci_tags, if_match): - if isinstance(dynamic_resource_group_id, six.string_types) and len(dynamic_resource_group_id.strip()) == 0: + if isinstance(dynamic_resource_group_id, str) and len(dynamic_resource_group_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-resource-group-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or grants or dynamic_group_app_roles or urnietfparamsscimschemasoracleidcsextension_oci_tags: @@ -21443,7 +21442,7 @@ def put_dynamic_resource_group(ctx, from_json, force, dynamic_resource_group_id, @cli_util.wrap_exceptions def put_group(ctx, from_json, force, group_id, schemas, display_name, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, non_unique_display_name, members, urnietfparamsscimschemasoracleidcsextensiongroup_group, urnietfparamsscimschemasoracleidcsextensionposix_group, urnietfparamsscimschemasoracleidcsextensionrequestable_group, urnietfparamsscimschemasoracleidcsextensiondbcs_group, urnietfparamsscimschemasoracleidcsextensiondynamic_group, urnietfparamsscimschemasoracleidcsextension_oci_tags, if_match): - if isinstance(group_id, six.string_types) and len(group_id.strip()) == 0: + if isinstance(group_id, str) and len(group_id.strip()) == 0: raise click.UsageError('Parameter --group-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or members or urnietfparamsscimschemasoracleidcsextensiongroup_group or urnietfparamsscimschemasoracleidcsextensionposix_group or urnietfparamsscimschemasoracleidcsextensionrequestable_group or urnietfparamsscimschemasoracleidcsextensiondbcs_group or urnietfparamsscimschemasoracleidcsextensiondynamic_group or urnietfparamsscimschemasoracleidcsextension_oci_tags: @@ -21622,7 +21621,7 @@ def put_group(ctx, from_json, force, group_id, schemas, display_name, authorizat @cli_util.wrap_exceptions def put_identity_proofing_provider(ctx, from_json, force, identity_proofing_provider_id, schemas, provider, name, configuration, claim_mapping, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, idcs_locked_operations, idcs_locked_by, idcs_locked_on, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, description, status, runtime_data, if_match): - if isinstance(identity_proofing_provider_id, six.string_types) and len(identity_proofing_provider_id.strip()) == 0: + if isinstance(identity_proofing_provider_id, str) and len(identity_proofing_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-proofing-provider-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or idcs_locked_operations or idcs_locked_by or runtime_data or configuration or claim_mapping: @@ -21786,7 +21785,7 @@ def put_identity_proofing_provider(ctx, from_json, force, identity_proofing_prov @cli_util.wrap_exceptions def put_identity_proofing_provider_template(ctx, from_json, force, identity_proofing_provider_template_id, schemas, provider, verification_url, service_type, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, idcs_locked_operations, idcs_locked_by, idcs_locked_on, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, configuration, if_match): - if isinstance(identity_proofing_provider_template_id, six.string_types) and len(identity_proofing_provider_template_id.strip()) == 0: + if isinstance(identity_proofing_provider_template_id, str) and len(identity_proofing_provider_template_id.strip()) == 0: raise click.UsageError('Parameter --identity-proofing-provider-template-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or idcs_locked_operations or idcs_locked_by or service_type or configuration: @@ -21994,7 +21993,7 @@ def put_identity_proofing_provider_template(ctx, from_json, force, identity_proo @cli_util.wrap_exceptions def put_identity_propagation_trust(ctx, from_json, force, identity_propagation_trust_id, schemas, name, type, issuer, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, description, account_id, subject_claim_name, subject_mapping_attribute, subject_type, client_claim_name, client_claim_values, active, public_key_endpoint, public_certificate, oauth_clients, allow_impersonation, clock_skew_seconds, impersonating_resource, claim_validations, claim_propagations, ca_cert_chain, impersonation_service_users, keytab, if_match): - if isinstance(identity_propagation_trust_id, six.string_types) and len(identity_propagation_trust_id.strip()) == 0: + if isinstance(identity_propagation_trust_id, str) and len(identity_propagation_trust_id.strip()) == 0: raise click.UsageError('Parameter --identity-propagation-trust-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or client_claim_values or oauth_clients or claim_validations or claim_propagations or ca_cert_chain or impersonation_service_users or keytab: @@ -22351,7 +22350,7 @@ def put_identity_propagation_trust(ctx, from_json, force, identity_propagation_t @cli_util.wrap_exceptions def put_identity_provider(ctx, from_json, force, identity_provider_id, schemas, partner_name, enabled, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, description, metadata, partner_provider_id, tenant_provider_id, succinct_id, idp_sso_url, logout_request_url, logout_response_url, signing_certificate, encryption_certificate, name_id_format, include_signing_cert_in_signature, authn_request_binding, logout_binding, logout_enabled, signature_hash_algorithm, icon_url, shown_on_login_page, jit_user_prov_enabled, jit_user_prov_group_assertion_attribute_enabled, jit_user_prov_group_static_list_enabled, jit_user_prov_create_user_enabled, jit_user_prov_attribute_update_enabled, jit_user_prov_group_assignment_method, jit_user_prov_group_mapping_mode, jit_user_prov_group_saml_attribute_name, service_instance_identifier, user_mapping_method, user_mapping_store_attribute, assertion_attribute, type, require_force_authn, requires_encrypted_assertion, saml_ho_k_required, requested_authentication_context, jit_user_prov_ignore_error_on_absent_groups, last_notification_sent_time, jit_user_prov_group_mappings, jit_user_prov_attributes, jit_user_prov_assigned_groups, correlation_policy, urnietfparamsscimschemasoracleidcsextensionsocial_identity_provider, urnietfparamsscimschemasoracleidcsextensionx509_identity_provider, if_match): - if isinstance(identity_provider_id, six.string_types) and len(identity_provider_id.strip()) == 0: + if isinstance(identity_provider_id, str) and len(identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --identity-provider-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or requested_authentication_context or jit_user_prov_group_mappings or jit_user_prov_attributes or jit_user_prov_assigned_groups or correlation_policy or urnietfparamsscimschemasoracleidcsextensionsocial_identity_provider or urnietfparamsscimschemasoracleidcsextensionx509_identity_provider: @@ -22636,7 +22635,7 @@ def put_identity_provider(ctx, from_json, force, identity_provider_id, schemas, @cli_util.wrap_exceptions def put_identity_setting(ctx, from_json, force, identity_setting_id, schemas, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, user_allowed_to_set_recovery_email, emit_locked_message_when_user_is_locked, primary_email_required, remove_invalid_emails, return_inactive_over_locked_message, my_profile, posix_uid, posix_gid, tokens, if_match): - if isinstance(identity_setting_id, six.string_types) and len(identity_setting_id.strip()) == 0: + if isinstance(identity_setting_id, str) and len(identity_setting_id.strip()) == 0: raise click.UsageError('Parameter --identity-setting-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or my_profile or posix_uid or posix_gid or tokens: @@ -22811,7 +22810,7 @@ def put_identity_setting(ctx, from_json, force, identity_setting_id, schemas, au @cli_util.wrap_exceptions def put_kmsi_setting(ctx, from_json, force, kmsi_setting_id, schemas, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, token_validity_in_days, last_used_validity_in_days, max_allowed_sessions, kmsi_feature_enabled, kmsi_prompt_enabled, tou_prompt_disabled, last_enabled_on, if_match): - if isinstance(kmsi_setting_id, six.string_types) and len(kmsi_setting_id.strip()) == 0: + if isinstance(kmsi_setting_id, str) and len(kmsi_setting_id.strip()) == 0: raise click.UsageError('Parameter --kmsi-setting-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags: @@ -22975,7 +22974,7 @@ def put_kmsi_setting(ctx, from_json, force, kmsi_setting_id, schemas, authorizat @cli_util.wrap_exceptions def put_mapped_attribute(ctx, from_json, force, mapped_attribute_id, schemas, idcs_resource_type, ref_resource_type, ref_resource_id, direction, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, attribute_mappings, if_match): - if isinstance(mapped_attribute_id, six.string_types) and len(mapped_attribute_id.strip()) == 0: + if isinstance(mapped_attribute_id, str) and len(mapped_attribute_id.strip()) == 0: raise click.UsageError('Parameter --mapped-attribute-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or attribute_mappings: @@ -23559,7 +23558,7 @@ def put_me_password_changer(ctx, from_json, force, schemas, password, old_passwo @cli_util.wrap_exceptions def put_network_perimeter(ctx, from_json, force, network_perimeter_id, schemas, name, ip_addresses, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, description, if_match): - if isinstance(network_perimeter_id, six.string_types) and len(network_perimeter_id.strip()) == 0: + if isinstance(network_perimeter_id, str) and len(network_perimeter_id.strip()) == 0: raise click.UsageError('Parameter --network-perimeter-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or ip_addresses: @@ -23712,7 +23711,7 @@ def put_network_perimeter(ctx, from_json, force, network_perimeter_id, schemas, @cli_util.wrap_exceptions def put_notification_setting(ctx, from_json, force, notification_setting_id, schemas, notification_enabled, from_email_address, event_settings, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, test_mode_enabled, test_recipients, send_notifications_to_secondary_email, send_notification_to_old_and_new_primary_emails_when_admin_changes_primary_email, if_match): - if isinstance(notification_setting_id, six.string_types) and len(notification_setting_id.strip()) == 0: + if isinstance(notification_setting_id, str) and len(notification_setting_id.strip()) == 0: raise click.UsageError('Parameter --notification-setting-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or test_recipients or from_email_address or event_settings: @@ -23975,7 +23974,7 @@ def put_notification_setting(ctx, from_json, force, notification_setting_id, sch @cli_util.wrap_exceptions def put_password_policy(ctx, from_json, force, password_policy_id, schemas, name, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, description, max_length, min_length, min_alphas, min_numerals, min_alpha_numerals, min_special_chars, max_special_chars, min_lower_case, min_upper_case, min_unique_chars, max_repeated_chars, starts_with_alphabet, first_name_disallowed, last_name_disallowed, user_name_disallowed, disallowed_user_attribute_values, min_password_age, password_expires_after, password_expire_warning, required_chars, disallowed_chars, allowed_chars, disallowed_substrings, dictionary_word_disallowed, dictionary_location, dictionary_delimiter, max_incorrect_attempts, lockout_duration, num_passwords_in_history, password_strength, force_password_reset, distinct_characters, priority, groups, configured_password_policy_rules, if_match): - if isinstance(password_policy_id, six.string_types) and len(password_policy_id.strip()) == 0: + if isinstance(password_policy_id, str) and len(password_policy_id.strip()) == 0: raise click.UsageError('Parameter --password-policy-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or disallowed_user_attribute_values or disallowed_substrings or groups or configured_password_policy_rules: @@ -24228,7 +24227,7 @@ def put_password_policy(ctx, from_json, force, password_policy_id, schemas, name @cli_util.wrap_exceptions def put_policy(ctx, from_json, force, policy_id, schemas, name, policy_type, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, description, active, policy_groovy, rules, urnietfparamsscimschemasoracleidcsextensionociconsolesignonpolicyconsent_policy, if_match): - if isinstance(policy_id, six.string_types) and len(policy_id.strip()) == 0: + if isinstance(policy_id, str) and len(policy_id.strip()) == 0: raise click.UsageError('Parameter --policy-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or rules or policy_type or urnietfparamsscimschemasoracleidcsextensionociconsolesignonpolicyconsent_policy: @@ -24396,7 +24395,7 @@ def put_policy(ctx, from_json, force, policy_id, schemas, name, policy_type, aut @cli_util.wrap_exceptions def put_rule(ctx, from_json, force, rule_id, schemas, name, condition, policy_type, _return, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, description, active, locked, rule_groovy, condition_group, urnietfparamsscimschemasoracleidcsextensionociconsolesignonpolicyconsent_policy, if_match): - if isinstance(rule_id, six.string_types) and len(rule_id.strip()) == 0: + if isinstance(rule_id, str) and len(rule_id.strip()) == 0: raise click.UsageError('Parameter --rule-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or condition_group or policy_type or _return or urnietfparamsscimschemasoracleidcsextensionociconsolesignonpolicyconsent_policy: @@ -24541,7 +24540,7 @@ def put_rule(ctx, from_json, force, rule_id, schemas, name, condition, policy_ty @cli_util.wrap_exceptions def put_schema(ctx, from_json, force, schema_id, schemas, idcs_mappable, authorization, resource_type_schema_version, idcs_maps_to_same_target_attribute_name_as, external_id, name, idcs_resource_types, description, idcs_attribute_cacheable, idcs_override_common_attribute, attributes, if_match): - if isinstance(schema_id, six.string_types) and len(schema_id.strip()) == 0: + if isinstance(schema_id, str) and len(schema_id.strip()) == 0: raise click.UsageError('Parameter --schema-id cannot be whitespace or empty string') if not force: if schemas or idcs_resource_types or attributes: @@ -24660,7 +24659,7 @@ def put_schema(ctx, from_json, force, schema_id, schemas, idcs_mappable, authori @cli_util.wrap_exceptions def put_security_question_setting(ctx, from_json, force, security_question_setting_id, schemas, num_questions_to_setup, min_answer_length, max_field_length, num_questions_to_ans, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, if_match): - if isinstance(security_question_setting_id, six.string_types) and len(security_question_setting_id.strip()) == 0: + if isinstance(security_question_setting_id, str) and len(security_question_setting_id.strip()) == 0: raise click.UsageError('Parameter --security-question-setting-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags: @@ -24852,7 +24851,7 @@ def put_security_question_setting(ctx, from_json, force, security_question_setti @cli_util.wrap_exceptions def put_self_registration_profile(ctx, from_json, force, self_registration_profile_id, schemas, name, activation_email_required, number_of_days_redirect_url_is_valid, show_on_login_page, redirect_url, consent_text_present, display_name, email_template, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, active, allowed_email_domains, disallowed_email_domains, header_logo, footer_logo, after_submit_text, user_attributes, default_groups, header_text, footer_text, consent_text, if_match): - if isinstance(self_registration_profile_id, six.string_types) and len(self_registration_profile_id.strip()) == 0: + if isinstance(self_registration_profile_id, str) and len(self_registration_profile_id.strip()) == 0: raise click.UsageError('Parameter --self-registration-profile-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or allowed_email_domains or disallowed_email_domains or display_name or after_submit_text or user_attributes or email_template or default_groups or header_text or footer_text or consent_text: @@ -25233,7 +25232,7 @@ def put_self_registration_profile(ctx, from_json, force, self_registration_profi @cli_util.wrap_exceptions def put_setting(ctx, from_json, force, setting_id, schemas, csr_access, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, contact_emails, custom_branding, preferred_language, timezone, diagnostic_record_for_search_identifies_returned_resources, re_auth_when_changing_my_authentication_factors, re_auth_factor, locale, signing_cert_public_access, sub_mapping_attr, account_always_trust_scope, default_trust_scope, issuer, prev_issuer, diagnostic_level, diagnostic_tracing_upto, allowed_domains, enable_terms_of_use, terms_of_use_url, privacy_policy_url, migration_status, on_premises_provisioning, allowed_forgot_password_flow_return_urls, allowed_notification_redirect_urls, audit_event_retention_period, is_hosted_page, custom_html_location, custom_css_location, custom_translation, cloud_account_name, cloud_migration_url_enabled, cloud_migration_custom_url, service_admin_cannot_list_other_users, max_no_of_app_role_members_to_return, max_no_of_app_cmva_to_return, iam_upst_session_expiry, cloud_gate_cors_settings, certificate_validation, tenant_custom_claims, purge_configs, default_company_names, default_login_texts, default_images, company_names, login_texts, images, if_match): - if isinstance(setting_id, six.string_types) and len(setting_id.strip()) == 0: + if isinstance(setting_id, str) and len(setting_id.strip()) == 0: raise click.UsageError('Parameter --setting-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or contact_emails or re_auth_factor or allowed_domains or allowed_forgot_password_flow_return_urls or allowed_notification_redirect_urls or cloud_gate_cors_settings or certificate_validation or tenant_custom_claims or purge_configs or default_company_names or default_login_texts or default_images or company_names or login_texts or images: @@ -25607,7 +25606,7 @@ def put_setting(ctx, from_json, force, setting_id, schemas, csr_access, authoriz @cli_util.wrap_exceptions def put_social_identity_provider(ctx, from_json, force, social_identity_provider_id, schemas, name, enabled, account_linking_enabled, registration_enabled, show_on_login, consumer_key, consumer_secret, service_provider_name, authorization, resource_type_schema_version, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, description, social_jit_provisioning_enabled, jit_prov_group_static_list_enabled, jit_prov_assigned_groups, auto_redirect_enabled, status, id_attribute, authz_url, access_token_url, profile_url, scope, admin_scope, apple_dev_id, apple_key_id, clock_skew_in_seconds, redirect_url, icon_url, discovery_url, client_credential_in_payload, refresh_token_url, relay_idp_param_mappings, if_match): - if isinstance(social_identity_provider_id, six.string_types) and len(social_identity_provider_id.strip()) == 0: + if isinstance(social_identity_provider_id, str) and len(social_identity_provider_id.strip()) == 0: raise click.UsageError('Parameter --social-identity-provider-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or jit_prov_assigned_groups or scope or admin_scope or relay_idp_param_mappings: @@ -25900,7 +25899,7 @@ def put_social_identity_provider(ctx, from_json, force, social_identity_provider @cli_util.wrap_exceptions def put_user(ctx, from_json, force, user_id, schemas, user_name, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, description, display_name, nick_name, profile_url, title, user_type, locale, preferred_language, timezone, active, password, name, emails, phone_numbers, ims, photos, addresses, groups, entitlements, roles, x509_certificates, urnietfparamsscimschemasextensionenterprise2_0_user, urnietfparamsscimschemasoracleidcsextensionuser_user, urnietfparamsscimschemasoracleidcsextensionpassword_state_user, urnietfparamsscimschemasoracleidcsextensionuser_state_user, urnietfparamsscimschemasoracleidcsextensionposix_user, urnietfparamsscimschemasoracleidcsextensionkerberos_user_user, urnietfparamsscimschemasoracleidcsextensionmfa_user, urnietfparamsscimschemasoracleidcsextensionadaptive_user, urnietfparamsscimschemasoracleidcsextensionsff_user, urnietfparamsscimschemasoracleidcsextensionsecurity_questions_user, urnietfparamsscimschemasoracleidcsextensionself_registration_user, urnietfparamsscimschemasoracleidcsextensionsocial_account_user, urnietfparamsscimschemasoracleidcsextensiondb_user_user, urnietfparamsscimschemasoracleidcsextensionterms_of_use_user, urnietfparamsscimschemasoracleidcsextensionpasswordless_user, urnietfparamsscimschemasoracleidcsextension_oci_tags, urnietfparamsscimschemasoracleidcsextensionuser_credentials_user, urnietfparamsscimschemasoracleidcsextensioncapabilities_user, urnietfparamsscimschemasoracleidcsextensiondb_credentials_user, urnietfparamsscimschemasoracleidcsextensionself_change_user, if_match): - if isinstance(user_id, six.string_types) and len(user_id.strip()) == 0: + if isinstance(user_id, str) and len(user_id.strip()) == 0: raise click.UsageError('Parameter --user-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or name or emails or phone_numbers or ims or photos or addresses or groups or entitlements or roles or x509_certificates or urnietfparamsscimschemasextensionenterprise2_0_user or urnietfparamsscimschemasoracleidcsextensionuser_user or urnietfparamsscimschemasoracleidcsextensionpassword_state_user or urnietfparamsscimschemasoracleidcsextensionuser_state_user or urnietfparamsscimschemasoracleidcsextensionposix_user or urnietfparamsscimschemasoracleidcsextensionkerberos_user_user or urnietfparamsscimschemasoracleidcsextensionmfa_user or urnietfparamsscimschemasoracleidcsextensionadaptive_user or urnietfparamsscimschemasoracleidcsextensionsff_user or urnietfparamsscimschemasoracleidcsextensionsecurity_questions_user or urnietfparamsscimschemasoracleidcsextensionself_registration_user or urnietfparamsscimschemasoracleidcsextensionsocial_account_user or urnietfparamsscimschemasoracleidcsextensiondb_user_user or urnietfparamsscimschemasoracleidcsextensionterms_of_use_user or urnietfparamsscimschemasoracleidcsextensionpasswordless_user or urnietfparamsscimschemasoracleidcsextension_oci_tags or urnietfparamsscimschemasoracleidcsextensionuser_credentials_user or urnietfparamsscimschemasoracleidcsextensioncapabilities_user or urnietfparamsscimschemasoracleidcsextensiondb_credentials_user or urnietfparamsscimschemasoracleidcsextensionself_change_user: @@ -26169,7 +26168,7 @@ def put_user(ctx, from_json, force, user_id, schemas, user_name, authorization, @cli_util.wrap_exceptions def put_user_capabilities_changer(ctx, from_json, force, user_capabilities_changer_id, schemas, authorization, resource_type_schema_version, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, can_use_api_keys, can_use_auth_tokens, can_use_console_password, can_use_customer_secret_keys, can_use_o_auth2_client_credentials, can_use_smtp_credentials, can_use_db_credentials, can_use_console, urnietfparamsscimschemasoracleidcsextensionself_change_user, if_match): - if isinstance(user_capabilities_changer_id, six.string_types) and len(user_capabilities_changer_id.strip()) == 0: + if isinstance(user_capabilities_changer_id, str) and len(user_capabilities_changer_id.strip()) == 0: raise click.UsageError('Parameter --user-capabilities-changer-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or urnietfparamsscimschemasoracleidcsextensionself_change_user: @@ -26322,7 +26321,7 @@ def put_user_capabilities_changer(ctx, from_json, force, user_capabilities_chang @cli_util.wrap_exceptions def put_user_password_changer(ctx, from_json, force, user_password_changer_id, schemas, password, authorization, resource_type_schema_version, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, bypass_notification, notification_email_template_id, urnietfparamsscimschemasoracleidcsextensionself_change_user, if_match): - if isinstance(user_password_changer_id, six.string_types) and len(user_password_changer_id.strip()) == 0: + if isinstance(user_password_changer_id, str) and len(user_password_changer_id.strip()) == 0: raise click.UsageError('Parameter --user-password-changer-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or urnietfparamsscimschemasoracleidcsextensionself_change_user: @@ -26465,7 +26464,7 @@ def put_user_password_changer(ctx, from_json, force, user_password_changer_id, s @cli_util.wrap_exceptions def put_user_password_resetter(ctx, from_json, force, user_password_resetter_id, schemas, authorization, resource_type_schema_version, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, bypass_notification, user_flow_controlled_by_external_client, user_token, notification_email_template_id, one_time_password, urnietfparamsscimschemasoracleidcsextensionself_change_user, if_match): - if isinstance(user_password_resetter_id, six.string_types) and len(user_password_resetter_id.strip()) == 0: + if isinstance(user_password_resetter_id, str) and len(user_password_resetter_id.strip()) == 0: raise click.UsageError('Parameter --user-password-resetter-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or user_token or urnietfparamsscimschemasoracleidcsextensionself_change_user: @@ -26608,7 +26607,7 @@ def put_user_password_resetter(ctx, from_json, force, user_password_resetter_id, @cli_util.wrap_exceptions def put_user_status_changer(ctx, from_json, force, user_status_changer_id, schemas, authorization, resource_type_schema_version, attributes, attribute_sets, id, ocid, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, external_id, active, urnietfparamsscimschemasoracleidcsextensionself_change_user, if_match): - if isinstance(user_status_changer_id, six.string_types) and len(user_status_changer_id.strip()) == 0: + if isinstance(user_status_changer_id, str) and len(user_status_changer_id.strip()) == 0: raise click.UsageError('Parameter --user-status-changer-id cannot be whitespace or empty string') if not force: if schemas or meta or idcs_created_by or idcs_last_modified_by or idcs_prevented_operations or tags or urnietfparamsscimschemasoracleidcsextensionself_change_user: diff --git a/services/integration/src/oci_cli_integration_instance/generated/integrationinstance_cli.py b/services/integration/src/oci_cli_integration_instance/generated/integrationinstance_cli.py index 60588e617..41a1d6070 100644 --- a/services/integration/src/oci_cli_integration_instance/generated/integrationinstance_cli.py +++ b/services/integration/src/oci_cli_integration_instance/generated/integrationinstance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -67,7 +66,7 @@ def work_request_group(): @cli_util.wrap_exceptions def add_log_analytics_log_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, log_group_id, attachment_type, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -133,7 +132,7 @@ def add_log_analytics_log_group(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def add_oracle_managed_custom_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, hostname, integration_instance_id, dns_type, dns_zone_name, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -200,7 +199,7 @@ def add_oracle_managed_custom_endpoint(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def change_integration_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, compartment_id, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -263,7 +262,7 @@ def change_integration_instance_compartment(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def change_integration_instance_network_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, network_endpoint_details, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -332,7 +331,7 @@ def change_integration_instance_network_endpoint(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_integration_instance_network_endpoint_public_endpoint_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, if_match, network_endpoint_details_allowlisted_http_ips, network_endpoint_details_allowlisted_http_vcns, network_endpoint_details_runtime, network_endpoint_details_design_time, network_endpoint_details_is_integration_vcn_allowlisted): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -410,7 +409,7 @@ def change_integration_instance_network_endpoint_public_endpoint_details(ctx, fr @cli_util.wrap_exceptions def change_private_endpoint_outbound_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, private_endpoint_outbound_connection, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -475,7 +474,7 @@ def change_private_endpoint_outbound_connection(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_private_endpoint_outbound_connection_private_endpoint_outbound_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, private_endpoint_outbound_connection_subnet_id, if_match, private_endpoint_outbound_connection_nsg_ids, private_endpoint_outbound_connection_is_all_outbound_traffic_private): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -544,7 +543,7 @@ def change_private_endpoint_outbound_connection_private_endpoint_outbound_connec @cli_util.wrap_exceptions def change_private_endpoint_outbound_connection_none_outbound_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -608,7 +607,7 @@ def change_private_endpoint_outbound_connection_none_outbound_connection(ctx, fr @cli_util.wrap_exceptions def convert_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, conversion_type, conversion_phase, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -927,7 +926,7 @@ def create_integration_instance_public_endpoint_details(ctx, from_json, wait_for @cli_util.wrap_exceptions def delete_integration_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -982,7 +981,7 @@ def delete_integration_instance(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def disable_process_automation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1037,7 +1036,7 @@ def disable_process_automation(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def disaster_recovery_failover(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1092,7 +1091,7 @@ def disaster_recovery_failover(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def enable_process_automation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1148,7 +1147,7 @@ def enable_process_automation(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def extend_data_retention(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, data_retention_period, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1204,7 +1203,7 @@ def extend_data_retention(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def get_integration_instance(ctx, from_json, integration_instance_id): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1226,7 +1225,7 @@ def get_integration_instance(ctx, from_json, integration_instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1318,7 +1317,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, compartment_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1373,7 +1372,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, compartment_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1476,7 +1475,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def remove_log_analytics_log_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, attachment_type, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1538,7 +1537,7 @@ def remove_log_analytics_log_group(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def remove_oracle_managed_custom_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1593,7 +1592,7 @@ def remove_oracle_managed_custom_endpoint(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def start_integration_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1648,7 +1647,7 @@ def start_integration_instance(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def stop_integration_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1719,7 +1718,7 @@ def stop_integration_instance(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_integration_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, integration_instance_id, display_name, integration_instance_type, freeform_tags, defined_tags, security_attributes, is_byol, message_packs, is_file_server_enabled, is_visual_builder_enabled, custom_endpoint, alternate_custom_endpoints, if_match): - if isinstance(integration_instance_id, six.string_types) and len(integration_instance_id.strip()) == 0: + if isinstance(integration_instance_id, str) and len(integration_instance_id.strip()) == 0: raise click.UsageError('Parameter --integration-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or security_attributes or custom_endpoint or alternate_custom_endpoints: diff --git a/services/iot/src/oci_cli_iot/generated/iot_cli.py b/services/iot/src/oci_cli_iot/generated/iot_cli.py index 9a8c9fe21..d3e1c4246 100644 --- a/services/iot/src/oci_cli_iot/generated/iot_cli.py +++ b/services/iot/src/oci_cli_iot/generated/iot_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -106,7 +105,7 @@ def digital_twin_instance_group(): @cli_util.wrap_exceptions def activate_iot_flow_runtime(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_flow_runtime_id, if_match): - if isinstance(iot_flow_runtime_id, six.string_types) and len(iot_flow_runtime_id.strip()) == 0: + if isinstance(iot_flow_runtime_id, str) and len(iot_flow_runtime_id.strip()) == 0: raise click.UsageError('Parameter --iot-flow-runtime-id cannot be whitespace or empty string') kwargs = {} @@ -162,7 +161,7 @@ def activate_iot_flow_runtime(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_iot_domain_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_id, compartment_id, if_match): - if isinstance(iot_domain_id, six.string_types) and len(iot_domain_id.strip()) == 0: + if isinstance(iot_domain_id, str) and len(iot_domain_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-id cannot be whitespace or empty string') kwargs = {} @@ -224,7 +223,7 @@ def change_iot_domain_compartment(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def change_iot_domain_data_retention_period(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_id, type, data_retention_period_in_days, if_match): - if isinstance(iot_domain_id, six.string_types) and len(iot_domain_id.strip()) == 0: + if isinstance(iot_domain_id, str) and len(iot_domain_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-id cannot be whitespace or empty string') kwargs = {} @@ -286,7 +285,7 @@ def change_iot_domain_data_retention_period(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def change_iot_domain_group_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_group_id, compartment_id, if_match): - if isinstance(iot_domain_group_id, six.string_types) and len(iot_domain_group_id.strip()) == 0: + if isinstance(iot_domain_group_id, str) and len(iot_domain_group_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-group-id cannot be whitespace or empty string') kwargs = {} @@ -347,7 +346,7 @@ def change_iot_domain_group_compartment(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def change_iot_flow_runtime_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_flow_runtime_id, compartment_id, if_match): - if isinstance(iot_flow_runtime_id, six.string_types) and len(iot_flow_runtime_id.strip()) == 0: + if isinstance(iot_flow_runtime_id, str) and len(iot_flow_runtime_id.strip()) == 0: raise click.UsageError('Parameter --iot-flow-runtime-id cannot be whitespace or empty string') kwargs = {} @@ -408,7 +407,7 @@ def change_iot_flow_runtime_compartment(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def configure_iot_domain_data_access(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_id, type, if_match): - if isinstance(iot_domain_id, six.string_types) and len(iot_domain_id.strip()) == 0: + if isinstance(iot_domain_id, str) and len(iot_domain_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-id cannot be whitespace or empty string') kwargs = {} @@ -469,7 +468,7 @@ def configure_iot_domain_data_access(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def configure_iot_domain_data_access_apex_data_access_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_id, db_workspace_admin_initial_password, if_match): - if isinstance(iot_domain_id, six.string_types) and len(iot_domain_id.strip()) == 0: + if isinstance(iot_domain_id, str) and len(iot_domain_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-id cannot be whitespace or empty string') kwargs = {} @@ -532,7 +531,7 @@ def configure_iot_domain_data_access_apex_data_access_details(ctx, from_json, wa @cli_util.wrap_exceptions def configure_iot_domain_data_access_direct_data_access_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_id, db_allow_listed_identity_group_names, if_match): - if isinstance(iot_domain_id, six.string_types) and len(iot_domain_id.strip()) == 0: + if isinstance(iot_domain_id, str) and len(iot_domain_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-id cannot be whitespace or empty string') kwargs = {} @@ -595,7 +594,7 @@ def configure_iot_domain_data_access_direct_data_access_details(ctx, from_json, @cli_util.wrap_exceptions def configure_iot_domain_data_access_ords_data_access_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_id, db_allowed_identity_domain_host, if_match): - if isinstance(iot_domain_id, six.string_types) and len(iot_domain_id.strip()) == 0: + if isinstance(iot_domain_id, str) and len(iot_domain_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-id cannot be whitespace or empty string') kwargs = {} @@ -658,7 +657,7 @@ def configure_iot_domain_data_access_ords_data_access_details(ctx, from_json, wa @cli_util.wrap_exceptions def configure_iot_domain_group_data_access(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_group_id, db_allow_listed_vcn_ids, if_match): - if isinstance(iot_domain_group_id, six.string_types) and len(iot_domain_group_id.strip()) == 0: + if isinstance(iot_domain_group_id, str) and len(iot_domain_group_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-group-id cannot be whitespace or empty string') kwargs = {} @@ -1291,7 +1290,7 @@ def create_iot_flow_runtime(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def deactivate_iot_flow_runtime(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_flow_runtime_id, if_match): - if isinstance(iot_flow_runtime_id, six.string_types) and len(iot_flow_runtime_id.strip()) == 0: + if isinstance(iot_flow_runtime_id, str) and len(iot_flow_runtime_id.strip()) == 0: raise click.UsageError('Parameter --iot-flow-runtime-id cannot be whitespace or empty string') kwargs = {} @@ -1347,7 +1346,7 @@ def deactivate_iot_flow_runtime(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_digital_twin_adapter(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, digital_twin_adapter_id, if_match): - if isinstance(digital_twin_adapter_id, six.string_types) and len(digital_twin_adapter_id.strip()) == 0: + if isinstance(digital_twin_adapter_id, str) and len(digital_twin_adapter_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-adapter-id cannot be whitespace or empty string') kwargs = {} @@ -1411,7 +1410,7 @@ def delete_digital_twin_adapter(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_digital_twin_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, digital_twin_instance_id, if_match): - if isinstance(digital_twin_instance_id, six.string_types) and len(digital_twin_instance_id.strip()) == 0: + if isinstance(digital_twin_instance_id, str) and len(digital_twin_instance_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1475,7 +1474,7 @@ def delete_digital_twin_instance(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_digital_twin_model(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, digital_twin_model_id, if_match): - if isinstance(digital_twin_model_id, six.string_types) and len(digital_twin_model_id.strip()) == 0: + if isinstance(digital_twin_model_id, str) and len(digital_twin_model_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-model-id cannot be whitespace or empty string') kwargs = {} @@ -1539,7 +1538,7 @@ def delete_digital_twin_model(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_digital_twin_relationship(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, digital_twin_relationship_id, if_match): - if isinstance(digital_twin_relationship_id, six.string_types) and len(digital_twin_relationship_id.strip()) == 0: + if isinstance(digital_twin_relationship_id, str) and len(digital_twin_relationship_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-relationship-id cannot be whitespace or empty string') kwargs = {} @@ -1603,7 +1602,7 @@ def delete_digital_twin_relationship(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_iot_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_id, if_match): - if isinstance(iot_domain_id, six.string_types) and len(iot_domain_id.strip()) == 0: + if isinstance(iot_domain_id, str) and len(iot_domain_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1659,7 +1658,7 @@ def delete_iot_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_iot_domain_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_group_id, if_match): - if isinstance(iot_domain_group_id, six.string_types) and len(iot_domain_group_id.strip()) == 0: + if isinstance(iot_domain_group_id, str) and len(iot_domain_group_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-group-id cannot be whitespace or empty string') kwargs = {} @@ -1715,7 +1714,7 @@ def delete_iot_domain_group(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_iot_flow_runtime(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_flow_runtime_id, if_match): - if isinstance(iot_flow_runtime_id, six.string_types) and len(iot_flow_runtime_id.strip()) == 0: + if isinstance(iot_flow_runtime_id, str) and len(iot_flow_runtime_id.strip()) == 0: raise click.UsageError('Parameter --iot-flow-runtime-id cannot be whitespace or empty string') kwargs = {} @@ -1766,7 +1765,7 @@ def delete_iot_flow_runtime(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def get_digital_twin_adapter(ctx, from_json, digital_twin_adapter_id): - if isinstance(digital_twin_adapter_id, six.string_types) and len(digital_twin_adapter_id.strip()) == 0: + if isinstance(digital_twin_adapter_id, str) and len(digital_twin_adapter_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-adapter-id cannot be whitespace or empty string') kwargs = {} @@ -1788,7 +1787,7 @@ def get_digital_twin_adapter(ctx, from_json, digital_twin_adapter_id): @cli_util.wrap_exceptions def get_digital_twin_instance(ctx, from_json, digital_twin_instance_id): - if isinstance(digital_twin_instance_id, six.string_types) and len(digital_twin_instance_id.strip()) == 0: + if isinstance(digital_twin_instance_id, str) and len(digital_twin_instance_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1811,7 +1810,7 @@ def get_digital_twin_instance(ctx, from_json, digital_twin_instance_id): @cli_util.wrap_exceptions def get_digital_twin_instance_content(ctx, from_json, digital_twin_instance_id, should_include_metadata): - if isinstance(digital_twin_instance_id, six.string_types) and len(digital_twin_instance_id.strip()) == 0: + if isinstance(digital_twin_instance_id, str) and len(digital_twin_instance_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1835,7 +1834,7 @@ def get_digital_twin_instance_content(ctx, from_json, digital_twin_instance_id, @cli_util.wrap_exceptions def get_digital_twin_model(ctx, from_json, digital_twin_model_id): - if isinstance(digital_twin_model_id, six.string_types) and len(digital_twin_model_id.strip()) == 0: + if isinstance(digital_twin_model_id, str) and len(digital_twin_model_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-model-id cannot be whitespace or empty string') kwargs = {} @@ -1857,7 +1856,7 @@ def get_digital_twin_model(ctx, from_json, digital_twin_model_id): @cli_util.wrap_exceptions def get_digital_twin_model_spec(ctx, from_json, digital_twin_model_id): - if isinstance(digital_twin_model_id, six.string_types) and len(digital_twin_model_id.strip()) == 0: + if isinstance(digital_twin_model_id, str) and len(digital_twin_model_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-model-id cannot be whitespace or empty string') kwargs = {} @@ -1879,7 +1878,7 @@ def get_digital_twin_model_spec(ctx, from_json, digital_twin_model_id): @cli_util.wrap_exceptions def get_digital_twin_relationship(ctx, from_json, digital_twin_relationship_id): - if isinstance(digital_twin_relationship_id, six.string_types) and len(digital_twin_relationship_id.strip()) == 0: + if isinstance(digital_twin_relationship_id, str) and len(digital_twin_relationship_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-relationship-id cannot be whitespace or empty string') kwargs = {} @@ -1901,7 +1900,7 @@ def get_digital_twin_relationship(ctx, from_json, digital_twin_relationship_id): @cli_util.wrap_exceptions def get_iot_domain(ctx, from_json, iot_domain_id): - if isinstance(iot_domain_id, six.string_types) and len(iot_domain_id.strip()) == 0: + if isinstance(iot_domain_id, str) and len(iot_domain_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1923,7 +1922,7 @@ def get_iot_domain(ctx, from_json, iot_domain_id): @cli_util.wrap_exceptions def get_iot_domain_group(ctx, from_json, iot_domain_group_id): - if isinstance(iot_domain_group_id, six.string_types) and len(iot_domain_group_id.strip()) == 0: + if isinstance(iot_domain_group_id, str) and len(iot_domain_group_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-group-id cannot be whitespace or empty string') kwargs = {} @@ -1945,7 +1944,7 @@ def get_iot_domain_group(ctx, from_json, iot_domain_group_id): @cli_util.wrap_exceptions def get_iot_flow_runtime(ctx, from_json, iot_flow_runtime_id): - if isinstance(iot_flow_runtime_id, six.string_types) and len(iot_flow_runtime_id.strip()) == 0: + if isinstance(iot_flow_runtime_id, str) and len(iot_flow_runtime_id.strip()) == 0: raise click.UsageError('Parameter --iot-flow-runtime-id cannot be whitespace or empty string') kwargs = {} @@ -1967,7 +1966,7 @@ def get_iot_flow_runtime(ctx, from_json, iot_flow_runtime_id): @cli_util.wrap_exceptions def get_iot_flow_runtime_flows(ctx, from_json, iot_flow_runtime_id): - if isinstance(iot_flow_runtime_id, six.string_types) and len(iot_flow_runtime_id.strip()) == 0: + if isinstance(iot_flow_runtime_id, str) and len(iot_flow_runtime_id.strip()) == 0: raise click.UsageError('Parameter --iot-flow-runtime-id cannot be whitespace or empty string') kwargs = {} @@ -1989,7 +1988,7 @@ def get_iot_flow_runtime_flows(ctx, from_json, iot_flow_runtime_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2016,7 +2015,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def invoke_raw_command(ctx, from_json, digital_twin_instance_id, request_endpoint, request_data_format, request_duration, response_duration, response_endpoint): - if isinstance(digital_twin_instance_id, six.string_types) and len(digital_twin_instance_id.strip()) == 0: + if isinstance(digital_twin_instance_id, str) and len(digital_twin_instance_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2059,7 +2058,7 @@ def invoke_raw_command(ctx, from_json, digital_twin_instance_id, request_endpoin @cli_util.wrap_exceptions def invoke_raw_command_invoke_raw_binary_command_details(ctx, from_json, digital_twin_instance_id, request_endpoint, request_duration, response_duration, response_endpoint, request_data_content_type, request_data): - if isinstance(digital_twin_instance_id, six.string_types) and len(digital_twin_instance_id.strip()) == 0: + if isinstance(digital_twin_instance_id, str) and len(digital_twin_instance_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2109,7 +2108,7 @@ def invoke_raw_command_invoke_raw_binary_command_details(ctx, from_json, digital @cli_util.wrap_exceptions def invoke_raw_command_invoke_raw_text_command_details(ctx, from_json, digital_twin_instance_id, request_endpoint, request_duration, response_duration, response_endpoint, request_data_content_type, request_data): - if isinstance(digital_twin_instance_id, six.string_types) and len(digital_twin_instance_id.strip()) == 0: + if isinstance(digital_twin_instance_id, str) and len(digital_twin_instance_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2159,7 +2158,7 @@ def invoke_raw_command_invoke_raw_text_command_details(ctx, from_json, digital_t @cli_util.wrap_exceptions def invoke_raw_command_invoke_raw_json_command_details(ctx, from_json, digital_twin_instance_id, request_endpoint, request_duration, response_duration, response_endpoint, request_data_content_type, request_data): - if isinstance(digital_twin_instance_id, six.string_types) and len(digital_twin_instance_id.strip()) == 0: + if isinstance(digital_twin_instance_id, str) and len(digital_twin_instance_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2689,7 +2688,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2746,7 +2745,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2874,7 +2873,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, id, @cli_util.wrap_exceptions def update_digital_twin_adapter(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, digital_twin_adapter_id, display_name, description, inbound_envelope, inbound_routes, freeform_tags, defined_tags, if_match): - if isinstance(digital_twin_adapter_id, six.string_types) and len(digital_twin_adapter_id.strip()) == 0: + if isinstance(digital_twin_adapter_id, str) and len(digital_twin_adapter_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-adapter-id cannot be whitespace or empty string') if not force: if inbound_envelope or inbound_routes or freeform_tags or defined_tags: @@ -2967,7 +2966,7 @@ def update_digital_twin_adapter(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_digital_twin_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, digital_twin_instance_id, connectivity_type, auth_id, external_key, display_name, description, digital_twin_adapter_id, digital_twin_model_id, digital_twin_model_spec_uri, gateways, freeform_tags, defined_tags, if_match): - if isinstance(digital_twin_instance_id, six.string_types) and len(digital_twin_instance_id.strip()) == 0: + if isinstance(digital_twin_instance_id, str) and len(digital_twin_instance_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-instance-id cannot be whitespace or empty string') if not force: if gateways or freeform_tags or defined_tags: @@ -3068,7 +3067,7 @@ def update_digital_twin_instance(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_digital_twin_model(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, digital_twin_model_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(digital_twin_model_id, six.string_types) and len(digital_twin_model_id.strip()) == 0: + if isinstance(digital_twin_model_id, str) and len(digital_twin_model_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-model-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3149,7 +3148,7 @@ def update_digital_twin_model(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_digital_twin_relationship(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, digital_twin_relationship_id, display_name, description, content, freeform_tags, defined_tags, if_match): - if isinstance(digital_twin_relationship_id, six.string_types) and len(digital_twin_relationship_id.strip()) == 0: + if isinstance(digital_twin_relationship_id, str) and len(digital_twin_relationship_id.strip()) == 0: raise click.UsageError('Parameter --digital-twin-relationship-id cannot be whitespace or empty string') if not force: if content or freeform_tags or defined_tags: @@ -3232,7 +3231,7 @@ def update_digital_twin_relationship(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_iot_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(iot_domain_id, six.string_types) and len(iot_domain_id.strip()) == 0: + if isinstance(iot_domain_id, str) and len(iot_domain_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3316,7 +3315,7 @@ def update_iot_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_iot_domain_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_domain_group_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(iot_domain_group_id, six.string_types) and len(iot_domain_group_id.strip()) == 0: + if isinstance(iot_domain_group_id, str) and len(iot_domain_group_id.strip()) == 0: raise click.UsageError('Parameter --iot-domain-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3403,7 +3402,7 @@ def update_iot_domain_group(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_iot_flow_runtime(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, iot_flow_runtime_id, display_name, description, scale, network_config, log_config, freeform_tags, defined_tags, if_match): - if isinstance(iot_flow_runtime_id, six.string_types) and len(iot_flow_runtime_id.strip()) == 0: + if isinstance(iot_flow_runtime_id, str) and len(iot_flow_runtime_id.strip()) == 0: raise click.UsageError('Parameter --iot-flow-runtime-id cannot be whitespace or empty string') if not force: if network_config or log_config or freeform_tags or defined_tags: @@ -3485,7 +3484,7 @@ def update_iot_flow_runtime(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_iot_flow_runtime_flows(ctx, from_json, iot_flow_runtime_id, flows_document, if_match): - if isinstance(iot_flow_runtime_id, six.string_types) and len(iot_flow_runtime_id.strip()) == 0: + if isinstance(iot_flow_runtime_id, str) and len(iot_flow_runtime_id.strip()) == 0: raise click.UsageError('Parameter --iot-flow-runtime-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/iot/src/oci_cli_iot/iot_cli_extended.py b/services/iot/src/oci_cli_iot/iot_cli_extended.py index 411e29469..5bde8e0f5 100644 --- a/services/iot/src/oci_cli_iot/iot_cli_extended.py +++ b/services/iot/src/oci_cli_iot/iot_cli_extended.py @@ -5,7 +5,6 @@ import click # noqa: F401 import json # noqa: F401 import oci -import six import sys from services.iot.src.oci_cli_iot.generated import iot_cli from oci_cli import cli_util # noqa: F401 @@ -92,7 +91,7 @@ class NullableAuthId(click.types.StringParamType): def convert(self, value, param, ctx): value = super(NullableAuthId, self).convert(value, param, ctx) - if isinstance(value, six.string_types) and value.lower() == 'null': + if isinstance(value, str) and value.lower() == 'null': return None return value @@ -116,7 +115,7 @@ def convert(self, value, param, ctx): @cli_util.wrap_exceptions def update_digital_twin_instance_extended(ctx, **kwargs): digital_twin_instance_id = kwargs['digital_twin_instance_id'] - if isinstance(digital_twin_instance_id, six.string_types) and not digital_twin_instance_id.strip(): + if isinstance(digital_twin_instance_id, str) and not digital_twin_instance_id.strip(): raise click.UsageError('Parameter --digital-twin-instance-id cannot be whitespace or empty string') if not kwargs['force'] and any( diff --git a/services/jms/src/oci_cli_java_management_service/generated/javamanagementservice_cli.py b/services/jms/src/oci_cli_java_management_service/generated/javamanagementservice_cli.py index 40288d793..b054b572c 100644 --- a/services/jms/src/oci_cli_java_management_service/generated/javamanagementservice_cli.py +++ b/services/jms/src/oci_cli_java_management_service/generated/javamanagementservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -349,7 +348,7 @@ def task_schedule_group(): @cli_util.wrap_exceptions def add_fleet_installation_sites(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, installation_sites, post_installation_actions, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -410,7 +409,7 @@ def add_fleet_installation_sites(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -439,7 +438,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_fleet_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, compartment_id, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -498,7 +497,7 @@ def change_fleet_compartment(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def create_blocklist(ctx, from_json, fleet_id, target, operation, reason): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -536,7 +535,7 @@ def create_blocklist(ctx, from_json, fleet_id, target, operation, reason): @cli_util.wrap_exceptions def create_drs_file(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, bucket_name, namespace, drs_file_name, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1318,10 +1317,10 @@ def create_task_schedule_add_installation_site_task_details(ctx, from_json, wait @cli_util.wrap_exceptions def delete_blocklist(ctx, from_json, fleet_id, blocklist_key, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(blocklist_key, six.string_types) and len(blocklist_key.strip()) == 0: + if isinstance(blocklist_key, str) and len(blocklist_key.strip()) == 0: raise click.UsageError('Parameter --blocklist-key cannot be whitespace or empty string') kwargs = {} @@ -1352,10 +1351,10 @@ def delete_blocklist(ctx, from_json, fleet_id, blocklist_key, if_match): @cli_util.wrap_exceptions def delete_crypto_analysis_result(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, crypto_analysis_result_id, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(crypto_analysis_result_id, six.string_types) and len(crypto_analysis_result_id.strip()) == 0: + if isinstance(crypto_analysis_result_id, str) and len(crypto_analysis_result_id.strip()) == 0: raise click.UsageError('Parameter --crypto-analysis-result-id cannot be whitespace or empty string') kwargs = {} @@ -1413,10 +1412,10 @@ def delete_crypto_analysis_result(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_drs_file(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, drs_file_key, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(drs_file_key, six.string_types) and len(drs_file_key.strip()) == 0: + if isinstance(drs_file_key, str) and len(drs_file_key.strip()) == 0: raise click.UsageError('Parameter --drs-file-key cannot be whitespace or empty string') kwargs = {} @@ -1473,7 +1472,7 @@ def delete_drs_file(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_fleet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1530,10 +1529,10 @@ def delete_fleet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_java_migration_analysis_result(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, java_migration_analysis_result_id, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(java_migration_analysis_result_id, six.string_types) and len(java_migration_analysis_result_id.strip()) == 0: + if isinstance(java_migration_analysis_result_id, str) and len(java_migration_analysis_result_id.strip()) == 0: raise click.UsageError('Parameter --java-migration-analysis-result-id cannot be whitespace or empty string') kwargs = {} @@ -1590,7 +1589,7 @@ def delete_java_migration_analysis_result(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def delete_jms_plugin(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, jms_plugin_id, if_match): - if isinstance(jms_plugin_id, six.string_types) and len(jms_plugin_id.strip()) == 0: + if isinstance(jms_plugin_id, str) and len(jms_plugin_id.strip()) == 0: raise click.UsageError('Parameter --jms-plugin-id cannot be whitespace or empty string') kwargs = {} @@ -1655,10 +1654,10 @@ def delete_jms_plugin(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_performance_tuning_analysis_result(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, performance_tuning_analysis_result_id, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(performance_tuning_analysis_result_id, six.string_types) and len(performance_tuning_analysis_result_id.strip()) == 0: + if isinstance(performance_tuning_analysis_result_id, str) and len(performance_tuning_analysis_result_id.strip()) == 0: raise click.UsageError('Parameter --performance-tuning-analysis-result-id cannot be whitespace or empty string') kwargs = {} @@ -1716,7 +1715,7 @@ def delete_performance_tuning_analysis_result(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def delete_task_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, task_schedule_id, fleet_id, if_match): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -1782,7 +1781,7 @@ def delete_task_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def disable_drs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, manage_drs_details, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1845,7 +1844,7 @@ def disable_drs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def enable_drs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, manage_drs_details, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -1907,7 +1906,7 @@ def enable_drs(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def generate_agent_deploy_script(ctx, from_json, file, fleet_id, install_key_id, os_family, is_user_name_enabled): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2015,7 +2014,7 @@ def generate_agent_installer_configuration(ctx, from_json, file, install_key_id, @cli_util.wrap_exceptions def generate_load_pipeline_script(ctx, from_json, file, fleet_id, target_bucket_name, target_bucket_namespace, target_bucket_region, interval_minutes): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2070,10 +2069,10 @@ def generate_load_pipeline_script(ctx, from_json, file, fleet_id, target_bucket_ @cli_util.wrap_exceptions def get_crypto_analysis_result(ctx, from_json, fleet_id, crypto_analysis_result_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(crypto_analysis_result_id, six.string_types) and len(crypto_analysis_result_id.strip()) == 0: + if isinstance(crypto_analysis_result_id, str) and len(crypto_analysis_result_id.strip()) == 0: raise click.UsageError('Parameter --crypto-analysis-result-id cannot be whitespace or empty string') kwargs = {} @@ -2098,10 +2097,10 @@ def get_crypto_analysis_result(ctx, from_json, fleet_id, crypto_analysis_result_ @cli_util.wrap_exceptions def get_drs_file(ctx, from_json, fleet_id, drs_file_key, page): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(drs_file_key, six.string_types) and len(drs_file_key.strip()) == 0: + if isinstance(drs_file_key, str) and len(drs_file_key.strip()) == 0: raise click.UsageError('Parameter --drs-file-key cannot be whitespace or empty string') kwargs = {} @@ -2126,7 +2125,7 @@ def get_drs_file(ctx, from_json, fleet_id, drs_file_key, page): @cli_util.wrap_exceptions def get_export_setting(ctx, from_json, fleet_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2148,7 +2147,7 @@ def get_export_setting(ctx, from_json, fleet_id): @cli_util.wrap_exceptions def get_export_status(ctx, from_json, fleet_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2170,7 +2169,7 @@ def get_export_status(ctx, from_json, fleet_id): @cli_util.wrap_exceptions def get_fleet(ctx, from_json, fleet_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2193,7 +2192,7 @@ def get_fleet(ctx, from_json, fleet_id): @cli_util.wrap_exceptions def get_fleet_advanced_feature_configuration(ctx, from_json, fleet_id, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2217,7 +2216,7 @@ def get_fleet_advanced_feature_configuration(ctx, from_json, fleet_id, if_match) @cli_util.wrap_exceptions def get_fleet_agent_configuration(ctx, from_json, fleet_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2239,7 +2238,7 @@ def get_fleet_agent_configuration(ctx, from_json, fleet_id): @cli_util.wrap_exceptions def get_java_family(ctx, from_json, family_version): - if isinstance(family_version, six.string_types) and len(family_version.strip()) == 0: + if isinstance(family_version, str) and len(family_version.strip()) == 0: raise click.UsageError('Parameter --family-version cannot be whitespace or empty string') kwargs = {} @@ -2262,10 +2261,10 @@ def get_java_family(ctx, from_json, family_version): @cli_util.wrap_exceptions def get_java_migration_analysis_result(ctx, from_json, fleet_id, java_migration_analysis_result_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(java_migration_analysis_result_id, six.string_types) and len(java_migration_analysis_result_id.strip()) == 0: + if isinstance(java_migration_analysis_result_id, str) and len(java_migration_analysis_result_id.strip()) == 0: raise click.UsageError('Parameter --java-migration-analysis-result-id cannot be whitespace or empty string') kwargs = {} @@ -2288,7 +2287,7 @@ def get_java_migration_analysis_result(ctx, from_json, fleet_id, java_migration_ @cli_util.wrap_exceptions def get_java_release(ctx, from_json, release_version): - if isinstance(release_version, six.string_types) and len(release_version.strip()) == 0: + if isinstance(release_version, str) and len(release_version.strip()) == 0: raise click.UsageError('Parameter --release-version cannot be whitespace or empty string') kwargs = {} @@ -2310,7 +2309,7 @@ def get_java_release(ctx, from_json, release_version): @cli_util.wrap_exceptions def get_jms_plugin(ctx, from_json, jms_plugin_id): - if isinstance(jms_plugin_id, six.string_types) and len(jms_plugin_id.strip()) == 0: + if isinstance(jms_plugin_id, str) and len(jms_plugin_id.strip()) == 0: raise click.UsageError('Parameter --jms-plugin-id cannot be whitespace or empty string') kwargs = {} @@ -2333,10 +2332,10 @@ def get_jms_plugin(ctx, from_json, jms_plugin_id): @cli_util.wrap_exceptions def get_performance_tuning_analysis_result(ctx, from_json, fleet_id, performance_tuning_analysis_result_id): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(performance_tuning_analysis_result_id, six.string_types) and len(performance_tuning_analysis_result_id.strip()) == 0: + if isinstance(performance_tuning_analysis_result_id, str) and len(performance_tuning_analysis_result_id.strip()) == 0: raise click.UsageError('Parameter --performance-tuning-analysis-result-id cannot be whitespace or empty string') kwargs = {} @@ -2360,7 +2359,7 @@ def get_performance_tuning_analysis_result(ctx, from_json, fleet_id, performance @cli_util.wrap_exceptions def get_task_schedule(ctx, from_json, task_schedule_id, fleet_id): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -2384,7 +2383,7 @@ def get_task_schedule(ctx, from_json, task_schedule_id, fleet_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2538,7 +2537,7 @@ def list_blocklists(ctx, from_json, all_pages, page_size, fleet_id, operation, m if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2606,7 +2605,7 @@ def list_containers(ctx, from_json, all_pages, page_size, fleet_id, managed_inst if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2686,7 +2685,7 @@ def list_crypto_analysis_results(ctx, from_json, all_pages, page_size, fleet_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2761,7 +2760,7 @@ def list_drs_files(ctx, from_json, all_pages, page_size, fleet_id, limit, page, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -2816,7 +2815,7 @@ def list_fleet_diagnoses(ctx, from_json, all_pages, page_size, fleet_id, limit, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -3016,7 +3015,7 @@ def list_installation_sites(ctx, from_json, all_pages, page_size, fleet_id, jre_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -3159,7 +3158,7 @@ def list_java_migration_analysis_results(ctx, from_json, all_pages, page_size, f if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -3449,10 +3448,10 @@ def list_library_application_usage(ctx, from_json, all_pages, page_size, fleet_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(library_key, six.string_types) and len(library_key.strip()) == 0: + if isinstance(library_key, str) and len(library_key.strip()) == 0: raise click.UsageError('Parameter --library-key cannot be whitespace or empty string') kwargs = {} @@ -3531,10 +3530,10 @@ def list_library_managed_instance_usage(ctx, from_json, all_pages, page_size, fl if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(library_key, six.string_types) and len(library_key.strip()) == 0: + if isinstance(library_key, str) and len(library_key.strip()) == 0: raise click.UsageError('Parameter --library-key cannot be whitespace or empty string') kwargs = {} @@ -3612,7 +3611,7 @@ def list_performance_tuning_analysis_results(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -3822,10 +3821,10 @@ def list_uncorrelated_package_application_usage(ctx, from_json, all_pages, page_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(package_name, six.string_types) and len(package_name.strip()) == 0: + if isinstance(package_name, str) and len(package_name.strip()) == 0: raise click.UsageError('Parameter --package-name cannot be whitespace or empty string') kwargs = {} @@ -3898,10 +3897,10 @@ def list_uncorrelated_package_managed_instance_usage(ctx, from_json, all_pages, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(package_name, six.string_types) and len(package_name.strip()) == 0: + if isinstance(package_name, str) and len(package_name.strip()) == 0: raise click.UsageError('Parameter --package-name cannot be whitespace or empty string') kwargs = {} @@ -3974,7 +3973,7 @@ def list_uncorrelated_package_usage(ctx, from_json, all_pages, page_size, fleet_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4039,7 +4038,7 @@ def list_work_items(ctx, from_json, all_pages, page_size, work_request_id, page, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4090,7 +4089,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4141,7 +4140,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4252,7 +4251,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, id, @cli_util.wrap_exceptions def remove_fleet_installation_sites(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, installation_sites, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4316,7 +4315,7 @@ def remove_fleet_installation_sites(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def request_crypto_analyses(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, targets, recording_duration_in_minutes, waiting_period_in_minutes): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4382,7 +4381,7 @@ def request_crypto_analyses(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def request_deployed_application_migration_analyses(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, targets): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4440,7 +4439,7 @@ def request_deployed_application_migration_analyses(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def request_java_migration_analyses(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, targets): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4506,7 +4505,7 @@ def request_java_migration_analyses(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def request_jfr_recordings(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, jfc_profile_name, targets, jfc_v1, jfc_v2, recording_duration_in_minutes, recording_size_in_mb, waiting_period_in_minutes): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4586,7 +4585,7 @@ def request_jfr_recordings(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def request_performance_tuning_analyses(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, recording_duration_in_minutes, targets, waiting_period_in_minutes): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4651,7 +4650,7 @@ def request_performance_tuning_analyses(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def scan_java_server_usage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, managed_instance_ids, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4716,7 +4715,7 @@ def scan_java_server_usage(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def scan_library_usage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, managed_instance_ids, is_dynamic_scan, dynamic_scan_duration_in_minutes, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4799,7 +4798,7 @@ def scan_library_usage(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def summarize_application_installation_usage(ctx, from_json, fleet_id, application_installation_key, application_id, display_name, display_name_contains, application_type, app_installation_path_contains, jre_vendor, jre_distribution, jre_version, installation_path, library_key, managed_instance_id, os_family, time_start, time_end, limit, page, sort_order, sort_by): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4877,7 +4876,7 @@ def summarize_application_installation_usage(ctx, from_json, fleet_id, applicati @cli_util.wrap_exceptions def summarize_application_usage(ctx, from_json, fleet_id, application_id, display_name, application_type, jre_vendor, jre_distribution, jre_version, installation_path, managed_instance_id, fields, time_start, time_end, limit, page, sort_order, sort_by, os_family, display_name_contains, library_key): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -4950,7 +4949,7 @@ def summarize_application_usage(ctx, from_json, fleet_id, application_id, displa @cli_util.wrap_exceptions def summarize_deployed_application_installation_usage(ctx, from_json, fleet_id, server_key, server_instance_key, managed_instance_id, application_installation_key, application_key, application_name_contains, application_name, application_source_path_contains, library_key, time_start, time_end, limit, page, sort_order, sort_by): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -5015,7 +5014,7 @@ def summarize_deployed_application_installation_usage(ctx, from_json, fleet_id, @cli_util.wrap_exceptions def summarize_deployed_application_usage(ctx, from_json, fleet_id, server_key, server_instance_key, managed_instance_id, library_key, application_key, application_name_contains, application_name, time_start, time_end, limit, page, sort_order, sort_by): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -5108,7 +5107,7 @@ def summarize_fleet_errors(ctx, from_json, compartment_id, compartment_id_in_sub @cli_util.wrap_exceptions def summarize_installation_usage(ctx, from_json, fleet_id, jre_vendor, jre_distribution, jre_version, installation_path, application_id, managed_instance_id, fields, time_start, time_end, limit, page, sort_order, sort_by, os_family, path_contains, jre_security_status): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -5175,7 +5174,7 @@ def summarize_installation_usage(ctx, from_json, fleet_id, jre_vendor, jre_distr @cli_util.wrap_exceptions def summarize_java_server_instance_usage(ctx, from_json, fleet_id, server_key, server_instance_key, managed_instance_id, application_key, library_key, server_instance_name_contains, server_instance_name, time_start, time_end, limit, page, sort_order, sort_by): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -5233,7 +5232,7 @@ def summarize_java_server_instance_usage(ctx, from_json, fleet_id, server_key, s @cli_util.wrap_exceptions def summarize_java_server_usage(ctx, from_json, fleet_id, server_key, server_name_contains, server_name, server_version, time_start, time_end, limit, page, sort_order, sort_by): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -5290,7 +5289,7 @@ def summarize_java_server_usage(ctx, from_json, fleet_id, server_key, server_nam @cli_util.wrap_exceptions def summarize_jre_usage(ctx, from_json, fleet_id, jre_id, jre_vendor, jre_distribution, jre_version, application_id, managed_instance_id, fields, time_start, time_end, limit, page, sort_order, sort_by, os_family, jre_security_status): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -5346,7 +5345,7 @@ def summarize_jre_usage(ctx, from_json, fleet_id, jre_id, jre_vendor, jre_distri @cli_util.wrap_exceptions def summarize_library_inventory(ctx, from_json, fleet_id, managed_instance_id, application_id, time_start, time_end): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -5390,7 +5389,7 @@ def summarize_library_inventory(ctx, from_json, fleet_id, managed_instance_id, a @cli_util.wrap_exceptions def summarize_library_usage(ctx, from_json, fleet_id, server_instance_key, managed_instance_id, application_key, library_key, library_name_contains, library_name, cvss_score_greater_than, cvss_score_less_than, time_start, time_end, limit, page, sort_order, sort_by): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -5457,7 +5456,7 @@ def summarize_library_usage(ctx, from_json, fleet_id, server_instance_key, manag @cli_util.wrap_exceptions def summarize_managed_instance_usage(ctx, from_json, fleet_id, managed_instance_id, managed_instance_type, jre_vendor, jre_distribution, jre_version, installation_path, application_id, fields, time_start, time_end, limit, page, sort_order, sort_by, os_family, hostname_contains, library_key): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') kwargs = {} @@ -5579,10 +5578,10 @@ def summarize_resource_inventory(ctx, from_json, compartment_id, compartment_id_ @cli_util.wrap_exceptions def update_drs_file(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, bucket_name, namespace, drs_file_name, drs_file_key, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') - if isinstance(drs_file_key, six.string_types) and len(drs_file_key.strip()) == 0: + if isinstance(drs_file_key, str) and len(drs_file_key.strip()) == 0: raise click.UsageError('Parameter --drs-file-key cannot be whitespace or empty string') kwargs = {} @@ -5652,7 +5651,7 @@ def update_drs_file(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def update_export_setting(ctx, from_json, force, fleet_id, is_enabled, export_duration, export_resources, is_cross_region_acknowledged, target_bucket_name, target_bucket_namespace, target_bucket_region, export_frequency, export_data_filters, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') if not force: if export_data_filters: @@ -5721,7 +5720,7 @@ def update_export_setting(ctx, from_json, force, fleet_id, is_enabled, export_du @cli_util.wrap_exceptions def update_fleet(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, display_name, description, inventory_log, operation_log, is_advanced_features_enabled, defined_tags, freeform_tags, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') if not force: if inventory_log or operation_log or defined_tags or freeform_tags: @@ -5811,7 +5810,7 @@ def update_fleet(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_fleet_advanced_feature_configuration(ctx, from_json, force, fleet_id, analytic_namespace, analytic_bucket_name, lcm, crypto_event_analysis, advanced_usage_tracking, jfr_recording, performance_tuning_analysis, java_migration_analysis, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') if not force: if lcm or crypto_event_analysis or advanced_usage_tracking or jfr_recording or performance_tuning_analysis or java_migration_analysis: @@ -5883,7 +5882,7 @@ def update_fleet_advanced_feature_configuration(ctx, from_json, force, fleet_id, @cli_util.wrap_exceptions def update_fleet_agent_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, jre_scan_frequency_in_minutes, java_usage_tracker_processing_frequency_in_minutes, work_request_validity_period_in_days, agent_polling_interval_in_minutes, is_collecting_managed_instance_metrics_enabled, is_collecting_usernames_enabled, is_capturing_ip_address_and_fqdn_enabled, is_libraries_scan_enabled, linux_configuration, windows_configuration, mac_os_configuration, if_match): - if isinstance(fleet_id, six.string_types) and len(fleet_id.strip()) == 0: + if isinstance(fleet_id, str) and len(fleet_id.strip()) == 0: raise click.UsageError('Parameter --fleet-id cannot be whitespace or empty string') if not force: if linux_configuration or windows_configuration or mac_os_configuration: @@ -5983,7 +5982,7 @@ def update_fleet_agent_configuration(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_jms_plugin(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, jms_plugin_id, fleet_id, defined_tags, freeform_tags, if_match): - if isinstance(jms_plugin_id, six.string_types) and len(jms_plugin_id.strip()) == 0: + if isinstance(jms_plugin_id, str) and len(jms_plugin_id.strip()) == 0: raise click.UsageError('Parameter --jms-plugin-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -6055,7 +6054,7 @@ def update_jms_plugin(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_task_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_details, task_schedule_id, if_match): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') if not force: if task_details: @@ -6120,7 +6119,7 @@ def update_task_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_task_schedule_deployed_application_migration_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_schedule_id, if_match, task_details_deployed_application_migration_task_request): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -6186,7 +6185,7 @@ def update_task_schedule_deployed_application_migration_task_details(ctx, from_j @cli_util.wrap_exceptions def update_task_schedule_remove_installation_site_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_schedule_id, if_match, task_details_remove_installation_site_task_request): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -6252,7 +6251,7 @@ def update_task_schedule_remove_installation_site_task_details(ctx, from_json, w @cli_util.wrap_exceptions def update_task_schedule_crypto_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_schedule_id, if_match, task_details_crypto_task_request): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -6318,7 +6317,7 @@ def update_task_schedule_crypto_task_details(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def update_task_schedule_java_migration_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_schedule_id, if_match, task_details_java_migration_task_request): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -6384,7 +6383,7 @@ def update_task_schedule_java_migration_task_details(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def update_task_schedule_scan_library_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_schedule_id, if_match, task_details_scan_library_task_request): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -6450,7 +6449,7 @@ def update_task_schedule_scan_library_task_details(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def update_task_schedule_performance_tuning_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_schedule_id, if_match, task_details_performance_tuning_task_request): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -6516,7 +6515,7 @@ def update_task_schedule_performance_tuning_task_details(ctx, from_json, wait_fo @cli_util.wrap_exceptions def update_task_schedule_scan_java_server_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_schedule_id, if_match, task_details_scan_java_server_task_request): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -6582,7 +6581,7 @@ def update_task_schedule_scan_java_server_task_details(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def update_task_schedule_jfr_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_schedule_id, if_match, task_details_jfr_task_request): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} @@ -6648,7 +6647,7 @@ def update_task_schedule_jfr_task_details(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def update_task_schedule_add_installation_site_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, fleet_id, execution_recurrences, task_schedule_id, if_match, task_details_add_installation_site_task_request): - if isinstance(task_schedule_id, six.string_types) and len(task_schedule_id.strip()) == 0: + if isinstance(task_schedule_id, str) and len(task_schedule_id.strip()) == 0: raise click.UsageError('Parameter --task-schedule-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/jms_java_downloads/src/oci_cli_java_download/generated/javadownload_cli.py b/services/jms_java_downloads/src/oci_cli_java_download/generated/javadownload_cli.py index 2b71d2696..0ec3bec37 100644 --- a/services/jms_java_downloads/src/oci_cli_java_download/generated/javadownload_cli.py +++ b/services/jms_java_downloads/src/oci_cli_java_download/generated/javadownload_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -105,7 +104,7 @@ def java_download_count_aggregation_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -349,7 +348,7 @@ def create_java_license_acceptance_record(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def delete_java_download_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, java_download_report_id, if_match): - if isinstance(java_download_report_id, six.string_types) and len(java_download_report_id.strip()) == 0: + if isinstance(java_download_report_id, str) and len(java_download_report_id.strip()) == 0: raise click.UsageError('Parameter --java-download-report-id cannot be whitespace or empty string') kwargs = {} @@ -405,7 +404,7 @@ def delete_java_download_report(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_java_download_token(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, java_download_token_id, if_match): - if isinstance(java_download_token_id, six.string_types) and len(java_download_token_id.strip()) == 0: + if isinstance(java_download_token_id, str) and len(java_download_token_id.strip()) == 0: raise click.UsageError('Parameter --java-download-token-id cannot be whitespace or empty string') kwargs = {} @@ -461,7 +460,7 @@ def delete_java_download_token(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_java_license_acceptance_record(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, java_license_acceptance_record_id, if_match): - if isinstance(java_license_acceptance_record_id, six.string_types) and len(java_license_acceptance_record_id.strip()) == 0: + if isinstance(java_license_acceptance_record_id, str) and len(java_license_acceptance_record_id.strip()) == 0: raise click.UsageError('Parameter --java-license-acceptance-record-id cannot be whitespace or empty string') kwargs = {} @@ -549,7 +548,7 @@ def generate_artifact_download_url(ctx, from_json, artifact_id, compartment_id): @cli_util.wrap_exceptions def get_java_download_report(ctx, from_json, java_download_report_id): - if isinstance(java_download_report_id, six.string_types) and len(java_download_report_id.strip()) == 0: + if isinstance(java_download_report_id, str) and len(java_download_report_id.strip()) == 0: raise click.UsageError('Parameter --java-download-report-id cannot be whitespace or empty string') kwargs = {} @@ -572,7 +571,7 @@ def get_java_download_report(ctx, from_json, java_download_report_id): @cli_util.wrap_exceptions def get_java_download_report_content(ctx, from_json, file, java_download_report_id): - if isinstance(java_download_report_id, six.string_types) and len(java_download_report_id.strip()) == 0: + if isinstance(java_download_report_id, str) and len(java_download_report_id.strip()) == 0: raise click.UsageError('Parameter --java-download-report-id cannot be whitespace or empty string') kwargs = {} @@ -616,7 +615,7 @@ def get_java_download_report_content(ctx, from_json, file, java_download_report_ @cli_util.wrap_exceptions def get_java_download_token(ctx, from_json, java_download_token_id): - if isinstance(java_download_token_id, six.string_types) and len(java_download_token_id.strip()) == 0: + if isinstance(java_download_token_id, str) and len(java_download_token_id.strip()) == 0: raise click.UsageError('Parameter --java-download-token-id cannot be whitespace or empty string') kwargs = {} @@ -638,7 +637,7 @@ def get_java_download_token(ctx, from_json, java_download_token_id): @cli_util.wrap_exceptions def get_java_license(ctx, from_json, license_type): - if isinstance(license_type, six.string_types) and len(license_type.strip()) == 0: + if isinstance(license_type, str) and len(license_type.strip()) == 0: raise click.UsageError('Parameter --license-type cannot be whitespace or empty string') kwargs = {} @@ -660,7 +659,7 @@ def get_java_license(ctx, from_json, license_type): @cli_util.wrap_exceptions def get_java_license_acceptance_record(ctx, from_json, java_license_acceptance_record_id): - if isinstance(java_license_acceptance_record_id, six.string_types) and len(java_license_acceptance_record_id.strip()) == 0: + if isinstance(java_license_acceptance_record_id, str) and len(java_license_acceptance_record_id.strip()) == 0: raise click.UsageError('Parameter --java-license-acceptance-record-id cannot be whitespace or empty string') kwargs = {} @@ -682,7 +681,7 @@ def get_java_license_acceptance_record(ctx, from_json, java_license_acceptance_r @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1045,7 +1044,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1102,7 +1101,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1284,7 +1283,7 @@ def request_summarized_java_download_counts(ctx, from_json, compartment_id, grou @cli_util.wrap_exceptions def update_java_download_token(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, java_download_token_id, display_name, description, is_default, time_expires, license_type, freeform_tags, defined_tags, if_match): - if isinstance(java_download_token_id, six.string_types) and len(java_download_token_id.strip()) == 0: + if isinstance(java_download_token_id, str) and len(java_download_token_id.strip()) == 0: raise click.UsageError('Parameter --java-download-token-id cannot be whitespace or empty string') if not force: if license_type or freeform_tags or defined_tags: @@ -1372,7 +1371,7 @@ def update_java_download_token(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_java_license_acceptance_record(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, java_license_acceptance_record_id, license_acceptance_status, freeform_tags, defined_tags, if_match): - if isinstance(java_license_acceptance_record_id, six.string_types) and len(java_license_acceptance_record_id.strip()) == 0: + if isinstance(java_license_acceptance_record_id, str) and len(java_license_acceptance_record_id.strip()) == 0: raise click.UsageError('Parameter --java-license-acceptance-record-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/jms_utils/src/oci_cli_jms_utils/generated/jmsutils_cli.py b/services/jms_utils/src/oci_cli_jms_utils/generated/jmsutils_cli.py index f6ffbc54e..23920626b 100644 --- a/services/jms_utils/src/oci_cli_jms_utils/generated/jmsutils_cli.py +++ b/services/jms_utils/src/oci_cli_jms_utils/generated/jmsutils_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -91,7 +90,7 @@ def subscription_acknowledgment_configuration_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -117,7 +116,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def delete_java_migration_analysis(ctx, from_json, java_migration_analysis_id, if_match): - if isinstance(java_migration_analysis_id, six.string_types) and len(java_migration_analysis_id.strip()) == 0: + if isinstance(java_migration_analysis_id, str) and len(java_migration_analysis_id.strip()) == 0: raise click.UsageError('Parameter --java-migration-analysis-id cannot be whitespace or empty string') kwargs = {} @@ -143,7 +142,7 @@ def delete_java_migration_analysis(ctx, from_json, java_migration_analysis_id, i @cli_util.wrap_exceptions def delete_performance_tuning_analysis(ctx, from_json, performance_tuning_analysis_id, if_match): - if isinstance(performance_tuning_analysis_id, six.string_types) and len(performance_tuning_analysis_id.strip()) == 0: + if isinstance(performance_tuning_analysis_id, str) and len(performance_tuning_analysis_id.strip()) == 0: raise click.UsageError('Parameter --performance-tuning-analysis-id cannot be whitespace or empty string') kwargs = {} @@ -187,7 +186,7 @@ def get_analyze_applications_configuration(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_java_migration_analysis(ctx, from_json, java_migration_analysis_id): - if isinstance(java_migration_analysis_id, six.string_types) and len(java_migration_analysis_id.strip()) == 0: + if isinstance(java_migration_analysis_id, str) and len(java_migration_analysis_id.strip()) == 0: raise click.UsageError('Parameter --java-migration-analysis-id cannot be whitespace or empty string') kwargs = {} @@ -209,7 +208,7 @@ def get_java_migration_analysis(ctx, from_json, java_migration_analysis_id): @cli_util.wrap_exceptions def get_performance_tuning_analysis(ctx, from_json, performance_tuning_analysis_id): - if isinstance(performance_tuning_analysis_id, six.string_types) and len(performance_tuning_analysis_id.strip()) == 0: + if isinstance(performance_tuning_analysis_id, str) and len(performance_tuning_analysis_id.strip()) == 0: raise click.UsageError('Parameter --performance-tuning-analysis-id cannot be whitespace or empty string') kwargs = {} @@ -251,7 +250,7 @@ def get_subscription_acknowledgment_configuration(ctx, from_json, compartment_id @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -401,7 +400,7 @@ def list_work_items(ctx, from_json, all_pages, page_size, work_request_id, page, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -454,7 +453,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -511,7 +510,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/key_management/src/oci_cli_ekm/generated/ekm_cli.py b/services/key_management/src/oci_cli_ekm/generated/ekm_cli.py index fc05ffc5b..d3e4239b3 100644 --- a/services/key_management/src/oci_cli_ekm/generated/ekm_cli.py +++ b/services/key_management/src/oci_cli_ekm/generated/ekm_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -115,7 +114,7 @@ def create_ekms_private_endpoint(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_ekms_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ekms_private_endpoint_id, if_match): - if isinstance(ekms_private_endpoint_id, six.string_types) and len(ekms_private_endpoint_id.strip()) == 0: + if isinstance(ekms_private_endpoint_id, str) and len(ekms_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --ekms-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -174,7 +173,7 @@ def delete_ekms_private_endpoint(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def get_ekms_private_endpoint(ctx, from_json, ekms_private_endpoint_id): - if isinstance(ekms_private_endpoint_id, six.string_types) and len(ekms_private_endpoint_id.strip()) == 0: + if isinstance(ekms_private_endpoint_id, str) and len(ekms_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --ekms-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -258,7 +257,7 @@ def list_ekms_private_endpoints(ctx, from_json, all_pages, page_size, compartmen @cli_util.wrap_exceptions def update_ekms_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ekms_private_endpoint_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(ekms_private_endpoint_id, six.string_types) and len(ekms_private_endpoint_id.strip()) == 0: + if isinstance(ekms_private_endpoint_id, str) and len(ekms_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --ekms-private-endpoint-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/key_management/src/oci_cli_kms_crypto/generated/kmscrypto_cli.py b/services/key_management/src/oci_cli_kms_crypto/generated/kmscrypto_cli.py index f54e253d2..2b4fa7732 100644 --- a/services/key_management/src/oci_cli_kms_crypto/generated/kmscrypto_cli.py +++ b/services/key_management/src/oci_cli_kms_crypto/generated/kmscrypto_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/key_management/src/oci_cli_kms_hsm_cluster/generated/kmshsmcluster_cli.py b/services/key_management/src/oci_cli_kms_hsm_cluster/generated/kmshsmcluster_cli.py index 925b98288..45f44299d 100644 --- a/services/key_management/src/oci_cli_kms_hsm_cluster/generated/kmshsmcluster_cli.py +++ b/services/key_management/src/oci_cli_kms_hsm_cluster/generated/kmshsmcluster_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -52,7 +51,7 @@ def hsm_partition_group(): @cli_util.wrap_exceptions def cancel_hsm_cluster_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, hsm_cluster_id, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -101,7 +100,7 @@ def cancel_hsm_cluster_deletion(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def change_hsm_cluster_compartment(ctx, from_json, hsm_cluster_id, compartment_id, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -194,7 +193,7 @@ def create_hsm_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def disable_audit_mgmt_logging(ctx, from_json, hsm_cluster_id, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -219,7 +218,7 @@ def disable_audit_mgmt_logging(ctx, from_json, hsm_cluster_id, if_match): @cli_util.wrap_exceptions def download_certificate_signing_request(ctx, from_json, hsm_cluster_id, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -244,7 +243,7 @@ def download_certificate_signing_request(ctx, from_json, hsm_cluster_id, if_matc @cli_util.wrap_exceptions def enable_audit_mgmt_logging(ctx, from_json, hsm_cluster_id, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -270,7 +269,7 @@ def enable_audit_mgmt_logging(ctx, from_json, hsm_cluster_id, if_match): @cli_util.wrap_exceptions def get_hsm_cluster(ctx, from_json, hsm_cluster_id): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -293,10 +292,10 @@ def get_hsm_cluster(ctx, from_json, hsm_cluster_id): @cli_util.wrap_exceptions def get_hsm_partition(ctx, from_json, hsm_cluster_id, hsm_partition_id): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') - if isinstance(hsm_partition_id, six.string_types) and len(hsm_partition_id.strip()) == 0: + if isinstance(hsm_partition_id, str) and len(hsm_partition_id.strip()) == 0: raise click.UsageError('Parameter --hsm-partition-id cannot be whitespace or empty string') kwargs = {} @@ -319,7 +318,7 @@ def get_hsm_partition(ctx, from_json, hsm_cluster_id, hsm_partition_id): @cli_util.wrap_exceptions def get_pre_co_user_credentials(ctx, from_json, hsm_cluster_id): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -345,7 +344,7 @@ def get_pre_co_user_credentials(ctx, from_json, hsm_cluster_id): @cli_util.wrap_exceptions def initiate_audit_logging(ctx, from_json, hsm_cluster_id, bucket_name, namespace, compartment_id, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -442,7 +441,7 @@ def list_hsm_partitions(ctx, from_json, all_pages, page_size, hsm_cluster_id, li if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -497,7 +496,7 @@ def list_hsm_partitions(ctx, from_json, all_pages, page_size, hsm_cluster_id, li @cli_util.wrap_exceptions def schedule_hsm_cluster_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, hsm_cluster_id, time_of_deletion, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -555,7 +554,7 @@ def schedule_hsm_cluster_deletion(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_audit_logging_destination(ctx, from_json, hsm_cluster_id, bucket_name, namespace, compartment_id, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -596,7 +595,7 @@ def update_audit_logging_destination(ctx, from_json, hsm_cluster_id, bucket_name @cli_util.wrap_exceptions def update_hsm_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, hsm_cluster_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -663,7 +662,7 @@ def update_hsm_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def upload_partition_certificates(ctx, from_json, hsm_cluster_id, partition_certificate, partition_owner_certificate, if_match): - if isinstance(hsm_cluster_id, six.string_types) and len(hsm_cluster_id.strip()) == 0: + if isinstance(hsm_cluster_id, str) and len(hsm_cluster_id.strip()) == 0: raise click.UsageError('Parameter --hsm-cluster-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/key_management/src/oci_cli_kms_management/generated/kmsmanagement_cli.py b/services/key_management/src/oci_cli_kms_management/generated/kmsmanagement_cli.py index d47fa2851..a6fc58a9d 100644 --- a/services/key_management/src/oci_cli_kms_management/generated/kmsmanagement_cli.py +++ b/services/key_management/src/oci_cli_kms_management/generated/kmsmanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -69,7 +68,7 @@ def replication_status_details_group(): @cli_util.wrap_exceptions def backup_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, if_match, backup_location): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -132,7 +131,7 @@ def backup_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def backup_key_backup_location_bucket(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, backup_location_namespace, backup_location_bucket_name, backup_location_object_name, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -196,7 +195,7 @@ def backup_key_backup_location_bucket(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def backup_key_backup_location_uri(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, backup_location_uri, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -259,7 +258,7 @@ def backup_key_backup_location_uri(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def cancel_key_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -315,10 +314,10 @@ def cancel_key_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def cancel_key_version_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, key_version_id, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') - if isinstance(key_version_id, six.string_types) and len(key_version_id.strip()) == 0: + if isinstance(key_version_id, str) and len(key_version_id.strip()) == 0: raise click.UsageError('Parameter --key-version-id cannot be whitespace or empty string') kwargs = {} @@ -374,7 +373,7 @@ def cancel_key_version_deletion(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def change_key_compartment(ctx, from_json, key_id, compartment_id, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -492,7 +491,7 @@ def create_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def create_key_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, external_key_version_id): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -552,7 +551,7 @@ def create_key_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def disable_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -607,7 +606,7 @@ def disable_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def enable_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -658,7 +657,7 @@ def enable_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def get_key(ctx, from_json, key_id): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -685,10 +684,10 @@ def get_key(ctx, from_json, key_id): @cli_util.wrap_exceptions def get_key_version(ctx, from_json, key_id, key_version_id): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') - if isinstance(key_version_id, six.string_types) and len(key_version_id.strip()) == 0: + if isinstance(key_version_id, str) and len(key_version_id.strip()) == 0: raise click.UsageError('Parameter --key-version-id cannot be whitespace or empty string') kwargs = {} @@ -713,7 +712,7 @@ def get_key_version(ctx, from_json, key_id, key_version_id): @cli_util.wrap_exceptions def get_replication_status(ctx, from_json, replication_id): - if isinstance(replication_id, six.string_types) and len(replication_id.strip()) == 0: + if isinstance(replication_id, str) and len(replication_id.strip()) == 0: raise click.UsageError('Parameter --replication-id cannot be whitespace or empty string') kwargs = {} @@ -810,7 +809,7 @@ def import_key(ctx, from_json, compartment_id, display_name, key_shape, wrapped_ @cli_util.wrap_exceptions def import_key_version(ctx, from_json, key_id, wrapped_import_key, defined_tags, freeform_tags): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -856,7 +855,7 @@ def list_key_versions(ctx, from_json, all_pages, page_size, key_id, limit, page, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -1113,7 +1112,7 @@ def restore_key_from_object_store_backup_location_uri(ctx, from_json, backup_loc @cli_util.wrap_exceptions def schedule_key_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, time_of_deletion, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -1177,10 +1176,10 @@ def schedule_key_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def schedule_key_version_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, key_version_id, time_of_deletion, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') - if isinstance(key_version_id, six.string_types) and len(key_version_id.strip()) == 0: + if isinstance(key_version_id, str) and len(key_version_id.strip()) == 0: raise click.UsageError('Parameter --key-version-id cannot be whitespace or empty string') kwargs = {} @@ -1249,7 +1248,7 @@ def schedule_key_version_deletion(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_key(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, is_auto_rotation_enabled, auto_key_rotation_details, defined_tags, display_name, freeform_tags, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') if not force: if auto_key_rotation_details or defined_tags or freeform_tags: diff --git a/services/key_management/src/oci_cli_kms_management/kms_management_cli_extended.py b/services/key_management/src/oci_cli_kms_management/kms_management_cli_extended.py index f322c63ec..93d8edc04 100644 --- a/services/key_management/src/oci_cli_kms_management/kms_management_cli_extended.py +++ b/services/key_management/src/oci_cli_kms_management/kms_management_cli_extended.py @@ -4,7 +4,6 @@ import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from services.key_management.src.oci_cli_kms_management.generated import kmsmanagement_cli from oci_cli import cli_util @@ -150,7 +149,7 @@ def restore_from_file(ctx, **kwargs): @cli_util.wrap_exceptions def create_key_version_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, external_key_version_id): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') kwargs = {} @@ -205,10 +204,10 @@ def create_key_version_extended(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def schedule_key_version_deletion_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, key_version_id, time_of_deletion, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') - if isinstance(key_version_id, six.string_types) and len(key_version_id.strip()) == 0: + if isinstance(key_version_id, str) and len(key_version_id.strip()) == 0: raise click.UsageError('Parameter --key-version-id cannot be whitespace or empty string') kwargs = {} @@ -265,10 +264,10 @@ def schedule_key_version_deletion_extended(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def cancel_key_version_deletion_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, key_id, key_version_id, if_match): - if isinstance(key_id, six.string_types) and len(key_id.strip()) == 0: + if isinstance(key_id, str) and len(key_id.strip()) == 0: raise click.UsageError('Parameter --key-id cannot be whitespace or empty string') - if isinstance(key_version_id, six.string_types) and len(key_version_id.strip()) == 0: + if isinstance(key_version_id, str) and len(key_version_id.strip()) == 0: raise click.UsageError('Parameter --key-version-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/key_management/src/oci_cli_kms_vault/generated/kmsvault_cli.py b/services/key_management/src/oci_cli_kms_vault/generated/kmsvault_cli.py index 56fdc2bc4..4face25c0 100644 --- a/services/key_management/src/oci_cli_kms_vault/generated/kmsvault_cli.py +++ b/services/key_management/src/oci_cli_kms_vault/generated/kmsvault_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -61,7 +60,7 @@ def vault_group(): @cli_util.wrap_exceptions def backup_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vault_id, if_match, backup_location, is_include_keys): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -126,7 +125,7 @@ def backup_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def backup_vault_backup_location_bucket(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vault_id, backup_location_namespace, backup_location_bucket_name, backup_location_object_name, if_match, is_include_keys): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -192,7 +191,7 @@ def backup_vault_backup_location_bucket(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def backup_vault_backup_location_uri(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vault_id, backup_location_uri, if_match, is_include_keys): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -256,7 +255,7 @@ def backup_vault_backup_location_uri(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def cancel_vault_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vault_id, if_match): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -309,7 +308,7 @@ def cancel_vault_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def change_vault_compartment(ctx, from_json, vault_id, compartment_id, if_match): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -412,7 +411,7 @@ def create_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def create_vault_replica(ctx, from_json, vault_id, replica_region, replica_vault_metadata, if_match): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -452,7 +451,7 @@ def create_vault_replica(ctx, from_json, vault_id, replica_region, replica_vault @cli_util.wrap_exceptions def create_vault_replica_replica_external_vault_metadata(ctx, from_json, vault_id, replica_region, replica_vault_metadata_private_endpoint_id, replica_vault_metadata_idcs_account_name_url, if_match): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -490,7 +489,7 @@ def create_vault_replica_replica_external_vault_metadata(ctx, from_json, vault_i @cli_util.wrap_exceptions def delete_vault_replica(ctx, from_json, vault_id, replica_region, if_match): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -521,7 +520,7 @@ def delete_vault_replica(ctx, from_json, vault_id, replica_region, if_match): @cli_util.wrap_exceptions def get_vault(ctx, from_json, vault_id): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -543,7 +542,7 @@ def get_vault(ctx, from_json, vault_id): @cli_util.wrap_exceptions def get_vault_usage(ctx, from_json, vault_id): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -577,7 +576,7 @@ def list_vault_replicas(ctx, from_json, all_pages, page_size, vault_id, if_match if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -820,7 +819,7 @@ def restore_vault_from_object_store_backup_location_uri(ctx, from_json, compartm @cli_util.wrap_exceptions def schedule_vault_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vault_id, time_of_deletion, if_match): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -876,7 +875,7 @@ def schedule_vault_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_registered_vault_for_mtls(ctx, from_json, vault_id, fleet_id, if_match): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') kwargs = {} @@ -915,7 +914,7 @@ def update_registered_vault_for_mtls(ctx, from_json, vault_id, fleet_id, if_matc @cli_util.wrap_exceptions def update_vault(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vault_id, defined_tags, display_name, freeform_tags, if_match): - if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0: + if isinstance(vault_id, str) and len(vault_id.strip()) == 0: raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: diff --git a/services/license_manager/src/oci_cli_license_manager/generated/licensemanager_cli.py b/services/license_manager/src/oci_cli_license_manager/generated/licensemanager_cli.py index 3c026510c..db4cf4af7 100644 --- a/services/license_manager/src/oci_cli_license_manager/generated/licensemanager_cli.py +++ b/services/license_manager/src/oci_cli_license_manager/generated/licensemanager_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -294,7 +293,7 @@ def create_product_license(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_license_record(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, license_record_id, if_match): - if isinstance(license_record_id, six.string_types) and len(license_record_id.strip()) == 0: + if isinstance(license_record_id, str) and len(license_record_id.strip()) == 0: raise click.UsageError('Parameter --license-record-id cannot be whitespace or empty string') kwargs = {} @@ -358,7 +357,7 @@ def delete_license_record(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_product_license(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, product_license_id, if_match): - if isinstance(product_license_id, six.string_types) and len(product_license_id.strip()) == 0: + if isinstance(product_license_id, str) and len(product_license_id.strip()) == 0: raise click.UsageError('Parameter --product-license-id cannot be whitespace or empty string') kwargs = {} @@ -475,7 +474,7 @@ def get_license_metric(ctx, from_json, compartment_id, is_compartment_id_in_subt @cli_util.wrap_exceptions def get_license_record(ctx, from_json, license_record_id): - if isinstance(license_record_id, six.string_types) and len(license_record_id.strip()) == 0: + if isinstance(license_record_id, str) and len(license_record_id.strip()) == 0: raise click.UsageError('Parameter --license-record-id cannot be whitespace or empty string') kwargs = {} @@ -497,7 +496,7 @@ def get_license_record(ctx, from_json, license_record_id): @cli_util.wrap_exceptions def get_product_license(ctx, from_json, product_license_id): - if isinstance(product_license_id, six.string_types) and len(product_license_id.strip()) == 0: + if isinstance(product_license_id, str) and len(product_license_id.strip()) == 0: raise click.UsageError('Parameter --product-license-id cannot be whitespace or empty string') kwargs = {} @@ -875,7 +874,7 @@ def update_configuration(ctx, from_json, force, compartment_id, email_ids, if_ma @cli_util.wrap_exceptions def update_license_record(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, license_record_id, display_name, is_perpetual, is_unlimited, expiration_date, support_end_date, license_count, product_id, freeform_tags, defined_tags, if_match): - if isinstance(license_record_id, six.string_types) and len(license_record_id.strip()) == 0: + if isinstance(license_record_id, str) and len(license_record_id.strip()) == 0: raise click.UsageError('Parameter --license-record-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -959,7 +958,7 @@ def update_license_record(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_product_license(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, product_license_id, images, freeform_tags, defined_tags, if_match): - if isinstance(product_license_id, six.string_types) and len(product_license_id.strip()) == 0: + if isinstance(product_license_id, str) and len(product_license_id.strip()) == 0: raise click.UsageError('Parameter --product-license-id cannot be whitespace or empty string') if not force: if images or freeform_tags or defined_tags: diff --git a/services/limits/src/oci_cli_limits/generated/limits_cli.py b/services/limits/src/oci_cli_limits/generated/limits_cli.py index c2b396c84..4c7136983 100644 --- a/services/limits/src/oci_cli_limits/generated/limits_cli.py +++ b/services/limits/src/oci_cli_limits/generated/limits_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -73,10 +72,10 @@ def resource_availability_group(): @cli_util.wrap_exceptions def get_resource_availability(ctx, from_json, service_name, limit_name, compartment_id, availability_domain, subscription_id, external_location): - if isinstance(service_name, six.string_types) and len(service_name.strip()) == 0: + if isinstance(service_name, str) and len(service_name.strip()) == 0: raise click.UsageError('Parameter --service-name cannot be whitespace or empty string') - if isinstance(limit_name, six.string_types) and len(limit_name.strip()) == 0: + if isinstance(limit_name, str) and len(limit_name.strip()) == 0: raise click.UsageError('Parameter --limit-name cannot be whitespace or empty string') kwargs = {} diff --git a/services/limits/src/oci_cli_quotas/generated/quotas_cli.py b/services/limits/src/oci_cli_quotas/generated/quotas_cli.py index 55f6d172c..8447fb6c7 100644 --- a/services/limits/src/oci_cli_quotas/generated/quotas_cli.py +++ b/services/limits/src/oci_cli_quotas/generated/quotas_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -48,7 +47,7 @@ def quota_group(): @cli_util.wrap_exceptions def add_quota_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, quota_id, type, related_resource_id, message, if_match): - if isinstance(quota_id, six.string_types) and len(quota_id.strip()) == 0: + if isinstance(quota_id, str) and len(quota_id.strip()) == 0: raise click.UsageError('Parameter --quota-id cannot be whitespace or empty string') kwargs = {} @@ -181,7 +180,7 @@ def create_quota(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_quota(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, quota_id, if_match, is_lock_override): - if isinstance(quota_id, six.string_types) and len(quota_id.strip()) == 0: + if isinstance(quota_id, str) and len(quota_id.strip()) == 0: raise click.UsageError('Parameter --quota-id cannot be whitespace or empty string') kwargs = {} @@ -242,7 +241,7 @@ def delete_quota(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def get_quota(ctx, from_json, quota_id): - if isinstance(quota_id, six.string_types) and len(quota_id.strip()) == 0: + if isinstance(quota_id, str) and len(quota_id.strip()) == 0: raise click.UsageError('Parameter --quota-id cannot be whitespace or empty string') kwargs = {} @@ -329,7 +328,7 @@ def list_quotas(ctx, from_json, all_pages, page_size, compartment_id, page, limi @cli_util.wrap_exceptions def remove_quota_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, quota_id, type, if_match): - if isinstance(quota_id, six.string_types) and len(quota_id.strip()) == 0: + if isinstance(quota_id, str) and len(quota_id.strip()) == 0: raise click.UsageError('Parameter --quota-id cannot be whitespace or empty string') kwargs = {} @@ -391,7 +390,7 @@ def remove_quota_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_quota(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, quota_id, description, statements, freeform_tags, defined_tags, if_match, is_lock_override): - if isinstance(quota_id, six.string_types) and len(quota_id.strip()) == 0: + if isinstance(quota_id, str) and len(quota_id.strip()) == 0: raise click.UsageError('Parameter --quota-id cannot be whitespace or empty string') if not force: if statements or freeform_tags or defined_tags: diff --git a/services/limits_increase/src/oci_cli_limits_increase/generated/limitsincrease_cli.py b/services/limits_increase/src/oci_cli_limits_increase/generated/limitsincrease_cli.py index 17250c04c..88e4217c0 100644 --- a/services/limits_increase/src/oci_cli_limits_increase/generated/limitsincrease_cli.py +++ b/services/limits_increase/src/oci_cli_limits_increase/generated/limitsincrease_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -67,7 +66,7 @@ def limits_increase_question_collection_group(): @cli_util.wrap_exceptions def cancel_limits_increase_item_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, limits_increase_item_request_id, if_match): - if isinstance(limits_increase_item_request_id, six.string_types) and len(limits_increase_item_request_id.strip()) == 0: + if isinstance(limits_increase_item_request_id, str) and len(limits_increase_item_request_id.strip()) == 0: raise click.UsageError('Parameter --limits-increase-item-request-id cannot be whitespace or empty string') kwargs = {} @@ -118,7 +117,7 @@ def cancel_limits_increase_item_request(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def cancel_limits_increase_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, limits_increase_request_id, if_match): - if isinstance(limits_increase_request_id, six.string_types) and len(limits_increase_request_id.strip()) == 0: + if isinstance(limits_increase_request_id, str) and len(limits_increase_request_id.strip()) == 0: raise click.UsageError('Parameter --limits-increase-request-id cannot be whitespace or empty string') kwargs = {} @@ -237,7 +236,7 @@ def create_limits_increase_request(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_limits_increase_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, limits_increase_request_id, if_match): - if isinstance(limits_increase_request_id, six.string_types) and len(limits_increase_request_id.strip()) == 0: + if isinstance(limits_increase_request_id, str) and len(limits_increase_request_id.strip()) == 0: raise click.UsageError('Parameter --limits-increase-request-id cannot be whitespace or empty string') kwargs = {} @@ -296,7 +295,7 @@ def delete_limits_increase_request(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def get_limits_increase_item_request(ctx, from_json, limits_increase_item_request_id): - if isinstance(limits_increase_item_request_id, six.string_types) and len(limits_increase_item_request_id.strip()) == 0: + if isinstance(limits_increase_item_request_id, str) and len(limits_increase_item_request_id.strip()) == 0: raise click.UsageError('Parameter --limits-increase-item-request-id cannot be whitespace or empty string') kwargs = {} @@ -318,7 +317,7 @@ def get_limits_increase_item_request(ctx, from_json, limits_increase_item_reques @cli_util.wrap_exceptions def get_limits_increase_request(ctx, from_json, limits_increase_request_id): - if isinstance(limits_increase_request_id, six.string_types) and len(limits_increase_request_id.strip()) == 0: + if isinstance(limits_increase_request_id, str) and len(limits_increase_request_id.strip()) == 0: raise click.UsageError('Parameter --limits-increase-request-id cannot be whitespace or empty string') kwargs = {} @@ -527,7 +526,7 @@ def list_limits_increase_requests(ctx, from_json, all_pages, page_size, compartm @cli_util.wrap_exceptions def patch_limits_increase_request(ctx, from_json, limits_increase_request_id, items, if_match): - if isinstance(limits_increase_request_id, six.string_types) and len(limits_increase_request_id.strip()) == 0: + if isinstance(limits_increase_request_id, str) and len(limits_increase_request_id.strip()) == 0: raise click.UsageError('Parameter --limits-increase-request-id cannot be whitespace or empty string') kwargs = {} @@ -565,7 +564,7 @@ def patch_limits_increase_request(ctx, from_json, limits_increase_request_id, it @cli_util.wrap_exceptions def update_limits_increase_request(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, limits_increase_request_id, freeform_tags, defined_tags, if_match): - if isinstance(limits_increase_request_id, six.string_types) and len(limits_increase_request_id.strip()) == 0: + if isinstance(limits_increase_request_id, str) and len(limits_increase_request_id.strip()) == 0: raise click.UsageError('Parameter --limits-increase-request-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/load_balancer/src/oci_cli_load_balancer/generated/loadbalancer_cli.py b/services/load_balancer/src/oci_cli_load_balancer/generated/loadbalancer_cli.py index 360ec309a..3737402e7 100644 --- a/services/load_balancer/src/oci_cli_load_balancer/generated/loadbalancer_cli.py +++ b/services/load_balancer/src/oci_cli_load_balancer/generated/loadbalancer_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -251,7 +250,7 @@ def network_security_groups_group(): @cli_util.wrap_exceptions def change_load_balancer_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, compartment_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -345,10 +344,10 @@ def change_load_balancer_compartment(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def create_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, ip_address, port, load_balancer_id, backend_set_name, weight, max_connections, backup, drain, offline, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -451,7 +450,7 @@ def create_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def create_backend_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, name, policy, health_checker, load_balancer_id, backends, backend_max_connections, ssl_configuration, session_persistence_configuration, lb_cookie_session_persistence_configuration, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -553,7 +552,7 @@ def create_backend_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def create_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_name, load_balancer_id, passphrase, private_key, public_certificate, ca_certificate, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -637,7 +636,7 @@ def create_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def create_hostname(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, name, hostname, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -730,7 +729,7 @@ def create_hostname(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def create_listener(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, default_backend_set_name, port, protocol, name, load_balancer_id, hostname_names, path_route_set_name, ssl_configuration, connection_configuration, routing_policy_name, rule_set_names, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1046,7 +1045,7 @@ def create_load_balancer(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def create_path_route_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, name, path_routes, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1118,7 +1117,7 @@ def create_path_route_set(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def create_routing_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, name, condition_language_version, rules, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1190,7 +1189,7 @@ def create_routing_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def create_rule_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, name, items, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1281,7 +1280,7 @@ def create_rule_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def create_ssl_cipher_suite(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, name, ciphers, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1355,13 +1354,13 @@ def create_ssl_cipher_suite(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, backend_set_name, backend_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') - if isinstance(backend_name, six.string_types) and len(backend_name.strip()) == 0: + if isinstance(backend_name, str) and len(backend_name.strip()) == 0: raise click.UsageError('Parameter --backend-name cannot be whitespace or empty string') kwargs = {} @@ -1430,10 +1429,10 @@ def delete_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_backend_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, backend_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -1499,10 +1498,10 @@ def delete_backend_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, certificate_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(certificate_name, six.string_types) and len(certificate_name.strip()) == 0: + if isinstance(certificate_name, str) and len(certificate_name.strip()) == 0: raise click.UsageError('Parameter --certificate-name cannot be whitespace or empty string') kwargs = {} @@ -1568,10 +1567,10 @@ def delete_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_hostname(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(name, six.string_types) and len(name.strip()) == 0: + if isinstance(name, str) and len(name.strip()) == 0: raise click.UsageError('Parameter --name cannot be whitespace or empty string') kwargs = {} @@ -1637,10 +1636,10 @@ def delete_hostname(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_listener(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, listener_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(listener_name, six.string_types) and len(listener_name.strip()) == 0: + if isinstance(listener_name, str) and len(listener_name.strip()) == 0: raise click.UsageError('Parameter --listener-name cannot be whitespace or empty string') kwargs = {} @@ -1703,7 +1702,7 @@ def delete_listener(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_load_balancer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1770,10 +1769,10 @@ def delete_load_balancer(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_path_route_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, path_route_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(path_route_set_name, six.string_types) and len(path_route_set_name.strip()) == 0: + if isinstance(path_route_set_name, str) and len(path_route_set_name.strip()) == 0: raise click.UsageError('Parameter --path-route-set-name cannot be whitespace or empty string') kwargs = {} @@ -1841,10 +1840,10 @@ def delete_path_route_set(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_routing_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, routing_policy_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(routing_policy_name, six.string_types) and len(routing_policy_name.strip()) == 0: + if isinstance(routing_policy_name, str) and len(routing_policy_name.strip()) == 0: raise click.UsageError('Parameter --routing-policy-name cannot be whitespace or empty string') kwargs = {} @@ -1912,10 +1911,10 @@ def delete_routing_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_rule_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, rule_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(rule_set_name, six.string_types) and len(rule_set_name.strip()) == 0: + if isinstance(rule_set_name, str) and len(rule_set_name.strip()) == 0: raise click.UsageError('Parameter --rule-set-name cannot be whitespace or empty string') kwargs = {} @@ -1981,10 +1980,10 @@ def delete_rule_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_ssl_cipher_suite(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(name, six.string_types) and len(name.strip()) == 0: + if isinstance(name, str) and len(name.strip()) == 0: raise click.UsageError('Parameter --name cannot be whitespace or empty string') kwargs = {} @@ -2049,13 +2048,13 @@ def delete_ssl_cipher_suite(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def get_backend(ctx, from_json, load_balancer_id, backend_set_name, backend_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') - if isinstance(backend_name, six.string_types) and len(backend_name.strip()) == 0: + if isinstance(backend_name, str) and len(backend_name.strip()) == 0: raise click.UsageError('Parameter --backend-name cannot be whitespace or empty string') kwargs = {} @@ -2094,13 +2093,13 @@ def get_backend(ctx, from_json, load_balancer_id, backend_set_name, backend_name @cli_util.wrap_exceptions def get_backend_health(ctx, from_json, load_balancer_id, backend_set_name, backend_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') - if isinstance(backend_name, six.string_types) and len(backend_name.strip()) == 0: + if isinstance(backend_name, str) and len(backend_name.strip()) == 0: raise click.UsageError('Parameter --backend-name cannot be whitespace or empty string') kwargs = {} @@ -2136,10 +2135,10 @@ def get_backend_health(ctx, from_json, load_balancer_id, backend_set_name, backe @cli_util.wrap_exceptions def get_backend_set(ctx, from_json, load_balancer_id, backend_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -2174,10 +2173,10 @@ def get_backend_set(ctx, from_json, load_balancer_id, backend_set_name, if_match @cli_util.wrap_exceptions def get_backend_set_health(ctx, from_json, load_balancer_id, backend_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -2212,10 +2211,10 @@ def get_backend_set_health(ctx, from_json, load_balancer_id, backend_set_name, i @cli_util.wrap_exceptions def get_health_checker(ctx, from_json, load_balancer_id, backend_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -2250,10 +2249,10 @@ def get_health_checker(ctx, from_json, load_balancer_id, backend_set_name, if_ma @cli_util.wrap_exceptions def get_hostname(ctx, from_json, load_balancer_id, name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(name, six.string_types) and len(name.strip()) == 0: + if isinstance(name, str) and len(name.strip()) == 0: raise click.UsageError('Parameter --name cannot be whitespace or empty string') kwargs = {} @@ -2285,7 +2284,7 @@ def get_hostname(ctx, from_json, load_balancer_id, name, if_match): @cli_util.wrap_exceptions def get_load_balancer(ctx, from_json, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -2316,7 +2315,7 @@ def get_load_balancer(ctx, from_json, load_balancer_id, if_match): @cli_util.wrap_exceptions def get_load_balancer_health(ctx, from_json, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -2350,10 +2349,10 @@ def get_load_balancer_health(ctx, from_json, load_balancer_id, if_match): @cli_util.wrap_exceptions def get_path_route_set(ctx, from_json, load_balancer_id, path_route_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(path_route_set_name, six.string_types) and len(path_route_set_name.strip()) == 0: + if isinstance(path_route_set_name, str) and len(path_route_set_name.strip()) == 0: raise click.UsageError('Parameter --path-route-set-name cannot be whitespace or empty string') kwargs = {} @@ -2388,10 +2387,10 @@ def get_path_route_set(ctx, from_json, load_balancer_id, path_route_set_name, if @cli_util.wrap_exceptions def get_routing_policy(ctx, from_json, load_balancer_id, routing_policy_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(routing_policy_name, six.string_types) and len(routing_policy_name.strip()) == 0: + if isinstance(routing_policy_name, str) and len(routing_policy_name.strip()) == 0: raise click.UsageError('Parameter --routing-policy-name cannot be whitespace or empty string') kwargs = {} @@ -2426,10 +2425,10 @@ def get_routing_policy(ctx, from_json, load_balancer_id, routing_policy_name, if @cli_util.wrap_exceptions def get_rule_set(ctx, from_json, load_balancer_id, rule_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(rule_set_name, six.string_types) and len(rule_set_name.strip()) == 0: + if isinstance(rule_set_name, str) and len(rule_set_name.strip()) == 0: raise click.UsageError('Parameter --rule-set-name cannot be whitespace or empty string') kwargs = {} @@ -2464,10 +2463,10 @@ def get_rule_set(ctx, from_json, load_balancer_id, rule_set_name, if_match): @cli_util.wrap_exceptions def get_ssl_cipher_suite(ctx, from_json, load_balancer_id, name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(name, six.string_types) and len(name.strip()) == 0: + if isinstance(name, str) and len(name.strip()) == 0: raise click.UsageError('Parameter --name cannot be whitespace or empty string') kwargs = {} @@ -2492,7 +2491,7 @@ def get_ssl_cipher_suite(ctx, from_json, load_balancer_id, name, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2522,7 +2521,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def list_backend_sets(ctx, from_json, all_pages, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -2557,10 +2556,10 @@ def list_backend_sets(ctx, from_json, all_pages, load_balancer_id, if_match): @cli_util.wrap_exceptions def list_backends(ctx, from_json, all_pages, load_balancer_id, backend_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -2593,7 +2592,7 @@ def list_backends(ctx, from_json, all_pages, load_balancer_id, backend_set_name, @cli_util.wrap_exceptions def list_certificates(ctx, from_json, all_pages, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -2625,7 +2624,7 @@ def list_certificates(ctx, from_json, all_pages, load_balancer_id, if_match): @cli_util.wrap_exceptions def list_hostnames(ctx, from_json, all_pages, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -2660,10 +2659,10 @@ def list_hostnames(ctx, from_json, all_pages, load_balancer_id, if_match): @cli_util.wrap_exceptions def list_listener_rules(ctx, from_json, all_pages, load_balancer_id, listener_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(listener_name, six.string_types) and len(listener_name.strip()) == 0: + if isinstance(listener_name, str) and len(listener_name.strip()) == 0: raise click.UsageError('Parameter --listener-name cannot be whitespace or empty string') kwargs = {} @@ -2821,7 +2820,7 @@ def list_load_balancers(ctx, from_json, all_pages, page_size, compartment_id, li @cli_util.wrap_exceptions def list_path_route_sets(ctx, from_json, all_pages, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -2967,7 +2966,7 @@ def list_routing_policies(ctx, from_json, all_pages, page_size, load_balancer_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -3021,7 +3020,7 @@ def list_routing_policies(ctx, from_json, all_pages, page_size, load_balancer_id @cli_util.wrap_exceptions def list_rule_sets(ctx, from_json, all_pages, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -3105,7 +3104,7 @@ def list_shapes(ctx, from_json, all_pages, page_size, compartment_id, limit, pag @cli_util.wrap_exceptions def list_ssl_cipher_suites(ctx, from_json, all_pages, load_balancer_id, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -3140,7 +3139,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, load_balancer_id, l if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -3219,13 +3218,13 @@ def list_work_requests(ctx, from_json, all_pages, page_size, load_balancer_id, l @cli_util.wrap_exceptions def update_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, weight, backup, drain, offline, load_balancer_id, backend_set_name, backend_name, max_connections, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') - if isinstance(backend_name, six.string_types) and len(backend_name.strip()) == 0: + if isinstance(backend_name, str) and len(backend_name.strip()) == 0: raise click.UsageError('Parameter --backend-name cannot be whitespace or empty string') kwargs = {} @@ -3316,10 +3315,10 @@ def update_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def update_backend_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, policy, backends, health_checker, load_balancer_id, backend_set_name, backend_max_connections, ssl_configuration, session_persistence_configuration, lb_cookie_session_persistence_configuration, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') if not force: if backends or health_checker or ssl_configuration or session_persistence_configuration or lb_cookie_session_persistence_configuration: @@ -3438,10 +3437,10 @@ def update_backend_set(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_health_checker(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, protocol, port, return_code, retries, timeout_in_millis, interval_in_millis, response_body_regex, load_balancer_id, backend_set_name, url_path, is_force_plain_text, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -3526,10 +3525,10 @@ def update_health_checker(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_hostname(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, name, hostname, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(name, six.string_types) and len(name.strip()) == 0: + if isinstance(name, str) and len(name.strip()) == 0: raise click.UsageError('Parameter --name cannot be whitespace or empty string') kwargs = {} @@ -3625,10 +3624,10 @@ def update_hostname(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def update_listener(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, default_backend_set_name, port, protocol, load_balancer_id, listener_name, hostname_names, path_route_set_name, routing_policy_name, ssl_configuration, connection_configuration, rule_set_names, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(listener_name, six.string_types) and len(listener_name.strip()) == 0: + if isinstance(listener_name, str) and len(listener_name.strip()) == 0: raise click.UsageError('Parameter --listener-name cannot be whitespace or empty string') if not force: if hostname_names or ssl_configuration or connection_configuration or rule_set_names: @@ -3770,7 +3769,7 @@ def update_listener(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_load_balancer(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, display_name, ip_mode, ipv6_subnet_cidr, reserved_ips, is_delete_protection_enabled, is_request_id_enabled, request_id_header, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') if not force: if reserved_ips or freeform_tags or defined_tags or security_attributes: @@ -3880,7 +3879,7 @@ def update_load_balancer(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_load_balancer_shape(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, shape_name, shape_details, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') if not force: if shape_details: @@ -3963,7 +3962,7 @@ def update_load_balancer_shape(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_network_security_groups(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, network_security_group_ids, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') if not force: if network_security_group_ids: @@ -4042,10 +4041,10 @@ def update_network_security_groups(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_path_route_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, path_routes, load_balancer_id, path_route_set_name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(path_route_set_name, six.string_types) and len(path_route_set_name.strip()) == 0: + if isinstance(path_route_set_name, str) and len(path_route_set_name.strip()) == 0: raise click.UsageError('Parameter --path-route-set-name cannot be whitespace or empty string') if not force: if path_routes: @@ -4124,10 +4123,10 @@ def update_path_route_set(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_routing_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, rules, load_balancer_id, routing_policy_name, condition_language_version, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(routing_policy_name, six.string_types) and len(routing_policy_name.strip()) == 0: + if isinstance(routing_policy_name, str) and len(routing_policy_name.strip()) == 0: raise click.UsageError('Parameter --routing-policy-name cannot be whitespace or empty string') if not force: if rules: @@ -4208,10 +4207,10 @@ def update_routing_policy(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_rule_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, load_balancer_id, rule_set_name, items, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(rule_set_name, six.string_types) and len(rule_set_name.strip()) == 0: + if isinstance(rule_set_name, str) and len(rule_set_name.strip()) == 0: raise click.UsageError('Parameter --rule-set-name cannot be whitespace or empty string') if not force: if items: @@ -4303,10 +4302,10 @@ def update_rule_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_ssl_cipher_suite(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, ciphers, load_balancer_id, name, if_match): - if isinstance(load_balancer_id, six.string_types) and len(load_balancer_id.strip()) == 0: + if isinstance(load_balancer_id, str) and len(load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --load-balancer-id cannot be whitespace or empty string') - if isinstance(name, six.string_types) and len(name.strip()) == 0: + if isinstance(name, str) and len(name.strip()) == 0: raise click.UsageError('Parameter --name cannot be whitespace or empty string') if not force: if ciphers: diff --git a/services/load_balancer/src/oci_cli_load_balancer/lb_cli_extended.py b/services/load_balancer/src/oci_cli_load_balancer/lb_cli_extended.py index 421085e3d..80b0b9307 100644 --- a/services/load_balancer/src/oci_cli_load_balancer/lb_cli_extended.py +++ b/services/load_balancer/src/oci_cli_load_balancer/lb_cli_extended.py @@ -5,7 +5,6 @@ from __future__ import print_function import click import json -import six # noqa: F401 from oci_cli import cli_util from oci_cli import json_skeleton_utils from oci_cli import custom_types # noqa: F401 diff --git a/services/lockbox/src/oci_cli_lockbox/generated/lockbox_cli.py b/services/lockbox/src/oci_cli_lockbox/generated/lockbox_cli.py index fc4590fe5..d7795aca8 100644 --- a/services/lockbox/src/oci_cli_lockbox/generated/lockbox_cli.py +++ b/services/lockbox/src/oci_cli_lockbox/generated/lockbox_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -114,7 +113,7 @@ def lockbox_collection_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -140,7 +139,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_approval_template_compartment(ctx, from_json, approval_template_id, compartment_id, if_match): - if isinstance(approval_template_id, six.string_types) and len(approval_template_id.strip()) == 0: + if isinstance(approval_template_id, str) and len(approval_template_id.strip()) == 0: raise click.UsageError('Parameter --approval-template-id cannot be whitespace or empty string') kwargs = {} @@ -171,7 +170,7 @@ def change_approval_template_compartment(ctx, from_json, approval_template_id, c @cli_util.wrap_exceptions def change_lockbox_compartment(ctx, from_json, lockbox_id, compartment_id, if_match): - if isinstance(lockbox_id, six.string_types) and len(lockbox_id.strip()) == 0: + if isinstance(lockbox_id, str) and len(lockbox_id.strip()) == 0: raise click.UsageError('Parameter --lockbox-id cannot be whitespace or empty string') kwargs = {} @@ -428,7 +427,7 @@ def create_lockbox(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_approval_template(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, approval_template_id, if_match): - if isinstance(approval_template_id, six.string_types) and len(approval_template_id.strip()) == 0: + if isinstance(approval_template_id, str) and len(approval_template_id.strip()) == 0: raise click.UsageError('Parameter --approval-template-id cannot be whitespace or empty string') kwargs = {} @@ -492,7 +491,7 @@ def delete_approval_template(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_lockbox(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, lockbox_id, if_match): - if isinstance(lockbox_id, six.string_types) and len(lockbox_id.strip()) == 0: + if isinstance(lockbox_id, str) and len(lockbox_id.strip()) == 0: raise click.UsageError('Parameter --lockbox-id cannot be whitespace or empty string') kwargs = {} @@ -631,7 +630,7 @@ def export_access_requests(ctx, from_json, file, lockbox_id, time_created_after, @cli_util.wrap_exceptions def get_access_materials(ctx, from_json, access_request_id): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -653,7 +652,7 @@ def get_access_materials(ctx, from_json, access_request_id): @cli_util.wrap_exceptions def get_access_request(ctx, from_json, access_request_id): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -675,7 +674,7 @@ def get_access_request(ctx, from_json, access_request_id): @cli_util.wrap_exceptions def get_access_request_internal(ctx, from_json, access_request_id): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -697,7 +696,7 @@ def get_access_request_internal(ctx, from_json, access_request_id): @cli_util.wrap_exceptions def get_approval_template(ctx, from_json, approval_template_id): - if isinstance(approval_template_id, six.string_types) and len(approval_template_id.strip()) == 0: + if isinstance(approval_template_id, str) and len(approval_template_id.strip()) == 0: raise click.UsageError('Parameter --approval-template-id cannot be whitespace or empty string') kwargs = {} @@ -719,7 +718,7 @@ def get_approval_template(ctx, from_json, approval_template_id): @cli_util.wrap_exceptions def get_lockbox(ctx, from_json, lockbox_id): - if isinstance(lockbox_id, six.string_types) and len(lockbox_id.strip()) == 0: + if isinstance(lockbox_id, str) and len(lockbox_id.strip()) == 0: raise click.UsageError('Parameter --lockbox-id cannot be whitespace or empty string') kwargs = {} @@ -741,7 +740,7 @@ def get_lockbox(ctx, from_json, lockbox_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -769,7 +768,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def handle_access_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, access_request_id, action, message, if_match): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -1047,7 +1046,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1104,7 +1103,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1224,7 +1223,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_approval_template(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, approval_template_id, approver_levels, display_name, auto_approval_state, freeform_tags, defined_tags, if_match): - if isinstance(approval_template_id, six.string_types) and len(approval_template_id.strip()) == 0: + if isinstance(approval_template_id, str) and len(approval_template_id.strip()) == 0: raise click.UsageError('Parameter --approval-template-id cannot be whitespace or empty string') if not force: if approver_levels or freeform_tags or defined_tags: @@ -1304,7 +1303,7 @@ def update_approval_template(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_lockbox(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, lockbox_id, display_name, approval_template_id, max_access_duration, freeform_tags, defined_tags, if_match): - if isinstance(lockbox_id, six.string_types) and len(lockbox_id.strip()) == 0: + if isinstance(lockbox_id, str) and len(lockbox_id.strip()) == 0: raise click.UsageError('Parameter --lockbox-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/log_analytics/src/oci_cli_log_analytics/generated/loganalytics_cli.py b/services/log_analytics/src/oci_cli_log_analytics/generated/loganalytics_cli.py index a75bd087d..0e7de8431 100644 --- a/services/log_analytics/src/oci_cli_log_analytics/generated/loganalytics_cli.py +++ b/services/log_analytics/src/oci_cli_log_analytics/generated/loganalytics_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -267,10 +266,10 @@ def binary_group(): @cli_util.wrap_exceptions def add_entity_association(ctx, from_json, namespace_name, log_analytics_entity_id, association_entities, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_entity_id, six.string_types) and len(log_analytics_entity_id.strip()) == 0: + if isinstance(log_analytics_entity_id, str) and len(log_analytics_entity_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-entity-id cannot be whitespace or empty string') kwargs = {} @@ -304,10 +303,10 @@ def add_entity_association(ctx, from_json, namespace_name, log_analytics_entity_ @cli_util.wrap_exceptions def add_source_event_types(ctx, from_json, namespace_name, source_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -346,10 +345,10 @@ def add_source_event_types(ctx, from_json, namespace_name, source_name, items): @cli_util.wrap_exceptions def append_lookup_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, lookup_name, append_lookup_file_body, is_force, char_encoding, if_match, expect): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(lookup_name, six.string_types) and len(lookup_name.strip()) == 0: + if isinstance(lookup_name, str) and len(lookup_name.strip()) == 0: raise click.UsageError('Parameter --lookup-name cannot be whitespace or empty string') kwargs = {} @@ -418,7 +417,7 @@ def append_lookup_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def assign_encryption_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, key_id, key_type, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -481,7 +480,7 @@ def assign_encryption_key(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def batch_get_basic_info(ctx, from_json, namespace_name, is_include_deleted, label_names, limit, page, sort_order, basic_label_sort_by): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -522,10 +521,10 @@ def batch_get_basic_info(ctx, from_json, namespace_name, is_include_deleted, lab @cli_util.wrap_exceptions def cancel_query_work_request(ctx, from_json, namespace_name, work_request_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -553,10 +552,10 @@ def cancel_query_work_request(ctx, from_json, namespace_name, work_request_id, i @cli_util.wrap_exceptions def change_ingest_time_rule_compartment(ctx, from_json, namespace_name, ingest_time_rule_id, compartment_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(ingest_time_rule_id, six.string_types) and len(ingest_time_rule_id.strip()) == 0: + if isinstance(ingest_time_rule_id, str) and len(ingest_time_rule_id.strip()) == 0: raise click.UsageError('Parameter --ingest-time-rule-id cannot be whitespace or empty string') kwargs = {} @@ -589,10 +588,10 @@ def change_ingest_time_rule_compartment(ctx, from_json, namespace_name, ingest_t @cli_util.wrap_exceptions def change_log_analytics_em_bridge_compartment(ctx, from_json, namespace_name, log_analytics_em_bridge_id, compartment_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_em_bridge_id, six.string_types) and len(log_analytics_em_bridge_id.strip()) == 0: + if isinstance(log_analytics_em_bridge_id, str) and len(log_analytics_em_bridge_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-em-bridge-id cannot be whitespace or empty string') kwargs = {} @@ -625,10 +624,10 @@ def change_log_analytics_em_bridge_compartment(ctx, from_json, namespace_name, l @cli_util.wrap_exceptions def change_log_analytics_entity_compartment(ctx, from_json, namespace_name, log_analytics_entity_id, compartment_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_entity_id, six.string_types) and len(log_analytics_entity_id.strip()) == 0: + if isinstance(log_analytics_entity_id, str) and len(log_analytics_entity_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-entity-id cannot be whitespace or empty string') kwargs = {} @@ -661,10 +660,10 @@ def change_log_analytics_entity_compartment(ctx, from_json, namespace_name, log_ @cli_util.wrap_exceptions def change_log_analytics_log_group_compartment(ctx, from_json, namespace_name, log_analytics_log_group_id, compartment_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_log_group_id, six.string_types) and len(log_analytics_log_group_id.strip()) == 0: + if isinstance(log_analytics_log_group_id, str) and len(log_analytics_log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-log-group-id cannot be whitespace or empty string') kwargs = {} @@ -697,10 +696,10 @@ def change_log_analytics_log_group_compartment(ctx, from_json, namespace_name, l @cli_util.wrap_exceptions def change_log_analytics_object_collection_rule_compartment(ctx, from_json, namespace_name, log_analytics_object_collection_rule_id, compartment_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_object_collection_rule_id, six.string_types) and len(log_analytics_object_collection_rule_id.strip()) == 0: + if isinstance(log_analytics_object_collection_rule_id, str) and len(log_analytics_object_collection_rule_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-object-collection-rule-id cannot be whitespace or empty string') kwargs = {} @@ -733,10 +732,10 @@ def change_log_analytics_object_collection_rule_compartment(ctx, from_json, name @cli_util.wrap_exceptions def change_lookup_compartment(ctx, from_json, namespace_name, lookup_name, compartment_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(lookup_name, six.string_types) and len(lookup_name.strip()) == 0: + if isinstance(lookup_name, str) and len(lookup_name.strip()) == 0: raise click.UsageError('Parameter --lookup-name cannot be whitespace or empty string') kwargs = {} @@ -769,10 +768,10 @@ def change_lookup_compartment(ctx, from_json, namespace_name, lookup_name, compa @cli_util.wrap_exceptions def change_scheduled_task_compartment(ctx, from_json, namespace_name, scheduled_task_id, compartment_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') kwargs = {} @@ -805,10 +804,10 @@ def change_scheduled_task_compartment(ctx, from_json, namespace_name, scheduled_ @cli_util.wrap_exceptions def clean(ctx, from_json, namespace_name, scheduled_task_id, time_start, time_end): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') kwargs = {} @@ -837,7 +836,7 @@ def clean(ctx, from_json, namespace_name, scheduled_task_id, time_start, time_en @cli_util.wrap_exceptions def compare_content(ctx, from_json, namespace_name, content1, content2): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -879,7 +878,7 @@ def compare_content(ctx, from_json, namespace_name, content1, content2): @cli_util.wrap_exceptions def create_ingest_time_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, display_name, conditions, actions, description, freeform_tags, defined_tags): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -956,7 +955,7 @@ def create_ingest_time_rule(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def create_ingest_time_rule_ingest_time_rule_field_condition(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, display_name, actions, conditions_field_name, conditions_field_operator, conditions_field_value, description, freeform_tags, defined_tags, conditions_additional_conditions): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1036,7 +1035,7 @@ def create_ingest_time_rule_ingest_time_rule_field_condition(ctx, from_json, wai @cli_util.wrap_exceptions def create_log_analytics_em_bridge(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, display_name, compartment_id, em_entities_compartment_id, bucket_name, description, freeform_tags, defined_tags): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1114,7 +1113,7 @@ def create_log_analytics_em_bridge(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def create_log_analytics_entity(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, name, compartment_id, entity_type_name, management_agent_id, cloud_resource_id, timezone_region, hostname, source_id, properties, freeform_tags, defined_tags, time_last_discovered, metadata): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1201,7 +1200,7 @@ def create_log_analytics_entity(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def create_log_analytics_entity_type(ctx, from_json, namespace_name, name, category, properties): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1239,7 +1238,7 @@ def create_log_analytics_entity_type(ctx, from_json, namespace_name, name, categ @cli_util.wrap_exceptions def create_log_analytics_log_group(ctx, from_json, namespace_name, display_name, compartment_id, description, freeform_tags, defined_tags): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1305,7 +1304,7 @@ def create_log_analytics_log_group(ctx, from_json, namespace_name, display_name, @cli_util.wrap_exceptions def create_log_analytics_object_collection_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, name, compartment_id, os_namespace, os_bucket_name, log_group_id, description, collection_type, poll_since, poll_till, log_source_name, entity_id, char_encoding, is_enabled, timezone, log_set, log_set_key, log_set_ext_regex, overrides, object_name_filters, log_type, is_force_historic_collection, stream_id, stream_cursor_type, stream_cursor_time, defined_tags, freeform_tags): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1431,7 +1430,7 @@ def create_log_analytics_object_collection_rule(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def create_scheduled_task(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, kind, compartment_id, display_name, description, freeform_tags, defined_tags): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1507,7 +1506,7 @@ def create_scheduled_task(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def create_scheduled_task_create_standard_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, task_type, action, display_name, description, freeform_tags, defined_tags, schedules): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1585,7 +1584,7 @@ def create_scheduled_task_create_standard_task_details(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def create_scheduled_task_create_acceleration_task_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, saved_search_id, display_name, description, freeform_tags, defined_tags): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1657,7 +1656,7 @@ def create_scheduled_task_create_acceleration_task_details(ctx, from_json, wait_ @cli_util.wrap_exceptions def delete_associations(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1719,10 +1718,10 @@ def delete_associations(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_field(ctx, from_json, namespace_name, field_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(field_name, six.string_types) and len(field_name.strip()) == 0: + if isinstance(field_name, str) and len(field_name.strip()) == 0: raise click.UsageError('Parameter --field-name cannot be whitespace or empty string') kwargs = {} @@ -1750,10 +1749,10 @@ def delete_field(ctx, from_json, namespace_name, field_name, if_match): @cli_util.wrap_exceptions def delete_ingest_time_rule(ctx, from_json, namespace_name, ingest_time_rule_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(ingest_time_rule_id, six.string_types) and len(ingest_time_rule_id.strip()) == 0: + if isinstance(ingest_time_rule_id, str) and len(ingest_time_rule_id.strip()) == 0: raise click.UsageError('Parameter --ingest-time-rule-id cannot be whitespace or empty string') kwargs = {} @@ -1781,10 +1780,10 @@ def delete_ingest_time_rule(ctx, from_json, namespace_name, ingest_time_rule_id, @cli_util.wrap_exceptions def delete_label(ctx, from_json, namespace_name, label_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(label_name, six.string_types) and len(label_name.strip()) == 0: + if isinstance(label_name, str) and len(label_name.strip()) == 0: raise click.UsageError('Parameter --label-name cannot be whitespace or empty string') kwargs = {} @@ -1813,10 +1812,10 @@ def delete_label(ctx, from_json, namespace_name, label_name, if_match): @cli_util.wrap_exceptions def delete_log_analytics_em_bridge(ctx, from_json, namespace_name, log_analytics_em_bridge_id, if_match, is_delete_entities): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_em_bridge_id, six.string_types) and len(log_analytics_em_bridge_id.strip()) == 0: + if isinstance(log_analytics_em_bridge_id, str) and len(log_analytics_em_bridge_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-em-bridge-id cannot be whitespace or empty string') kwargs = {} @@ -1847,10 +1846,10 @@ def delete_log_analytics_em_bridge(ctx, from_json, namespace_name, log_analytics @cli_util.wrap_exceptions def delete_log_analytics_entity(ctx, from_json, namespace_name, log_analytics_entity_id, if_match, is_force_delete): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_entity_id, six.string_types) and len(log_analytics_entity_id.strip()) == 0: + if isinstance(log_analytics_entity_id, str) and len(log_analytics_entity_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-entity-id cannot be whitespace or empty string') kwargs = {} @@ -1880,10 +1879,10 @@ def delete_log_analytics_entity(ctx, from_json, namespace_name, log_analytics_en @cli_util.wrap_exceptions def delete_log_analytics_entity_type(ctx, from_json, namespace_name, entity_type_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(entity_type_name, six.string_types) and len(entity_type_name.strip()) == 0: + if isinstance(entity_type_name, str) and len(entity_type_name.strip()) == 0: raise click.UsageError('Parameter --entity-type-name cannot be whitespace or empty string') kwargs = {} @@ -1911,10 +1910,10 @@ def delete_log_analytics_entity_type(ctx, from_json, namespace_name, entity_type @cli_util.wrap_exceptions def delete_log_analytics_log_group(ctx, from_json, namespace_name, log_analytics_log_group_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_log_group_id, six.string_types) and len(log_analytics_log_group_id.strip()) == 0: + if isinstance(log_analytics_log_group_id, str) and len(log_analytics_log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-log-group-id cannot be whitespace or empty string') kwargs = {} @@ -1942,10 +1941,10 @@ def delete_log_analytics_log_group(ctx, from_json, namespace_name, log_analytics @cli_util.wrap_exceptions def delete_log_analytics_object_collection_rule(ctx, from_json, namespace_name, log_analytics_object_collection_rule_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_object_collection_rule_id, six.string_types) and len(log_analytics_object_collection_rule_id.strip()) == 0: + if isinstance(log_analytics_object_collection_rule_id, str) and len(log_analytics_object_collection_rule_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-object-collection-rule-id cannot be whitespace or empty string') kwargs = {} @@ -1977,10 +1976,10 @@ def delete_log_analytics_object_collection_rule(ctx, from_json, namespace_name, @cli_util.wrap_exceptions def delete_lookup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, lookup_name, is_force, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(lookup_name, six.string_types) and len(lookup_name.strip()) == 0: + if isinstance(lookup_name, str) and len(lookup_name.strip()) == 0: raise click.UsageError('Parameter --lookup-name cannot be whitespace or empty string') kwargs = {} @@ -2037,10 +2036,10 @@ def delete_lookup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_parser(ctx, from_json, namespace_name, parser_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(parser_name, six.string_types) and len(parser_name.strip()) == 0: + if isinstance(parser_name, str) and len(parser_name.strip()) == 0: raise click.UsageError('Parameter --parser-name cannot be whitespace or empty string') kwargs = {} @@ -2068,10 +2067,10 @@ def delete_parser(ctx, from_json, namespace_name, parser_name, if_match): @cli_util.wrap_exceptions def delete_scheduled_task(ctx, from_json, namespace_name, scheduled_task_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') kwargs = {} @@ -2099,10 +2098,10 @@ def delete_scheduled_task(ctx, from_json, namespace_name, scheduled_task_id, if_ @cli_util.wrap_exceptions def delete_source(ctx, from_json, namespace_name, source_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -2130,10 +2129,10 @@ def delete_source(ctx, from_json, namespace_name, source_name, if_match): @cli_util.wrap_exceptions def delete_upload(ctx, from_json, namespace_name, upload_reference, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(upload_reference, six.string_types) and len(upload_reference.strip()) == 0: + if isinstance(upload_reference, str) and len(upload_reference.strip()) == 0: raise click.UsageError('Parameter --upload-reference cannot be whitespace or empty string') kwargs = {} @@ -2161,13 +2160,13 @@ def delete_upload(ctx, from_json, namespace_name, upload_reference, if_match): @cli_util.wrap_exceptions def delete_upload_file(ctx, from_json, namespace_name, upload_reference, file_reference): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(upload_reference, six.string_types) and len(upload_reference.strip()) == 0: + if isinstance(upload_reference, str) and len(upload_reference.strip()) == 0: raise click.UsageError('Parameter --upload-reference cannot be whitespace or empty string') - if isinstance(file_reference, six.string_types) and len(file_reference.strip()) == 0: + if isinstance(file_reference, str) and len(file_reference.strip()) == 0: raise click.UsageError('Parameter --file-reference cannot be whitespace or empty string') kwargs = {} @@ -2194,13 +2193,13 @@ def delete_upload_file(ctx, from_json, namespace_name, upload_reference, file_re @cli_util.wrap_exceptions def delete_upload_warning(ctx, from_json, namespace_name, upload_reference, warning_reference): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(upload_reference, six.string_types) and len(upload_reference.strip()) == 0: + if isinstance(upload_reference, str) and len(upload_reference.strip()) == 0: raise click.UsageError('Parameter --upload-reference cannot be whitespace or empty string') - if isinstance(warning_reference, six.string_types) and len(warning_reference.strip()) == 0: + if isinstance(warning_reference, str) and len(warning_reference.strip()) == 0: raise click.UsageError('Parameter --warning-reference cannot be whitespace or empty string') kwargs = {} @@ -2225,7 +2224,7 @@ def delete_upload_warning(ctx, from_json, namespace_name, upload_reference, warn @cli_util.wrap_exceptions def disable_archiving(ctx, from_json, namespace_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -2256,10 +2255,10 @@ def disable_archiving(ctx, from_json, namespace_name, if_match): @cli_util.wrap_exceptions def disable_auto_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, source_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -2321,10 +2320,10 @@ def disable_auto_association(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def disable_ingest_time_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, ingest_time_rule_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(ingest_time_rule_id, six.string_types) and len(ingest_time_rule_id.strip()) == 0: + if isinstance(ingest_time_rule_id, str) and len(ingest_time_rule_id.strip()) == 0: raise click.UsageError('Parameter --ingest-time-rule-id cannot be whitespace or empty string') kwargs = {} @@ -2380,10 +2379,10 @@ def disable_ingest_time_rule(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def disable_source_event_types(ctx, from_json, namespace_name, source_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -2414,7 +2413,7 @@ def disable_source_event_types(ctx, from_json, namespace_name, source_name, item @cli_util.wrap_exceptions def enable_archiving(ctx, from_json, namespace_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -2445,10 +2444,10 @@ def enable_archiving(ctx, from_json, namespace_name, if_match): @cli_util.wrap_exceptions def enable_auto_association(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, source_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -2510,10 +2509,10 @@ def enable_auto_association(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def enable_ingest_time_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, ingest_time_rule_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(ingest_time_rule_id, six.string_types) and len(ingest_time_rule_id.strip()) == 0: + if isinstance(ingest_time_rule_id, str) and len(ingest_time_rule_id.strip()) == 0: raise click.UsageError('Parameter --ingest-time-rule-id cannot be whitespace or empty string') kwargs = {} @@ -2569,10 +2568,10 @@ def enable_ingest_time_rule(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def enable_source_event_types(ctx, from_json, namespace_name, source_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -2608,7 +2607,7 @@ def enable_source_event_types(ctx, from_json, namespace_name, source_name, items @cli_util.wrap_exceptions def estimate_purge_data_size(ctx, from_json, namespace_name, compartment_id, time_data_ended, compartment_id_in_subtree, purge_query_string, data_type, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -2652,7 +2651,7 @@ def estimate_purge_data_size(ctx, from_json, namespace_name, compartment_id, tim @cli_util.wrap_exceptions def estimate_recall_data_size(ctx, from_json, namespace_name, time_data_started, time_data_ended, log_sets, is_recall_new_data_only, collection_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -2692,7 +2691,7 @@ def estimate_recall_data_size(ctx, from_json, namespace_name, time_data_started, @cli_util.wrap_exceptions def estimate_release_data_size(ctx, from_json, namespace_name, time_data_started, time_data_ended, collection_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -2727,7 +2726,7 @@ def estimate_release_data_size(ctx, from_json, namespace_name, time_data_started @cli_util.wrap_exceptions def export_custom_content(ctx, from_json, file, namespace_name, field_names, parser_names, source_names): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -2801,7 +2800,7 @@ def export_custom_content(ctx, from_json, file, namespace_name, field_names, par @cli_util.wrap_exceptions def export_query_result(ctx, from_json, file, namespace_name, compartment_id, query_string, sub_system, compartment_id_in_subtree, scope_filters, max_total_count, time_filter, query_timeout_in_seconds, should_include_columns, output_format, should_localize, should_use_acceleration): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -2930,7 +2929,7 @@ def export_query_result(ctx, from_json, file, namespace_name, compartment_id, qu @cli_util.wrap_exceptions def extract_structured_log_field_paths(ctx, from_json, namespace_name, content, description, display_name, edit_version, encoding, example_content, field_maps, footer_content, header_content, name, is_default, is_single_line_content, is_system, language, time_updated, log_type_test_request_version, mapped_parsers, parser_ignoreline_characters, is_hidden, parser_sequence, parser_timezone, parser_filter, is_parser_written_once, parser_functions, sources_count, sources, should_tokenize_original_text, field_delimiter, field_qualifier, type, is_user_deleted, is_namespace_aware, categories, is_position_aware, dependent_sources, dependent_parsers, parser_type): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3117,7 +3116,7 @@ def extract_structured_log_field_paths(ctx, from_json, namespace_name, content, @cli_util.wrap_exceptions def extract_structured_log_header_paths(ctx, from_json, namespace_name, content, description, display_name, edit_version, encoding, example_content, field_maps, footer_content, header_content, name, is_default, is_single_line_content, is_system, language, time_updated, log_type_test_request_version, mapped_parsers, parser_ignoreline_characters, is_hidden, parser_sequence, parser_timezone, parser_filter, is_parser_written_once, parser_functions, sources_count, sources, should_tokenize_original_text, field_delimiter, field_qualifier, type, is_user_deleted, is_namespace_aware, categories, is_position_aware, dependent_sources, dependent_parsers, parser_type): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3258,7 +3257,7 @@ def extract_structured_log_header_paths(ctx, from_json, namespace_name, content, @cli_util.wrap_exceptions def filter(ctx, from_json, namespace_name, query_string, sub_system, filters): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3290,7 +3289,7 @@ def filter(ctx, from_json, namespace_name, query_string, sub_system, filters): @cli_util.wrap_exceptions def get_association_summary(ctx, from_json, namespace_name, compartment_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3314,10 +3313,10 @@ def get_association_summary(ctx, from_json, namespace_name, compartment_id): @cli_util.wrap_exceptions def get_category(ctx, from_json, namespace_name, category_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(category_name, six.string_types) and len(category_name.strip()) == 0: + if isinstance(category_name, str) and len(category_name.strip()) == 0: raise click.UsageError('Parameter --category-name cannot be whitespace or empty string') kwargs = {} @@ -3341,7 +3340,7 @@ def get_category(ctx, from_json, namespace_name, category_name): @cli_util.wrap_exceptions def get_column_names(ctx, from_json, namespace_name, sql_query): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3365,10 +3364,10 @@ def get_column_names(ctx, from_json, namespace_name, sql_query): @cli_util.wrap_exceptions def get_config_work_request(ctx, from_json, namespace_name, work_request_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3392,10 +3391,10 @@ def get_config_work_request(ctx, from_json, namespace_name, work_request_id): @cli_util.wrap_exceptions def get_field(ctx, from_json, namespace_name, field_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(field_name, six.string_types) and len(field_name.strip()) == 0: + if isinstance(field_name, str) and len(field_name.strip()) == 0: raise click.UsageError('Parameter --field-name cannot be whitespace or empty string') kwargs = {} @@ -3419,10 +3418,10 @@ def get_field(ctx, from_json, namespace_name, field_name): @cli_util.wrap_exceptions def get_field_usages(ctx, from_json, namespace_name, field_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(field_name, six.string_types) and len(field_name.strip()) == 0: + if isinstance(field_name, str) and len(field_name.strip()) == 0: raise click.UsageError('Parameter --field-name cannot be whitespace or empty string') kwargs = {} @@ -3446,7 +3445,7 @@ def get_field_usages(ctx, from_json, namespace_name, field_name): @cli_util.wrap_exceptions def get_fields_summary(ctx, from_json, namespace_name, is_show_detail): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3471,10 +3470,10 @@ def get_fields_summary(ctx, from_json, namespace_name, is_show_detail): @cli_util.wrap_exceptions def get_ingest_time_rule(ctx, from_json, namespace_name, ingest_time_rule_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(ingest_time_rule_id, six.string_types) and len(ingest_time_rule_id.strip()) == 0: + if isinstance(ingest_time_rule_id, str) and len(ingest_time_rule_id.strip()) == 0: raise click.UsageError('Parameter --ingest-time-rule-id cannot be whitespace or empty string') kwargs = {} @@ -3498,10 +3497,10 @@ def get_ingest_time_rule(ctx, from_json, namespace_name, ingest_time_rule_id): @cli_util.wrap_exceptions def get_label(ctx, from_json, namespace_name, label_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(label_name, six.string_types) and len(label_name.strip()) == 0: + if isinstance(label_name, str) and len(label_name.strip()) == 0: raise click.UsageError('Parameter --label-name cannot be whitespace or empty string') kwargs = {} @@ -3524,7 +3523,7 @@ def get_label(ctx, from_json, namespace_name, label_name): @cli_util.wrap_exceptions def get_label_summary(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3547,10 +3546,10 @@ def get_label_summary(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_log_analytics_em_bridge(ctx, from_json, namespace_name, log_analytics_em_bridge_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_em_bridge_id, six.string_types) and len(log_analytics_em_bridge_id.strip()) == 0: + if isinstance(log_analytics_em_bridge_id, str) and len(log_analytics_em_bridge_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-em-bridge-id cannot be whitespace or empty string') kwargs = {} @@ -3574,7 +3573,7 @@ def get_log_analytics_em_bridge(ctx, from_json, namespace_name, log_analytics_em @cli_util.wrap_exceptions def get_log_analytics_em_bridge_summary(ctx, from_json, namespace_name, compartment_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3598,7 +3597,7 @@ def get_log_analytics_em_bridge_summary(ctx, from_json, namespace_name, compartm @cli_util.wrap_exceptions def get_log_analytics_entities_summary(ctx, from_json, namespace_name, compartment_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3623,10 +3622,10 @@ def get_log_analytics_entities_summary(ctx, from_json, namespace_name, compartme @cli_util.wrap_exceptions def get_log_analytics_entity(ctx, from_json, namespace_name, log_analytics_entity_id, is_show_associated_sources_count): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_entity_id, six.string_types) and len(log_analytics_entity_id.strip()) == 0: + if isinstance(log_analytics_entity_id, str) and len(log_analytics_entity_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-entity-id cannot be whitespace or empty string') kwargs = {} @@ -3652,10 +3651,10 @@ def get_log_analytics_entity(ctx, from_json, namespace_name, log_analytics_entit @cli_util.wrap_exceptions def get_log_analytics_entity_type(ctx, from_json, namespace_name, entity_type_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(entity_type_name, six.string_types) and len(entity_type_name.strip()) == 0: + if isinstance(entity_type_name, str) and len(entity_type_name.strip()) == 0: raise click.UsageError('Parameter --entity-type-name cannot be whitespace or empty string') kwargs = {} @@ -3679,10 +3678,10 @@ def get_log_analytics_entity_type(ctx, from_json, namespace_name, entity_type_na @cli_util.wrap_exceptions def get_log_analytics_log_group(ctx, from_json, namespace_name, log_analytics_log_group_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_log_group_id, six.string_types) and len(log_analytics_log_group_id.strip()) == 0: + if isinstance(log_analytics_log_group_id, str) and len(log_analytics_log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-log-group-id cannot be whitespace or empty string') kwargs = {} @@ -3706,7 +3705,7 @@ def get_log_analytics_log_group(ctx, from_json, namespace_name, log_analytics_lo @cli_util.wrap_exceptions def get_log_analytics_log_groups_summary(ctx, from_json, namespace_name, compartment_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3730,10 +3729,10 @@ def get_log_analytics_log_groups_summary(ctx, from_json, namespace_name, compart @cli_util.wrap_exceptions def get_log_analytics_object_collection_rule(ctx, from_json, namespace_name, log_analytics_object_collection_rule_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_object_collection_rule_id, six.string_types) and len(log_analytics_object_collection_rule_id.strip()) == 0: + if isinstance(log_analytics_object_collection_rule_id, str) and len(log_analytics_object_collection_rule_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-object-collection-rule-id cannot be whitespace or empty string') kwargs = {} @@ -3756,7 +3755,7 @@ def get_log_analytics_object_collection_rule(ctx, from_json, namespace_name, log @cli_util.wrap_exceptions def get_log_sets_count(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3779,10 +3778,10 @@ def get_log_sets_count(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_lookup(ctx, from_json, namespace_name, lookup_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(lookup_name, six.string_types) and len(lookup_name.strip()) == 0: + if isinstance(lookup_name, str) and len(lookup_name.strip()) == 0: raise click.UsageError('Parameter --lookup-name cannot be whitespace or empty string') kwargs = {} @@ -3806,7 +3805,7 @@ def get_lookup(ctx, from_json, namespace_name, lookup_name): @cli_util.wrap_exceptions def get_lookup_summary(ctx, from_json, namespace_name, compartment_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3830,7 +3829,7 @@ def get_lookup_summary(ctx, from_json, namespace_name, compartment_id): @cli_util.wrap_exceptions def get_namespace(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3853,10 +3852,10 @@ def get_namespace(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_parser(ctx, from_json, namespace_name, parser_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(parser_name, six.string_types) and len(parser_name.strip()) == 0: + if isinstance(parser_name, str) and len(parser_name.strip()) == 0: raise click.UsageError('Parameter --parser-name cannot be whitespace or empty string') kwargs = {} @@ -3879,7 +3878,7 @@ def get_parser(ctx, from_json, namespace_name, parser_name): @cli_util.wrap_exceptions def get_parser_summary(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3905,7 +3904,7 @@ def get_parser_summary(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_preferences(ctx, from_json, namespace_name, sort_order, sort_by, limit, page): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3941,7 +3940,7 @@ def get_preferences(ctx, from_json, namespace_name, sort_order, sort_by, limit, @cli_util.wrap_exceptions def get_query_result(ctx, from_json, namespace_name, work_request_id, page, limit, should_include_columns, should_include_fields, output_mode): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -3975,10 +3974,10 @@ def get_query_result(ctx, from_json, namespace_name, work_request_id, page, limi @cli_util.wrap_exceptions def get_query_work_request(ctx, from_json, namespace_name, work_request_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4001,7 +4000,7 @@ def get_query_work_request(ctx, from_json, namespace_name, work_request_id): @cli_util.wrap_exceptions def get_recall_count(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4025,7 +4024,7 @@ def get_recall_count(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_recalled_data_size(ctx, from_json, namespace_name, time_data_started, time_data_ended): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4052,7 +4051,7 @@ def get_recalled_data_size(ctx, from_json, namespace_name, time_data_started, ti @cli_util.wrap_exceptions def get_rules_summary(ctx, from_json, namespace_name, compartment_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4076,10 +4075,10 @@ def get_rules_summary(ctx, from_json, namespace_name, compartment_id): @cli_util.wrap_exceptions def get_scheduled_task(ctx, from_json, namespace_name, scheduled_task_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') kwargs = {} @@ -4104,10 +4103,10 @@ def get_scheduled_task(ctx, from_json, namespace_name, scheduled_task_id): @cli_util.wrap_exceptions def get_source(ctx, from_json, namespace_name, source_name, compartment_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -4131,7 +4130,7 @@ def get_source(ctx, from_json, namespace_name, source_name, compartment_id): @cli_util.wrap_exceptions def get_source_summary(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4153,7 +4152,7 @@ def get_source_summary(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_storage(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4175,7 +4174,7 @@ def get_storage(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_storage_usage(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4198,10 +4197,10 @@ def get_storage_usage(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_storage_work_request(ctx, from_json, work_request_id, namespace_name): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4225,10 +4224,10 @@ def get_storage_work_request(ctx, from_json, work_request_id, namespace_name): @cli_util.wrap_exceptions def get_template(ctx, from_json, namespace_name, template_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(template_id, six.string_types) and len(template_id.strip()) == 0: + if isinstance(template_id, str) and len(template_id.strip()) == 0: raise click.UsageError('Parameter --template-id cannot be whitespace or empty string') kwargs = {} @@ -4251,7 +4250,7 @@ def get_template(ctx, from_json, namespace_name, template_id): @cli_util.wrap_exceptions def get_unprocessed_data_bucket(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4274,10 +4273,10 @@ def get_unprocessed_data_bucket(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_upload(ctx, from_json, namespace_name, upload_reference): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(upload_reference, six.string_types) and len(upload_reference.strip()) == 0: + if isinstance(upload_reference, str) and len(upload_reference.strip()) == 0: raise click.UsageError('Parameter --upload-reference cannot be whitespace or empty string') kwargs = {} @@ -4301,10 +4300,10 @@ def get_upload(ctx, from_json, namespace_name, upload_reference): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, namespace_name, work_request_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4330,7 +4329,7 @@ def get_work_request(ctx, from_json, namespace_name, work_request_id): @cli_util.wrap_exceptions def import_custom_content(ctx, from_json, namespace_name, import_custom_content_file_body, is_overwrite, expect): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4374,10 +4373,10 @@ def list_associable_entities(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -4449,7 +4448,7 @@ def list_associated_entities(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4518,10 +4517,10 @@ def list_auto_associations(ctx, from_json, all_pages, page_size, namespace_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -4584,7 +4583,7 @@ def list_categories(ctx, from_json, all_pages, page_size, namespace_name, catego if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4648,7 +4647,7 @@ def list_config_work_requests(ctx, from_json, all_pages, page_size, namespace_na if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4714,7 +4713,7 @@ def list_effective_properties(ctx, from_json, all_pages, page_size, namespace_na if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4777,7 +4776,7 @@ def list_effective_properties(ctx, from_json, all_pages, page_size, namespace_na @cli_util.wrap_exceptions def list_encryption_key_info(ctx, from_json, all_pages, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4810,10 +4809,10 @@ def list_entity_associations(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_entity_id, six.string_types) and len(log_analytics_entity_id.strip()) == 0: + if isinstance(log_analytics_entity_id, str) and len(log_analytics_entity_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-entity-id cannot be whitespace or empty string') kwargs = {} @@ -4882,7 +4881,7 @@ def list_entity_source_associations(ctx, from_json, all_pages, page_size, namesp if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -4962,7 +4961,7 @@ def list_fields(ctx, from_json, all_pages, page_size, namespace_name, is_match_a if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5041,7 +5040,7 @@ def list_ingest_time_rules(ctx, from_json, all_pages, page_size, namespace_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5109,7 +5108,7 @@ def list_label_priorities(ctx, from_json, all_pages, page_size, namespace_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5163,7 +5162,7 @@ def list_label_source_details(ctx, from_json, all_pages, page_size, namespace_na if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5228,7 +5227,7 @@ def list_labels(ctx, from_json, all_pages, page_size, namespace_name, label_name if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5302,7 +5301,7 @@ def list_log_analytics_em_bridges(ctx, from_json, all_pages, page_size, namespac if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5389,7 +5388,7 @@ def list_log_analytics_entities(ctx, from_json, all_pages, page_size, namespace_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5489,10 +5488,10 @@ def list_log_analytics_entity_topology(ctx, from_json, all_pages, page_size, nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_entity_id, six.string_types) and len(log_analytics_entity_id.strip()) == 0: + if isinstance(log_analytics_entity_id, str) and len(log_analytics_entity_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-entity-id cannot be whitespace or empty string') kwargs = {} @@ -5562,7 +5561,7 @@ def list_log_analytics_entity_types(ctx, from_json, all_pages, page_size, namesp if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5629,7 +5628,7 @@ def list_log_analytics_log_groups(ctx, from_json, all_pages, page_size, namespac if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5694,7 +5693,7 @@ def list_log_analytics_object_collection_rules(ctx, from_json, all_pages, page_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5758,7 +5757,7 @@ def list_log_sets(ctx, from_json, all_pages, page_size, namespace_name, limit, p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5822,7 +5821,7 @@ def list_lookups(ctx, from_json, all_pages, page_size, namespace_name, type, loo if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5894,7 +5893,7 @@ def list_meta_source_types(ctx, from_json, all_pages, page_size, namespace_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -5976,7 +5975,7 @@ def list_overlapping_recalls(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6039,7 +6038,7 @@ def list_parser_actions(ctx, from_json, all_pages, page_size, namespace_name, na if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6101,7 +6100,7 @@ def list_parser_functions(ctx, from_json, all_pages, page_size, namespace_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6160,7 +6159,7 @@ def list_parser_meta_plugins(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6224,7 +6223,7 @@ def list_parsers(ctx, from_json, all_pages, page_size, namespace_name, is_match_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6299,7 +6298,7 @@ def list_properties_metadata(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6366,7 +6365,7 @@ def list_query_work_requests(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6430,7 +6429,7 @@ def list_recalled_data(ctx, from_json, all_pages, page_size, namespace_name, lim if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6494,7 +6493,7 @@ def list_recalled_info(ctx, from_json, all_pages, page_size, namespace_name, lim if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6561,7 +6560,7 @@ def list_resource_categories(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6631,7 +6630,7 @@ def list_rules(ctx, from_json, all_pages, page_size, namespace_name, compartment if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6706,7 +6705,7 @@ def list_scheduled_tasks(ctx, from_json, all_pages, page_size, namespace_name, t if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6785,7 +6784,7 @@ def list_source_associations(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -6860,10 +6859,10 @@ def list_source_event_types(ctx, from_json, all_pages, page_size, namespace_name if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -6930,10 +6929,10 @@ def list_source_extended_field_definitions(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -6993,7 +6992,7 @@ def list_source_label_operators(ctx, from_json, all_pages, page_size, namespace_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7050,7 +7049,7 @@ def list_source_meta_functions(ctx, from_json, all_pages, page_size, namespace_n if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7109,10 +7108,10 @@ def list_source_patterns(ctx, from_json, all_pages, page_size, namespace_name, s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -7185,7 +7184,7 @@ def list_sources(ctx, from_json, all_pages, page_size, namespace_name, compartme if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7267,10 +7266,10 @@ def list_storage_work_request_errors(ctx, from_json, all_pages, page_size, compa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7340,7 +7339,7 @@ def list_storage_work_requests(ctx, from_json, all_pages, page_size, compartment if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7410,7 +7409,7 @@ def list_supported_char_encodings(ctx, from_json, all_pages, page_size, namespac if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7461,7 +7460,7 @@ def list_supported_timezones(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7520,7 +7519,7 @@ def list_templates(ctx, from_json, all_pages, page_size, namespace_name, compart if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7593,10 +7592,10 @@ def list_upload_files(ctx, from_json, all_pages, page_size, namespace_name, uplo if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(upload_reference, six.string_types) and len(upload_reference.strip()) == 0: + if isinstance(upload_reference, str) and len(upload_reference.strip()) == 0: raise click.UsageError('Parameter --upload-reference cannot be whitespace or empty string') kwargs = {} @@ -7659,10 +7658,10 @@ def list_upload_warnings(ctx, from_json, all_pages, page_size, namespace_name, u if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(upload_reference, six.string_types) and len(upload_reference.strip()) == 0: + if isinstance(upload_reference, str) and len(upload_reference.strip()) == 0: raise click.UsageError('Parameter --upload-reference cannot be whitespace or empty string') kwargs = {} @@ -7721,7 +7720,7 @@ def list_uploads(ctx, from_json, all_pages, page_size, namespace_name, name, nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7795,7 +7794,7 @@ def list_warnings(ctx, from_json, all_pages, page_size, namespace_name, compartm if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -7874,10 +7873,10 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -7932,10 +7931,10 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, namespace_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -7990,7 +7989,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, namespace_name, com if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8040,7 +8039,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, namespace_name, com @cli_util.wrap_exceptions def offboard_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8092,7 +8091,7 @@ def offboard_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def onboard_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8143,7 +8142,7 @@ def onboard_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def parse_query(ctx, from_json, namespace_name, query_string, sub_system): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8176,10 +8175,10 @@ def parse_query(ctx, from_json, namespace_name, query_string, sub_system): @cli_util.wrap_exceptions def pause_scheduled_task(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, scheduled_task_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') kwargs = {} @@ -8236,7 +8235,7 @@ def pause_scheduled_task(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def purge_storage_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, time_data_ended, compartment_id_in_subtree, purge_query_string, data_type, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8304,10 +8303,10 @@ def purge_storage_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def put_query_work_request_background(ctx, from_json, namespace_name, work_request_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -8355,7 +8354,7 @@ def put_query_work_request_background(ctx, from_json, namespace_name, work_reque @cli_util.wrap_exceptions def query(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, query_string, sub_system, compartment_id_in_subtree, saved_search_id, max_total_count, time_filter, scope_filters, variables, query_timeout_in_seconds, should_run_async, async_mode, should_include_total_count, should_include_columns, should_include_fields, should_use_acceleration, page, limit): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8468,7 +8467,7 @@ def query(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_second @cli_util.wrap_exceptions def recall_archived_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, time_data_ended, time_data_started, data_type, log_sets, query_parameterconflict, purpose, is_recall_new_data_only, is_use_recommended_data_set, collection_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8555,7 +8554,7 @@ def recall_archived_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def register_lookup(ctx, from_json, namespace_name, type, register_lookup_content_file_body, name, description, char_encoding, is_hidden, expect, compartment_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8604,7 +8603,7 @@ def register_lookup(ctx, from_json, namespace_name, type, register_lookup_conten @cli_util.wrap_exceptions def release_recalled_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, time_data_ended, time_data_started, data_type, collection_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8671,10 +8670,10 @@ def release_recalled_data(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def remove_entity_associations(ctx, from_json, namespace_name, log_analytics_entity_id, association_entities, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_entity_id, six.string_types) and len(log_analytics_entity_id.strip()) == 0: + if isinstance(log_analytics_entity_id, str) and len(log_analytics_entity_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-entity-id cannot be whitespace or empty string') kwargs = {} @@ -8707,7 +8706,7 @@ def remove_entity_associations(ctx, from_json, namespace_name, log_analytics_ent @cli_util.wrap_exceptions def remove_preferences(ctx, from_json, namespace_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8739,7 +8738,7 @@ def remove_preferences(ctx, from_json, namespace_name, items): @cli_util.wrap_exceptions def remove_resource_categories(ctx, from_json, namespace_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8772,10 +8771,10 @@ def remove_resource_categories(ctx, from_json, namespace_name, items): @cli_util.wrap_exceptions def remove_source_event_types(ctx, from_json, namespace_name, source_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(source_name, six.string_types) and len(source_name.strip()) == 0: + if isinstance(source_name, str) and len(source_name.strip()) == 0: raise click.UsageError('Parameter --source-name cannot be whitespace or empty string') kwargs = {} @@ -8810,10 +8809,10 @@ def remove_source_event_types(ctx, from_json, namespace_name, source_name, items @cli_util.wrap_exceptions def resume_scheduled_task(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, scheduled_task_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') kwargs = {} @@ -8864,10 +8863,10 @@ def resume_scheduled_task(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def run(ctx, from_json, namespace_name, scheduled_task_id, time_start, time_end): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') kwargs = {} @@ -8896,7 +8895,7 @@ def run(ctx, from_json, namespace_name, scheduled_task_id, time_start, time_end) @cli_util.wrap_exceptions def set_unprocessed_data_bucket(ctx, from_json, namespace_name, bucket_name, is_enabled): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8925,7 +8924,7 @@ def set_unprocessed_data_bucket(ctx, from_json, namespace_name, bucket_name, is_ @cli_util.wrap_exceptions def suggest(ctx, from_json, namespace_name, compartment_id, query_string, sub_system, compartment_id_in_subtree): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -8959,7 +8958,7 @@ def suggest(ctx, from_json, namespace_name, compartment_id, query_string, sub_sy @cli_util.wrap_exceptions def suppress_warning(ctx, from_json, namespace_name, compartment_id, warning_references): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -9023,7 +9022,7 @@ def suppress_warning(ctx, from_json, namespace_name, compartment_id, warning_ref @cli_util.wrap_exceptions def test_parser(ctx, from_json, namespace_name, content, description, display_name, encoding, example_content, field_maps, footer_content, header_content, name, is_default, is_single_line_content, is_system, language, time_updated, log_type_test_request_version, metadata, parser_ignoreline_characters, is_hidden, parser_sequence, parser_timezone, is_parser_written_once, parser_functions, should_tokenize_original_text, field_delimiter, field_qualifier, type, is_namespace_aware, is_position_aware, scope, req_origin_module): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -9139,7 +9138,7 @@ def test_parser(ctx, from_json, namespace_name, content, description, display_na @cli_util.wrap_exceptions def unsuppress_warning(ctx, from_json, namespace_name, compartment_id, warning_references): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -9189,10 +9188,10 @@ def unsuppress_warning(ctx, from_json, namespace_name, compartment_id, warning_r @cli_util.wrap_exceptions def update_ingest_time_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, ingest_time_rule_id, id, compartment_id, display_name, description, freeform_tags, defined_tags, time_created, time_updated, lifecycle_state, is_enabled, conditions, actions, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(ingest_time_rule_id, six.string_types) and len(ingest_time_rule_id.strip()) == 0: + if isinstance(ingest_time_rule_id, str) and len(ingest_time_rule_id.strip()) == 0: raise click.UsageError('Parameter --ingest-time-rule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or conditions or actions: @@ -9303,10 +9302,10 @@ def update_ingest_time_rule(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_ingest_time_rule_ingest_time_rule_field_condition(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, ingest_time_rule_id, id, compartment_id, display_name, conditions_field_name, conditions_field_operator, conditions_field_value, description, freeform_tags, defined_tags, time_created, time_updated, lifecycle_state, is_enabled, actions, if_match, conditions_additional_conditions): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(ingest_time_rule_id, six.string_types) and len(ingest_time_rule_id.strip()) == 0: + if isinstance(ingest_time_rule_id, str) and len(ingest_time_rule_id.strip()) == 0: raise click.UsageError('Parameter --ingest-time-rule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or actions: @@ -9409,10 +9408,10 @@ def update_ingest_time_rule_ingest_time_rule_field_condition(ctx, from_json, for @cli_util.wrap_exceptions def update_log_analytics_em_bridge(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, log_analytics_em_bridge_id, display_name, description, bucket_name, freeform_tags, defined_tags, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_em_bridge_id, six.string_types) and len(log_analytics_em_bridge_id.strip()) == 0: + if isinstance(log_analytics_em_bridge_id, str) and len(log_analytics_em_bridge_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-em-bridge-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -9499,10 +9498,10 @@ def update_log_analytics_em_bridge(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_log_analytics_entity(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, log_analytics_entity_id, name, management_agent_id, timezone_region, hostname, properties, freeform_tags, defined_tags, time_last_discovered, metadata, cloud_resource_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_entity_id, six.string_types) and len(log_analytics_entity_id.strip()) == 0: + if isinstance(log_analytics_entity_id, str) and len(log_analytics_entity_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-entity-id cannot be whitespace or empty string') if not force: if properties or freeform_tags or defined_tags or metadata: @@ -9595,10 +9594,10 @@ def update_log_analytics_entity(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_log_analytics_entity_type(ctx, from_json, force, namespace_name, entity_type_name, category, properties, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(entity_type_name, six.string_types) and len(entity_type_name.strip()) == 0: + if isinstance(entity_type_name, str) and len(entity_type_name.strip()) == 0: raise click.UsageError('Parameter --entity-type-name cannot be whitespace or empty string') if not force: if properties: @@ -9644,10 +9643,10 @@ def update_log_analytics_entity_type(ctx, from_json, force, namespace_name, enti @cli_util.wrap_exceptions def update_log_analytics_log_group(ctx, from_json, force, namespace_name, log_analytics_log_group_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_log_group_id, six.string_types) and len(log_analytics_log_group_id.strip()) == 0: + if isinstance(log_analytics_log_group_id, str) and len(log_analytics_log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-log-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -9715,10 +9714,10 @@ def update_log_analytics_log_group(ctx, from_json, force, namespace_name, log_an @cli_util.wrap_exceptions def update_log_analytics_object_collection_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, log_analytics_object_collection_rule_id, description, log_group_id, log_source_name, entity_id, char_encoding, is_enabled, timezone, log_set, log_set_key, log_set_ext_regex, overrides, object_name_filters, stream_id, stream_cursor_type, stream_cursor_time, defined_tags, freeform_tags, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(log_analytics_object_collection_rule_id, six.string_types) and len(log_analytics_object_collection_rule_id.strip()) == 0: + if isinstance(log_analytics_object_collection_rule_id, str) and len(log_analytics_object_collection_rule_id.strip()) == 0: raise click.UsageError('Parameter --log-analytics-object-collection-rule-id cannot be whitespace or empty string') if not force: if overrides or object_name_filters or defined_tags or freeform_tags: @@ -9839,10 +9838,10 @@ def update_log_analytics_object_collection_rule(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_lookup(ctx, from_json, force, namespace_name, lookup_name, default_match_value, description, fields, max_matches, categories, freeform_tags, defined_tags, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(lookup_name, six.string_types) and len(lookup_name.strip()) == 0: + if isinstance(lookup_name, str) and len(lookup_name.strip()) == 0: raise click.UsageError('Parameter --lookup-name cannot be whitespace or empty string') if not force: if fields or categories or freeform_tags or defined_tags: @@ -9905,10 +9904,10 @@ def update_lookup(ctx, from_json, force, namespace_name, lookup_name, default_ma @cli_util.wrap_exceptions def update_lookup_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, lookup_name, update_lookup_file_body, is_force, char_encoding, if_match, expect): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(lookup_name, six.string_types) and len(lookup_name.strip()) == 0: + if isinstance(lookup_name, str) and len(lookup_name.strip()) == 0: raise click.UsageError('Parameter --lookup-name cannot be whitespace or empty string') kwargs = {} @@ -9974,7 +9973,7 @@ def update_lookup_data(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_preferences(ctx, from_json, namespace_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10006,7 +10005,7 @@ def update_preferences(ctx, from_json, namespace_name, items): @cli_util.wrap_exceptions def update_resource_categories(ctx, from_json, namespace_name, items): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10049,10 +10048,10 @@ def update_resource_categories(ctx, from_json, namespace_name, items): @cli_util.wrap_exceptions def update_scheduled_task(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, scheduled_task_id, kind, display_name, description, freeform_tags, defined_tags, schedules, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or schedules: @@ -10138,10 +10137,10 @@ def update_scheduled_task(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_scheduled_task_update_standard_task_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, scheduled_task_id, display_name, description, freeform_tags, defined_tags, schedules, action, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or schedules or action: @@ -10220,7 +10219,7 @@ def update_scheduled_task_update_standard_task_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_storage(ctx, from_json, force, namespace_name, archiving_configuration, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') if not force: if archiving_configuration: @@ -10260,7 +10259,7 @@ def update_storage(ctx, from_json, force, namespace_name, archiving_configuratio @cli_util.wrap_exceptions def upload_discovery_data(ctx, from_json, namespace_name, upload_discovery_data_details, opc_meta_properties, discovery_data_type, log_group_id, payload_type, content_type, expect): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10306,7 +10305,7 @@ def upload_discovery_data(ctx, from_json, namespace_name, upload_discovery_data_ @cli_util.wrap_exceptions def upload_log_events_file(ctx, from_json, namespace_name, log_group_id, upload_log_events_file_details, log_set, payload_type, content_type, opc_meta_properties, expect): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10361,7 +10360,7 @@ def upload_log_events_file(ctx, from_json, namespace_name, log_group_id, upload_ @cli_util.wrap_exceptions def upload_log_file(ctx, from_json, namespace_name, log_source_name, filename, opc_meta_loggrpid, upload_log_file_body, upload_name, entity_id, timezone, char_encoding, date_format, date_year, invalidate_cache, content_md5, content_type, log_set, expect): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10419,7 +10418,7 @@ def upload_log_file(ctx, from_json, namespace_name, log_source_name, filename, o @cli_util.wrap_exceptions def upload_otlp_logs(ctx, from_json, namespace_name, opc_meta_loggrpid, upload_otlp_logs_details, log_set, content_type, opc_meta_properties, expect): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10463,7 +10462,7 @@ def upload_otlp_logs(ctx, from_json, namespace_name, opc_meta_loggrpid, upload_o @cli_util.wrap_exceptions def upsert_associations(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, compartment_id, items, is_from_republish): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10531,7 +10530,7 @@ def upsert_associations(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def upsert_field(ctx, from_json, namespace_name, data_type, is_multi_valued, description, display_name, name, is_keep_duplicates, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10591,7 +10590,7 @@ def upsert_field(ctx, from_json, namespace_name, data_type, is_multi_valued, des @cli_util.wrap_exceptions def upsert_label(ctx, from_json, namespace_name, aliases, suggest_type, description, display_name, edit_version, impact, is_system, name, priority, recommendation, type, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10686,7 +10685,7 @@ def upsert_label(ctx, from_json, namespace_name, aliases, suggest_type, descript @cli_util.wrap_exceptions def upsert_parser(ctx, from_json, namespace_name, content, description, display_name, edit_version, encoding, example_content, field_maps, footer_content, header_content, name, is_default, is_single_line_content, is_system, language, log_type_test_request_version, parser_ignoreline_characters, parser_sequence, parser_timezone, is_parser_written_once, parser_functions, should_tokenize_original_text, field_delimiter, field_qualifier, type, is_namespace_aware, categories, is_position_aware, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -10866,7 +10865,7 @@ def upsert_parser(ctx, from_json, namespace_name, content, description, display_ @cli_util.wrap_exceptions def upsert_source(ctx, from_json, namespace_name, label_conditions, data_filter_definitions, database_credential, extended_field_definitions, is_for_cloud, labels, metric_definitions, metrics, oob_parsers, parameters, patterns, description, display_name, edit_version, functions, source_id, name, is_secure_content, is_system, parsers, rule_id, type_name, warning_config, metadata_fields, label_definitions, entity_types, is_timezone_override, user_parsers, categories, endpoints, source_properties, create_like_source_id, is_incremental, is_ignore_warning, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11001,7 +11000,7 @@ def upsert_source(ctx, from_json, namespace_name, label_conditions, data_filter_ @cli_util.wrap_exceptions def validate_association_parameters(ctx, from_json, namespace_name, compartment_id, items, limit, page, sort_order, sort_by): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11042,7 +11041,7 @@ def validate_association_parameters(ctx, from_json, namespace_name, compartment_ @cli_util.wrap_exceptions def validate_endpoint(ctx, from_json, namespace_name, endpoint_type): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11071,7 +11070,7 @@ def validate_endpoint(ctx, from_json, namespace_name, endpoint_type): @cli_util.wrap_exceptions def validate_endpoint_log_list_type_endpoint(ctx, from_json, namespace_name, list_endpoint, log_endpoints): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11102,7 +11101,7 @@ def validate_endpoint_log_list_type_endpoint(ctx, from_json, namespace_name, lis @cli_util.wrap_exceptions def validate_endpoint_log_type_endpoint(ctx, from_json, namespace_name, log_endpoint): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11133,7 +11132,7 @@ def validate_endpoint_log_type_endpoint(ctx, from_json, namespace_name, log_endp @cli_util.wrap_exceptions def validate_file(ctx, from_json, namespace_name, object_location, filename): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11162,7 +11161,7 @@ def validate_file(ctx, from_json, namespace_name, object_location, filename): @cli_util.wrap_exceptions def validate_label_condition(ctx, from_json, namespace_name, condition_string, condition_block, field_values): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11267,7 +11266,7 @@ def validate_label_condition(ctx, from_json, namespace_name, condition_string, c @cli_util.wrap_exceptions def validate_source(ctx, from_json, namespace_name, label_conditions, data_filter_definitions, database_credential, extended_field_definitions, is_for_cloud, labels, metric_definitions, metrics, oob_parsers, parameters, patterns, description, display_name, edit_version, functions, source_id, name, is_secure_content, is_system, parsers, rule_id, type_name, warning_config, metadata_fields, label_definitions, entity_types, is_timezone_override, user_parsers, categories, endpoints, source_properties, create_like_source_id, is_incremental, is_ignore_warning): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11472,7 +11471,7 @@ def validate_source(ctx, from_json, namespace_name, label_conditions, data_filte @cli_util.wrap_exceptions def validate_source_extended_field_details(ctx, from_json, namespace_name, label_conditions, association_count, association_entity, data_filter_definitions, database_credential, extended_field_definitions, is_for_cloud, labels, metric_definitions, metrics, oob_parsers, parameters, pattern_count, patterns, description, display_name, edit_version, functions, source_id, name, is_secure_content, is_system, parsers, is_auto_association_enabled, is_auto_association_override, rule_id, type_name, type_display_name, warning_config, metadata_fields, label_definitions, entity_types, is_timezone_override, user_parsers, time_updated, event_types, categories, endpoints, source_properties, lifecycle_state): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11621,7 +11620,7 @@ def validate_source_extended_field_details(ctx, from_json, namespace_name, label @cli_util.wrap_exceptions def validate_source_mapping(ctx, from_json, namespace_name, object_location, filename, log_source_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -11648,10 +11647,10 @@ def validate_source_mapping(ctx, from_json, namespace_name, object_location, fil @cli_util.wrap_exceptions def verify(ctx, from_json, namespace_name, scheduled_task_id, should_include_results): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(scheduled_task_id, six.string_types) and len(scheduled_task_id.strip()) == 0: + if isinstance(scheduled_task_id, str) and len(scheduled_task_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-task-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/logging/src/oci_cli_logging_management/generated/loggingmanagement_cli.py b/services/logging/src/oci_cli_logging_management/generated/loggingmanagement_cli.py index cbd0345ec..05fc004f4 100644 --- a/services/logging/src/oci_cli_logging_management/generated/loggingmanagement_cli.py +++ b/services/logging/src/oci_cli_logging_management/generated/loggingmanagement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -97,7 +96,7 @@ def log_saved_search_group(): @cli_util.wrap_exceptions def change_log_group_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, log_group_id, compartment_id, if_match): - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') kwargs = {} @@ -161,10 +160,10 @@ def change_log_group_compartment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def change_log_log_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, log_group_id, log_id, target_log_group_id, if_match): - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') - if isinstance(log_id, six.string_types) and len(log_id.strip()) == 0: + if isinstance(log_id, str) and len(log_id.strip()) == 0: raise click.UsageError('Parameter --log-id cannot be whitespace or empty string') kwargs = {} @@ -225,7 +224,7 @@ def change_log_log_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def change_log_saved_search_compartment(ctx, from_json, log_saved_search_id, compartment_id, if_match): - if isinstance(log_saved_search_id, six.string_types) and len(log_saved_search_id.strip()) == 0: + if isinstance(log_saved_search_id, str) and len(log_saved_search_id.strip()) == 0: raise click.UsageError('Parameter --log-saved-search-id cannot be whitespace or empty string') kwargs = {} @@ -259,7 +258,7 @@ def change_log_saved_search_compartment(ctx, from_json, log_saved_search_id, com @cli_util.wrap_exceptions def change_unified_agent_configuration_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_agent_configuration_id, compartment_id, if_match): - if isinstance(unified_agent_configuration_id, six.string_types) and len(unified_agent_configuration_id.strip()) == 0: + if isinstance(unified_agent_configuration_id, str) and len(unified_agent_configuration_id.strip()) == 0: raise click.UsageError('Parameter --unified-agent-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -329,7 +328,7 @@ def change_unified_agent_configuration_compartment(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def create_log(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, log_group_id, display_name, log_type, is_enabled, defined_tags, freeform_tags, configuration, retention_duration): - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') kwargs = {} @@ -780,10 +779,10 @@ def create_unified_agent_configuration_unified_agent_monitoring_configuration_de @cli_util.wrap_exceptions def delete_log(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, log_group_id, log_id, if_match): - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') - if isinstance(log_id, six.string_types) and len(log_id.strip()) == 0: + if isinstance(log_id, str) and len(log_id.strip()) == 0: raise click.UsageError('Parameter --log-id cannot be whitespace or empty string') kwargs = {} @@ -840,7 +839,7 @@ def delete_log(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def delete_log_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, log_group_id, if_match): - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') kwargs = {} @@ -896,7 +895,7 @@ def delete_log_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_log_saved_search(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, log_saved_search_id, if_match): - if isinstance(log_saved_search_id, six.string_types) and len(log_saved_search_id.strip()) == 0: + if isinstance(log_saved_search_id, str) and len(log_saved_search_id.strip()) == 0: raise click.UsageError('Parameter --log-saved-search-id cannot be whitespace or empty string') kwargs = {} @@ -960,7 +959,7 @@ def delete_log_saved_search(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_unified_agent_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_agent_configuration_id, if_match): - if isinstance(unified_agent_configuration_id, six.string_types) and len(unified_agent_configuration_id.strip()) == 0: + if isinstance(unified_agent_configuration_id, str) and len(unified_agent_configuration_id.strip()) == 0: raise click.UsageError('Parameter --unified-agent-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1016,7 +1015,7 @@ def delete_unified_agent_configuration(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_work_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1068,10 +1067,10 @@ def delete_work_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_log(ctx, from_json, log_group_id, log_id): - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') - if isinstance(log_id, six.string_types) and len(log_id.strip()) == 0: + if isinstance(log_id, str) and len(log_id.strip()) == 0: raise click.UsageError('Parameter --log-id cannot be whitespace or empty string') kwargs = {} @@ -1094,7 +1093,7 @@ def get_log(ctx, from_json, log_group_id, log_id): @cli_util.wrap_exceptions def get_log_group(ctx, from_json, log_group_id): - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') kwargs = {} @@ -1116,7 +1115,7 @@ def get_log_group(ctx, from_json, log_group_id): @cli_util.wrap_exceptions def get_log_saved_search(ctx, from_json, log_saved_search_id): - if isinstance(log_saved_search_id, six.string_types) and len(log_saved_search_id.strip()) == 0: + if isinstance(log_saved_search_id, str) and len(log_saved_search_id.strip()) == 0: raise click.UsageError('Parameter --log-saved-search-id cannot be whitespace or empty string') kwargs = {} @@ -1138,7 +1137,7 @@ def get_log_saved_search(ctx, from_json, log_saved_search_id): @cli_util.wrap_exceptions def get_unified_agent_configuration(ctx, from_json, unified_agent_configuration_id): - if isinstance(unified_agent_configuration_id, six.string_types) and len(unified_agent_configuration_id.strip()) == 0: + if isinstance(unified_agent_configuration_id, str) and len(unified_agent_configuration_id.strip()) == 0: raise click.UsageError('Parameter --unified-agent-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1160,7 +1159,7 @@ def get_unified_agent_configuration(ctx, from_json, unified_agent_configuration_ @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1316,7 +1315,7 @@ def list_logs(ctx, from_json, all_pages, page_size, log_group_id, log_type, sour if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') kwargs = {} @@ -1471,7 +1470,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1522,7 +1521,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1640,10 +1639,10 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, sta @cli_util.wrap_exceptions def update_log(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, log_group_id, log_id, display_name, is_enabled, defined_tags, freeform_tags, retention_duration, configuration, if_match): - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') - if isinstance(log_id, six.string_types) and len(log_id.strip()) == 0: + if isinstance(log_id, str) and len(log_id.strip()) == 0: raise click.UsageError('Parameter --log-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or configuration: @@ -1732,7 +1731,7 @@ def update_log(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_log_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, log_group_id, display_name, description, defined_tags, freeform_tags, if_match): - if isinstance(log_group_id, six.string_types) and len(log_group_id.strip()) == 0: + if isinstance(log_group_id, str) and len(log_group_id.strip()) == 0: raise click.UsageError('Parameter --log-group-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -1815,7 +1814,7 @@ def update_log_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_log_saved_search(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, log_saved_search_id, name, description, query_parameterconflict, defined_tags, freeform_tags, if_match): - if isinstance(log_saved_search_id, six.string_types) and len(log_saved_search_id.strip()) == 0: + if isinstance(log_saved_search_id, str) and len(log_saved_search_id.strip()) == 0: raise click.UsageError('Parameter --log-saved-search-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -1899,7 +1898,7 @@ def update_log_saved_search(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_unified_agent_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_agent_configuration_id, display_name, is_enabled, service_configuration, defined_tags, freeform_tags, description, group_association, if_match): - if isinstance(unified_agent_configuration_id, six.string_types) and len(unified_agent_configuration_id.strip()) == 0: + if isinstance(unified_agent_configuration_id, str) and len(unified_agent_configuration_id.strip()) == 0: raise click.UsageError('Parameter --unified-agent-configuration-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or service_configuration or group_association: @@ -1991,7 +1990,7 @@ def update_unified_agent_configuration(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_unified_agent_configuration_unified_agent_logging_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_agent_configuration_id, display_name, is_enabled, service_configuration_sources, service_configuration_destination, defined_tags, freeform_tags, description, group_association, if_match, service_configuration_filter): - if isinstance(unified_agent_configuration_id, six.string_types) and len(unified_agent_configuration_id.strip()) == 0: + if isinstance(unified_agent_configuration_id, str) and len(unified_agent_configuration_id.strip()) == 0: raise click.UsageError('Parameter --unified-agent-configuration-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or group_association: @@ -2086,7 +2085,7 @@ def update_unified_agent_configuration_unified_agent_logging_configuration(ctx, @cli_util.wrap_exceptions def update_unified_agent_configuration_unified_agent_monitoring_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, unified_agent_configuration_id, display_name, is_enabled, service_configuration_application_configurations, defined_tags, freeform_tags, description, group_association, if_match): - if isinstance(unified_agent_configuration_id, six.string_types) and len(unified_agent_configuration_id.strip()) == 0: + if isinstance(unified_agent_configuration_id, str) and len(unified_agent_configuration_id.strip()) == 0: raise click.UsageError('Parameter --unified-agent-configuration-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or group_association: diff --git a/services/loggingingestion/src/oci_cli_logging/generated/logging_cli.py b/services/loggingingestion/src/oci_cli_logging/generated/logging_cli.py index 8349a942d..d1e8646e6 100644 --- a/services/loggingingestion/src/oci_cli_logging/generated/logging_cli.py +++ b/services/loggingingestion/src/oci_cli_logging/generated/logging_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -44,7 +43,7 @@ def log_entry_group(): @cli_util.wrap_exceptions def put_logs(ctx, from_json, log_id, specversion, log_entry_batches, timestamp_opc_agent_processing, opc_agent_version): - if isinstance(log_id, six.string_types) and len(log_id.strip()) == 0: + if isinstance(log_id, str) and len(log_id.strip()) == 0: raise click.UsageError('Parameter --log-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/loggingsearch/src/oci_cli_log_search/generated/logsearch_cli.py b/services/loggingsearch/src/oci_cli_log_search/generated/logsearch_cli.py index facd9efb2..afd2c9a5a 100644 --- a/services/loggingsearch/src/oci_cli_log_search/generated/logsearch_cli.py +++ b/services/loggingsearch/src/oci_cli_log_search/generated/logsearch_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 diff --git a/services/lustre_file_storage/src/oci_cli_lustre_file_storage/generated/lustrefilestorage_cli.py b/services/lustre_file_storage/src/oci_cli_lustre_file_storage/generated/lustrefilestorage_cli.py index 9c7b45635..341cd7a33 100644 --- a/services/lustre_file_storage/src/oci_cli_lustre_file_storage/generated/lustrefilestorage_cli.py +++ b/services/lustre_file_storage/src/oci_cli_lustre_file_storage/generated/lustrefilestorage_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -102,7 +101,7 @@ def object_storage_link_collection_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -131,7 +130,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_lustre_file_system_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, lustre_file_system_id, compartment_id, if_match): - if isinstance(lustre_file_system_id, six.string_types) and len(lustre_file_system_id.strip()) == 0: + if isinstance(lustre_file_system_id, str) and len(lustre_file_system_id.strip()) == 0: raise click.UsageError('Parameter --lustre-file-system-id cannot be whitespace or empty string') kwargs = {} @@ -192,7 +191,7 @@ def change_lustre_file_system_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_object_storage_link_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, object_storage_link_id, compartment_id, if_match): - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') kwargs = {} @@ -437,7 +436,7 @@ def create_object_storage_link(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_lustre_file_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, lustre_file_system_id, if_match): - if isinstance(lustre_file_system_id, six.string_types) and len(lustre_file_system_id.strip()) == 0: + if isinstance(lustre_file_system_id, str) and len(lustre_file_system_id.strip()) == 0: raise click.UsageError('Parameter --lustre-file-system-id cannot be whitespace or empty string') kwargs = {} @@ -493,7 +492,7 @@ def delete_lustre_file_system(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_object_storage_link(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, object_storage_link_id, if_match): - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') kwargs = {} @@ -544,7 +543,7 @@ def delete_object_storage_link(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_lustre_file_system(ctx, from_json, lustre_file_system_id): - if isinstance(lustre_file_system_id, six.string_types) and len(lustre_file_system_id.strip()) == 0: + if isinstance(lustre_file_system_id, str) and len(lustre_file_system_id.strip()) == 0: raise click.UsageError('Parameter --lustre-file-system-id cannot be whitespace or empty string') kwargs = {} @@ -566,7 +565,7 @@ def get_lustre_file_system(ctx, from_json, lustre_file_system_id): @cli_util.wrap_exceptions def get_object_storage_link(ctx, from_json, object_storage_link_id): - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') kwargs = {} @@ -590,10 +589,10 @@ def get_object_storage_link(ctx, from_json, object_storage_link_id): @cli_util.wrap_exceptions def get_sync_job(ctx, from_json, object_storage_link_id, sync_job_id, if_match): - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') - if isinstance(sync_job_id, six.string_types) and len(sync_job_id.strip()) == 0: + if isinstance(sync_job_id, str) and len(sync_job_id.strip()) == 0: raise click.UsageError('Parameter --sync-job-id cannot be whitespace or empty string') kwargs = {} @@ -618,7 +617,7 @@ def get_sync_job(ctx, from_json, object_storage_link_id, sync_job_id, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -915,7 +914,7 @@ def list_sync_jobs(ctx, from_json, all_pages, page_size, object_storage_link_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') kwargs = {} @@ -976,7 +975,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1033,7 +1032,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1148,7 +1147,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def override_maintenance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, lustre_file_system_id, date_time_details, if_match): - if isinstance(lustre_file_system_id, six.string_types) and len(lustre_file_system_id.strip()) == 0: + if isinstance(lustre_file_system_id, str) and len(lustre_file_system_id.strip()) == 0: raise click.UsageError('Parameter --lustre-file-system-id cannot be whitespace or empty string') kwargs = {} @@ -1207,7 +1206,7 @@ def override_maintenance(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def start_export_to_object(ctx, from_json, object_storage_link_id, if_match): - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') kwargs = {} @@ -1232,7 +1231,7 @@ def start_export_to_object(ctx, from_json, object_storage_link_id, if_match): @cli_util.wrap_exceptions def start_import_from_object(ctx, from_json, object_storage_link_id, if_match): - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') kwargs = {} @@ -1257,7 +1256,7 @@ def start_import_from_object(ctx, from_json, object_storage_link_id, if_match): @cli_util.wrap_exceptions def stop_export_to_object(ctx, from_json, object_storage_link_id, if_match): - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') kwargs = {} @@ -1282,7 +1281,7 @@ def stop_export_to_object(ctx, from_json, object_storage_link_id, if_match): @cli_util.wrap_exceptions def stop_import_from_object(ctx, from_json, object_storage_link_id, if_match): - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') kwargs = {} @@ -1326,7 +1325,7 @@ def stop_import_from_object(ctx, from_json, object_storage_link_id, if_match): @cli_util.wrap_exceptions def update_lustre_file_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, lustre_file_system_id, display_name, file_system_description, freeform_tags, defined_tags, nsg_ids, kms_key_id, capacity_in_gbs, root_squash_configuration, maintenance_window, if_match): - if isinstance(lustre_file_system_id, six.string_types) and len(lustre_file_system_id.strip()) == 0: + if isinstance(lustre_file_system_id, str) and len(lustre_file_system_id.strip()) == 0: raise click.UsageError('Parameter --lustre-file-system-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or nsg_ids or root_squash_configuration or maintenance_window: @@ -1427,7 +1426,7 @@ def update_lustre_file_system(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_object_storage_link(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, object_storage_link_id, display_name, is_overwrite, freeform_tags, defined_tags, if_match): - if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0: + if isinstance(object_storage_link_id, str) and len(object_storage_link_id.strip()) == 0: raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/managed_kafka/src/oci_cli_kafka_cluster/generated/kafkacluster_cli.py b/services/managed_kafka/src/oci_cli_kafka_cluster/generated/kafkacluster_cli.py index d4414fa69..ae32569c0 100644 --- a/services/managed_kafka/src/oci_cli_kafka_cluster/generated/kafkacluster_cli.py +++ b/services/managed_kafka/src/oci_cli_kafka_cluster/generated/kafkacluster_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -102,7 +101,7 @@ def kafka_cluster_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -131,7 +130,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_kafka_cluster_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, compartment_id, if_match): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -189,7 +188,7 @@ def change_kafka_cluster_compartment(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def change_kafka_cluster_config_compartment(ctx, from_json, kafka_cluster_config_id, compartment_id, if_match): - if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0: + if isinstance(kafka_cluster_config_id, str) and len(kafka_cluster_config_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string') kwargs = {} @@ -377,7 +376,7 @@ def create_kafka_cluster_config(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_kafka_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, if_match): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -433,7 +432,7 @@ def delete_kafka_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_kafka_cluster_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_config_id, if_match): - if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0: + if isinstance(kafka_cluster_config_id, str) and len(kafka_cluster_config_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string') kwargs = {} @@ -495,10 +494,10 @@ def delete_kafka_cluster_config(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_kafka_cluster_config_version(ctx, from_json, kafka_cluster_config_id, version_number, if_match): - if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0: + if isinstance(kafka_cluster_config_id, str) and len(kafka_cluster_config_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string') - if isinstance(version_number, six.string_types) and len(version_number.strip()) == 0: + if isinstance(version_number, str) and len(version_number.strip()) == 0: raise click.UsageError('Parameter --version-number cannot be whitespace or empty string') kwargs = {} @@ -527,7 +526,7 @@ def delete_kafka_cluster_config_version(ctx, from_json, kafka_cluster_config_id, @cli_util.wrap_exceptions def disable_superuser(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, if_match): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -584,7 +583,7 @@ def disable_superuser(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def enable_superuser(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, compartment_id, secret_id, if_match): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -642,10 +641,10 @@ def enable_superuser(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_addon(ctx, from_json, kafka_cluster_id, addon_name): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') - if isinstance(addon_name, six.string_types) and len(addon_name.strip()) == 0: + if isinstance(addon_name, str) and len(addon_name.strip()) == 0: raise click.UsageError('Parameter --addon-name cannot be whitespace or empty string') kwargs = {} @@ -668,7 +667,7 @@ def get_addon(ctx, from_json, kafka_cluster_id, addon_name): @cli_util.wrap_exceptions def get_kafka_cluster(ctx, from_json, kafka_cluster_id): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -690,7 +689,7 @@ def get_kafka_cluster(ctx, from_json, kafka_cluster_id): @cli_util.wrap_exceptions def get_kafka_cluster_config(ctx, from_json, kafka_cluster_config_id): - if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0: + if isinstance(kafka_cluster_config_id, str) and len(kafka_cluster_config_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string') kwargs = {} @@ -713,10 +712,10 @@ def get_kafka_cluster_config(ctx, from_json, kafka_cluster_config_id): @cli_util.wrap_exceptions def get_kafka_cluster_config_version(ctx, from_json, kafka_cluster_config_id, version_number): - if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0: + if isinstance(kafka_cluster_config_id, str) and len(kafka_cluster_config_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string') - if isinstance(version_number, six.string_types) and len(version_number.strip()) == 0: + if isinstance(version_number, str) and len(version_number.strip()) == 0: raise click.UsageError('Parameter --version-number cannot be whitespace or empty string') kwargs = {} @@ -739,7 +738,7 @@ def get_kafka_cluster_config_version(ctx, from_json, kafka_cluster_config_id, ve @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -768,7 +767,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def install_addon(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, name, addon_type, kafka_cluster_id, description, if_match): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -836,7 +835,7 @@ def install_addon(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def install_addon_install_public_connectivity_addon_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, name, authentication_mechanism, network_cidrs, kafka_cluster_id, description, if_match): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -966,7 +965,7 @@ def list_addons(ctx, from_json, all_pages, page_size, kafka_cluster_id, lifecycl if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1027,7 +1026,7 @@ def list_kafka_cluster_config_versions(ctx, from_json, all_pages, page_size, kaf if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0: + if isinstance(kafka_cluster_config_id, str) and len(kafka_cluster_config_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string') kwargs = {} @@ -1264,7 +1263,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1321,7 +1320,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1434,10 +1433,10 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def uninstall_addon(ctx, from_json, kafka_cluster_id, addon_name, if_match): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') - if isinstance(addon_name, six.string_types) and len(addon_name.strip()) == 0: + if isinstance(addon_name, str) and len(addon_name.strip()) == 0: raise click.UsageError('Parameter --addon-name cannot be whitespace or empty string') kwargs = {} @@ -1469,10 +1468,10 @@ def uninstall_addon(ctx, from_json, kafka_cluster_id, addon_name, if_match): @cli_util.wrap_exceptions def update_addon(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, addon_name, addon_type, description, if_match): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') - if isinstance(addon_name, six.string_types) and len(addon_name.strip()) == 0: + if isinstance(addon_name, str) and len(addon_name.strip()) == 0: raise click.UsageError('Parameter --addon-name cannot be whitespace or empty string') kwargs = {} @@ -1542,10 +1541,10 @@ def update_addon(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def update_addon_update_public_connectivity_addon_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_cidrs, kafka_cluster_id, addon_name, description, if_match): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') - if isinstance(addon_name, six.string_types) and len(addon_name.strip()) == 0: + if isinstance(addon_name, str) and len(addon_name.strip()) == 0: raise click.UsageError('Parameter --addon-name cannot be whitespace or empty string') if not force: if network_cidrs: @@ -1631,7 +1630,7 @@ def update_addon_update_public_connectivity_addon_details(ctx, from_json, force, @cli_util.wrap_exceptions 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): - if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0: + if isinstance(kafka_cluster_id, str) and len(kafka_cluster_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string') if not force: if broker_shape or access_subnets or freeform_tags or defined_tags: @@ -1730,7 +1729,7 @@ def update_kafka_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions 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): - if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0: + if isinstance(kafka_cluster_config_id, str) and len(kafka_cluster_config_id.strip()) == 0: raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string') if not force: if latest_config or freeform_tags or defined_tags: diff --git a/services/management_agent/src/oci_cli_management_agent/generated/managementagent_cli.py b/services/management_agent/src/oci_cli_management_agent/generated/managementagent_cli.py index 82d27f902..c6bf07012 100644 --- a/services/management_agent/src/oci_cli_management_agent/generated/managementagent_cli.py +++ b/services/management_agent/src/oci_cli_management_agent/generated/managementagent_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -97,7 +96,7 @@ def management_agent_image_group(): @cli_util.wrap_exceptions def create_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_agent_id, type, name, compartment_id, if_match): - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') kwargs = {} @@ -173,7 +172,7 @@ def create_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def create_data_source_create_prometheus_emitter_data_source_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_agent_id, name, compartment_id, url, namespace, allow_metrics, proxy_url, connection_timeout, read_timeout, read_data_limit_in_kilobytes, schedule_mins, resource_group, metric_dimensions, if_match): - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') kwargs = {} @@ -401,10 +400,10 @@ def create_named_credential(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_agent_id, data_source_key, if_match): - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') - if isinstance(data_source_key, six.string_types) and len(data_source_key.strip()) == 0: + if isinstance(data_source_key, str) and len(data_source_key.strip()) == 0: raise click.UsageError('Parameter --data-source-key cannot be whitespace or empty string') kwargs = {} @@ -461,7 +460,7 @@ def delete_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_management_agent(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_agent_id, if_match): - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') kwargs = {} @@ -525,7 +524,7 @@ def delete_management_agent(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_management_agent_install_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_agent_install_key_id, if_match): - if isinstance(management_agent_install_key_id, six.string_types) and len(management_agent_install_key_id.strip()) == 0: + if isinstance(management_agent_install_key_id, str) and len(management_agent_install_key_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-install-key-id cannot be whitespace or empty string') kwargs = {} @@ -589,7 +588,7 @@ def delete_management_agent_install_key(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_named_credential(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, named_credential_id, if_match): - if isinstance(named_credential_id, six.string_types) and len(named_credential_id.strip()) == 0: + if isinstance(named_credential_id, str) and len(named_credential_id.strip()) == 0: raise click.UsageError('Parameter --named-credential-id cannot be whitespace or empty string') kwargs = {} @@ -642,7 +641,7 @@ def delete_named_credential(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -743,10 +742,10 @@ def get_auto_upgradable_config(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_data_source(ctx, from_json, management_agent_id, data_source_key): - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') - if isinstance(data_source_key, six.string_types) and len(data_source_key.strip()) == 0: + if isinstance(data_source_key, str) and len(data_source_key.strip()) == 0: raise click.UsageError('Parameter --data-source-key cannot be whitespace or empty string') kwargs = {} @@ -769,7 +768,7 @@ def get_data_source(ctx, from_json, management_agent_id, data_source_key): @cli_util.wrap_exceptions def get_management_agent(ctx, from_json, management_agent_id): - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') kwargs = {} @@ -791,7 +790,7 @@ def get_management_agent(ctx, from_json, management_agent_id): @cli_util.wrap_exceptions def get_management_agent_install_key(ctx, from_json, management_agent_install_key_id): - if isinstance(management_agent_install_key_id, six.string_types) and len(management_agent_install_key_id.strip()) == 0: + if isinstance(management_agent_install_key_id, str) and len(management_agent_install_key_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-install-key-id cannot be whitespace or empty string') kwargs = {} @@ -815,7 +814,7 @@ def get_management_agent_install_key(ctx, from_json, management_agent_install_ke @cli_util.wrap_exceptions def get_management_agent_install_key_content(ctx, from_json, file, management_agent_install_key_id, plugin_name): - if isinstance(management_agent_install_key_id, six.string_types) and len(management_agent_install_key_id.strip()) == 0: + if isinstance(management_agent_install_key_id, str) and len(management_agent_install_key_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-install-key-id cannot be whitespace or empty string') kwargs = {} @@ -861,7 +860,7 @@ def get_management_agent_install_key_content(ctx, from_json, file, management_ag @cli_util.wrap_exceptions def get_named_credential(ctx, from_json, named_credential_id): - if isinstance(named_credential_id, six.string_types) and len(named_credential_id.strip()) == 0: + if isinstance(named_credential_id, str) and len(named_credential_id.strip()) == 0: raise click.UsageError('Parameter --named-credential-id cannot be whitespace or empty string') kwargs = {} @@ -905,7 +904,7 @@ def get_named_credentials_metadatum(ctx, from_json, compartment_id, management_a @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -938,7 +937,7 @@ def list_availability_histories(ctx, from_json, all_pages, page_size, management if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') kwargs = {} @@ -1000,7 +999,7 @@ def list_data_sources(ctx, from_json, all_pages, page_size, management_agent_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') kwargs = {} @@ -1398,7 +1397,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1455,7 +1454,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1660,10 +1659,10 @@ def summarize_management_agent_plugin_counts(ctx, from_json, compartment_id, gro @cli_util.wrap_exceptions def update_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_agent_id, data_source_key, type, if_match): - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') - if isinstance(data_source_key, six.string_types) and len(data_source_key.strip()) == 0: + if isinstance(data_source_key, str) and len(data_source_key.strip()) == 0: raise click.UsageError('Parameter --data-source-key cannot be whitespace or empty string') kwargs = {} @@ -1737,10 +1736,10 @@ def update_data_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_data_source_update_prometheus_emitter_data_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, management_agent_id, data_source_key, url, allow_metrics, proxy_url, connection_timeout, read_timeout, read_data_limit_in_kilobytes, schedule_mins, resource_group, metric_dimensions, if_match): - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') - if isinstance(data_source_key, six.string_types) and len(data_source_key.strip()) == 0: + if isinstance(data_source_key, str) and len(data_source_key.strip()) == 0: raise click.UsageError('Parameter --data-source-key cannot be whitespace or empty string') if not force: if metric_dimensions: @@ -1835,7 +1834,7 @@ def update_data_source_update_prometheus_emitter_data_source_details(ctx, from_j @cli_util.wrap_exceptions def update_management_agent(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, management_agent_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(management_agent_id, six.string_types) and len(management_agent_id.strip()) == 0: + if isinstance(management_agent_id, str) and len(management_agent_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1905,7 +1904,7 @@ def update_management_agent(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_management_agent_install_key(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_agent_install_key_id, is_key_active, display_name, if_match): - if isinstance(management_agent_install_key_id, six.string_types) and len(management_agent_install_key_id.strip()) == 0: + if isinstance(management_agent_install_key_id, str) and len(management_agent_install_key_id.strip()) == 0: raise click.UsageError('Parameter --management-agent-install-key-id cannot be whitespace or empty string') kwargs = {} @@ -1971,7 +1970,7 @@ def update_management_agent_install_key(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def update_named_credential(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, named_credential_id, properties, description, freeform_tags, defined_tags, if_match): - if isinstance(named_credential_id, six.string_types) and len(named_credential_id.strip()) == 0: + if isinstance(named_credential_id, str) and len(named_credential_id.strip()) == 0: raise click.UsageError('Parameter --named-credential-id cannot be whitespace or empty string') if not force: if properties or freeform_tags or defined_tags: diff --git a/services/management_dashboard/src/oci_cli_dashx_apis/generated/dashxapis_cli.py b/services/management_dashboard/src/oci_cli_dashx_apis/generated/dashxapis_cli.py index c37ce7e33..9ae458ac8 100644 --- a/services/management_dashboard/src/oci_cli_dashx_apis/generated/dashxapis_cli.py +++ b/services/management_dashboard/src/oci_cli_dashx_apis/generated/dashxapis_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -59,7 +58,7 @@ def management_dashboard_group(): @cli_util.wrap_exceptions def change_management_dashboards_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_dashboard_id, compartment_id, if_match): - if isinstance(management_dashboard_id, six.string_types) and len(management_dashboard_id.strip()) == 0: + if isinstance(management_dashboard_id, str) and len(management_dashboard_id.strip()) == 0: raise click.UsageError('Parameter --management-dashboard-id cannot be whitespace or empty string') kwargs = {} @@ -116,7 +115,7 @@ def change_management_dashboards_compartment(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def change_management_saved_searches_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_saved_search_id, compartment_id, if_match): - if isinstance(management_saved_search_id, six.string_types) and len(management_saved_search_id.strip()) == 0: + if isinstance(management_saved_search_id, str) and len(management_saved_search_id.strip()) == 0: raise click.UsageError('Parameter --management-saved-search-id cannot be whitespace or empty string') kwargs = {} @@ -379,7 +378,7 @@ def create_management_saved_search(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_management_dashboard(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_dashboard_id, if_match): - if isinstance(management_dashboard_id, six.string_types) and len(management_dashboard_id.strip()) == 0: + if isinstance(management_dashboard_id, str) and len(management_dashboard_id.strip()) == 0: raise click.UsageError('Parameter --management-dashboard-id cannot be whitespace or empty string') kwargs = {} @@ -443,7 +442,7 @@ def delete_management_dashboard(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_management_saved_search(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_saved_search_id, if_match): - if isinstance(management_saved_search_id, six.string_types) and len(management_saved_search_id.strip()) == 0: + if isinstance(management_saved_search_id, str) and len(management_saved_search_id.strip()) == 0: raise click.UsageError('Parameter --management-saved-search-id cannot be whitespace or empty string') kwargs = {} @@ -503,7 +502,7 @@ def delete_management_saved_search(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def export_dashboard(ctx, from_json, export_dashboard_id, export_tags): - if isinstance(export_dashboard_id, six.string_types) and len(export_dashboard_id.strip()) == 0: + if isinstance(export_dashboard_id, str) and len(export_dashboard_id.strip()) == 0: raise click.UsageError('Parameter --export-dashboard-id cannot be whitespace or empty string') kwargs = {} @@ -527,7 +526,7 @@ def export_dashboard(ctx, from_json, export_dashboard_id, export_tags): @cli_util.wrap_exceptions def get_management_dashboard(ctx, from_json, management_dashboard_id): - if isinstance(management_dashboard_id, six.string_types) and len(management_dashboard_id.strip()) == 0: + if isinstance(management_dashboard_id, str) and len(management_dashboard_id.strip()) == 0: raise click.UsageError('Parameter --management-dashboard-id cannot be whitespace or empty string') kwargs = {} @@ -549,7 +548,7 @@ def get_management_dashboard(ctx, from_json, management_dashboard_id): @cli_util.wrap_exceptions def get_management_saved_search(ctx, from_json, management_saved_search_id): - if isinstance(management_saved_search_id, six.string_types) and len(management_saved_search_id.strip()) == 0: + if isinstance(management_saved_search_id, str) and len(management_saved_search_id.strip()) == 0: raise click.UsageError('Parameter --management-saved-search-id cannot be whitespace or empty string') kwargs = {} @@ -571,7 +570,7 @@ def get_management_saved_search(ctx, from_json, management_saved_search_id): @cli_util.wrap_exceptions def get_oob_management_dashboard(ctx, from_json, management_dashboard_id): - if isinstance(management_dashboard_id, six.string_types) and len(management_dashboard_id.strip()) == 0: + if isinstance(management_dashboard_id, str) and len(management_dashboard_id.strip()) == 0: raise click.UsageError('Parameter --management-dashboard-id cannot be whitespace or empty string') kwargs = {} @@ -593,7 +592,7 @@ def get_oob_management_dashboard(ctx, from_json, management_dashboard_id): @cli_util.wrap_exceptions def get_oob_management_saved_search(ctx, from_json, management_saved_search_id): - if isinstance(management_saved_search_id, six.string_types) and len(management_saved_search_id.strip()) == 0: + if isinstance(management_saved_search_id, str) and len(management_saved_search_id.strip()) == 0: raise click.UsageError('Parameter --management-saved-search-id cannot be whitespace or empty string') kwargs = {} @@ -921,7 +920,7 @@ def list_oob_management_saved_searches(ctx, from_json, all_pages, page_size, com @cli_util.wrap_exceptions def update_management_dashboard(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, management_dashboard_id, provider_id, provider_name, provider_version, tiles, display_name, description, compartment_id, is_oob_dashboard, is_show_in_home, metadata_version, is_show_description, screen_image, nls, ui_config, data_config, type, is_favorite, parameters_config, features_config, drilldown_config, freeform_tags, defined_tags, if_match): - if isinstance(management_dashboard_id, six.string_types) and len(management_dashboard_id.strip()) == 0: + if isinstance(management_dashboard_id, str) and len(management_dashboard_id.strip()) == 0: raise click.UsageError('Parameter --management-dashboard-id cannot be whitespace or empty string') if not force: if tiles or nls or ui_config or data_config or parameters_config or features_config or drilldown_config or freeform_tags or defined_tags: @@ -1067,7 +1066,7 @@ def update_management_dashboard(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_management_saved_search(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, management_saved_search_id, display_name, provider_id, provider_version, provider_name, compartment_id, is_oob_saved_search, description, nls, type, ui_config, data_config, screen_image, metadata_version, widget_template, widget_vm, parameters_config, features_config, drilldown_config, freeform_tags, defined_tags, if_match): - if isinstance(management_saved_search_id, six.string_types) and len(management_saved_search_id.strip()) == 0: + if isinstance(management_saved_search_id, str) and len(management_saved_search_id.strip()) == 0: raise click.UsageError('Parameter --management-saved-search-id cannot be whitespace or empty string') if not force: if nls or ui_config or data_config or parameters_config or features_config or drilldown_config or freeform_tags or defined_tags: diff --git a/services/management_dashboard/src/oci_cli_dashx_apis/management_dashboard_cli_extended.py b/services/management_dashboard/src/oci_cli_dashx_apis/management_dashboard_cli_extended.py index a45dac1d6..015a5e06c 100644 --- a/services/management_dashboard/src/oci_cli_dashx_apis/management_dashboard_cli_extended.py +++ b/services/management_dashboard/src/oci_cli_dashx_apis/management_dashboard_cli_extended.py @@ -4,7 +4,6 @@ from __future__ import print_function import click -import six from oci_cli import cli_util from oci_cli import json_skeleton_utils from services.management_dashboard.src.oci_cli_dashx_apis.generated import dashxapis_cli @@ -40,7 +39,7 @@ @cli_util.wrap_exceptions def export_dashboard(ctx, from_json, export_dashboard_id): - if isinstance(export_dashboard_id, six.string_types) and len(export_dashboard_id.strip()) == 0: + if isinstance(export_dashboard_id, str) and len(export_dashboard_id.strip()) == 0: raise click.UsageError('Parameter --export-dashboard-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/marketplace/src/oci_cli_account/generated/account_cli.py b/services/marketplace/src/oci_cli_account/generated/account_cli.py index 39edefd4f..ad91d3edc 100644 --- a/services/marketplace/src/oci_cli_account/generated/account_cli.py +++ b/services/marketplace/src/oci_cli_account/generated/account_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/marketplace/src/oci_cli_marketplace/generated/marketplace_cli.py b/services/marketplace/src/oci_cli_marketplace/generated/marketplace_cli.py index da5b16394..dda1c83c3 100644 --- a/services/marketplace/src/oci_cli_marketplace/generated/marketplace_cli.py +++ b/services/marketplace/src/oci_cli_marketplace/generated/marketplace_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -174,7 +173,7 @@ def listing_group(): @cli_util.wrap_exceptions def change_publication_compartment(ctx, from_json, publication_id, compartment_id, if_match): - if isinstance(publication_id, six.string_types) and len(publication_id.strip()) == 0: + if isinstance(publication_id, str) and len(publication_id.strip()) == 0: raise click.UsageError('Parameter --publication-id cannot be whitespace or empty string') kwargs = {} @@ -433,7 +432,7 @@ def create_publication_create_image_publication_package(ctx, from_json, wait_for @cli_util.wrap_exceptions def delete_accepted_agreement(ctx, from_json, accepted_agreement_id, signature, if_match): - if isinstance(accepted_agreement_id, six.string_types) and len(accepted_agreement_id.strip()) == 0: + if isinstance(accepted_agreement_id, str) and len(accepted_agreement_id.strip()) == 0: raise click.UsageError('Parameter --accepted-agreement-id cannot be whitespace or empty string') kwargs = {} @@ -464,7 +463,7 @@ def delete_accepted_agreement(ctx, from_json, accepted_agreement_id, signature, @cli_util.wrap_exceptions def delete_publication(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, publication_id, if_match): - if isinstance(publication_id, six.string_types) and len(publication_id.strip()) == 0: + if isinstance(publication_id, str) and len(publication_id.strip()) == 0: raise click.UsageError('Parameter --publication-id cannot be whitespace or empty string') kwargs = {} @@ -529,10 +528,10 @@ def delete_publication(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def export_listing(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_id, package_version, compartment_id, container_repository_path): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') - if isinstance(package_version, six.string_types) and len(package_version.strip()) == 0: + if isinstance(package_version, str) and len(package_version.strip()) == 0: raise click.UsageError('Parameter --package-version cannot be whitespace or empty string') kwargs = {} @@ -588,7 +587,7 @@ def export_listing(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def get_accepted_agreement(ctx, from_json, accepted_agreement_id): - if isinstance(accepted_agreement_id, six.string_types) and len(accepted_agreement_id.strip()) == 0: + if isinstance(accepted_agreement_id, str) and len(accepted_agreement_id.strip()) == 0: raise click.UsageError('Parameter --accepted-agreement-id cannot be whitespace or empty string') kwargs = {} @@ -613,13 +612,13 @@ def get_accepted_agreement(ctx, from_json, accepted_agreement_id): @cli_util.wrap_exceptions def get_agreement(ctx, from_json, listing_id, package_version, agreement_id, compartment_id): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') - if isinstance(package_version, six.string_types) and len(package_version.strip()) == 0: + if isinstance(package_version, str) and len(package_version.strip()) == 0: raise click.UsageError('Parameter --package-version cannot be whitespace or empty string') - if isinstance(agreement_id, six.string_types) and len(agreement_id.strip()) == 0: + if isinstance(agreement_id, str) and len(agreement_id.strip()) == 0: raise click.UsageError('Parameter --agreement-id cannot be whitespace or empty string') kwargs = {} @@ -652,7 +651,7 @@ def get_agreement(ctx, from_json, listing_id, package_version, agreement_id, com @cli_util.wrap_exceptions def get_listing(ctx, from_json, listing_id, compartment_id): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') kwargs = {} @@ -684,10 +683,10 @@ def get_listing(ctx, from_json, listing_id, compartment_id): @cli_util.wrap_exceptions def get_package(ctx, from_json, listing_id, package_version, compartment_id): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') - if isinstance(package_version, six.string_types) and len(package_version.strip()) == 0: + if isinstance(package_version, str) and len(package_version.strip()) == 0: raise click.UsageError('Parameter --package-version cannot be whitespace or empty string') kwargs = {} @@ -712,7 +711,7 @@ def get_package(ctx, from_json, listing_id, package_version, compartment_id): @cli_util.wrap_exceptions def get_publication(ctx, from_json, publication_id): - if isinstance(publication_id, six.string_types) and len(publication_id.strip()) == 0: + if isinstance(publication_id, str) and len(publication_id.strip()) == 0: raise click.UsageError('Parameter --publication-id cannot be whitespace or empty string') kwargs = {} @@ -735,10 +734,10 @@ def get_publication(ctx, from_json, publication_id): @cli_util.wrap_exceptions def get_publication_package(ctx, from_json, publication_id, package_version): - if isinstance(publication_id, six.string_types) and len(publication_id.strip()) == 0: + if isinstance(publication_id, str) and len(publication_id.strip()) == 0: raise click.UsageError('Parameter --publication-id cannot be whitespace or empty string') - if isinstance(package_version, six.string_types) and len(package_version.strip()) == 0: + if isinstance(package_version, str) and len(package_version.strip()) == 0: raise click.UsageError('Parameter --package-version cannot be whitespace or empty string') kwargs = {} @@ -761,7 +760,7 @@ def get_publication_package(ctx, from_json, publication_id, package_version): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -858,10 +857,10 @@ def list_agreements(ctx, from_json, all_pages, page_size, listing_id, package_ve if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') - if isinstance(package_version, six.string_types) and len(package_version.strip()) == 0: + if isinstance(package_version, str) and len(package_version.strip()) == 0: raise click.UsageError('Parameter --package-version cannot be whitespace or empty string') kwargs = {} @@ -1117,7 +1116,7 @@ def list_packages(ctx, from_json, all_pages, page_size, listing_id, package_vers if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') kwargs = {} @@ -1182,7 +1181,7 @@ def list_publication_packages(ctx, from_json, all_pages, page_size, publication_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(publication_id, six.string_types) and len(publication_id.strip()) == 0: + if isinstance(publication_id, str) and len(publication_id.strip()) == 0: raise click.UsageError('Parameter --publication-id cannot be whitespace or empty string') kwargs = {} @@ -1419,7 +1418,7 @@ def list_reports(ctx, from_json, all_pages, report_type, date, compartment_id, p @cli_util.wrap_exceptions def list_taxes(ctx, from_json, all_pages, listing_id, compartment_id): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') kwargs = {} @@ -1452,7 +1451,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1509,7 +1508,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1725,7 +1724,7 @@ def search_listings_free_text_search_details(ctx, from_json, text, matching_cont @cli_util.wrap_exceptions def update_accepted_agreement(ctx, from_json, force, accepted_agreement_id, display_name, defined_tags, freeform_tags, if_match): - if isinstance(accepted_agreement_id, six.string_types) and len(accepted_agreement_id.strip()) == 0: + if isinstance(accepted_agreement_id, str) and len(accepted_agreement_id.strip()) == 0: raise click.UsageError('Parameter --accepted-agreement-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -1779,7 +1778,7 @@ def update_accepted_agreement(ctx, from_json, force, accepted_agreement_id, disp @cli_util.wrap_exceptions def update_publication(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, publication_id, name, short_description, long_description, support_contacts, defined_tags, freeform_tags, if_match): - if isinstance(publication_id, six.string_types) and len(publication_id.strip()) == 0: + if isinstance(publication_id, str) and len(publication_id.strip()) == 0: raise click.UsageError('Parameter --publication-id cannot be whitespace or empty string') if not force: if support_contacts or defined_tags or freeform_tags: diff --git a/services/marketplace_private_offer/src/oci_cli_attachment/generated/attachment_cli.py b/services/marketplace_private_offer/src/oci_cli_attachment/generated/attachment_cli.py index f5dbe7262..bda2b8edb 100644 --- a/services/marketplace_private_offer/src/oci_cli_attachment/generated/attachment_cli.py +++ b/services/marketplace_private_offer/src/oci_cli_attachment/generated/attachment_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -54,7 +53,7 @@ def attachment_collection_group(): @cli_util.wrap_exceptions def create_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, file_base64_encoded, display_name, type, offer_id): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') kwargs = {} @@ -109,10 +108,10 @@ def create_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_attachment(ctx, from_json, offer_id, attachment_id, if_match): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') - if isinstance(attachment_id, six.string_types) and len(attachment_id.strip()) == 0: + if isinstance(attachment_id, str) and len(attachment_id.strip()) == 0: raise click.UsageError('Parameter --attachment-id cannot be whitespace or empty string') kwargs = {} @@ -138,10 +137,10 @@ def delete_attachment(ctx, from_json, offer_id, attachment_id, if_match): @cli_util.wrap_exceptions def get_attachment(ctx, from_json, offer_id, attachment_id): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') - if isinstance(attachment_id, six.string_types) and len(attachment_id.strip()) == 0: + if isinstance(attachment_id, str) and len(attachment_id.strip()) == 0: raise click.UsageError('Parameter --attachment-id cannot be whitespace or empty string') kwargs = {} @@ -166,10 +165,10 @@ def get_attachment(ctx, from_json, offer_id, attachment_id): @cli_util.wrap_exceptions def get_attachment_content(ctx, from_json, file, offer_id, attachment_id): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') - if isinstance(attachment_id, six.string_types) and len(attachment_id.strip()) == 0: + if isinstance(attachment_id, str) and len(attachment_id.strip()) == 0: raise click.UsageError('Parameter --attachment-id cannot be whitespace or empty string') kwargs = {} @@ -228,7 +227,7 @@ def list_attachments(ctx, from_json, all_pages, page_size, offer_id, buyer_compa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/marketplace_private_offer/src/oci_cli_offer/generated/offer_cli.py b/services/marketplace_private_offer/src/oci_cli_offer/generated/offer_cli.py index 10bc16065..cd48e51b2 100644 --- a/services/marketplace_private_offer/src/oci_cli_offer/generated/offer_cli.py +++ b/services/marketplace_private_offer/src/oci_cli_offer/generated/offer_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -168,7 +167,7 @@ def create_offer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_offer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, offer_id, if_match): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') kwargs = {} @@ -227,7 +226,7 @@ def delete_offer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def get_offer(ctx, from_json, offer_id): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') kwargs = {} @@ -249,7 +248,7 @@ def get_offer(ctx, from_json, offer_id): @cli_util.wrap_exceptions def get_offer_internal_detail(ctx, from_json, offer_id): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') kwargs = {} @@ -337,7 +336,7 @@ def list_offers(ctx, from_json, all_pages, page_size, buyer_compartment_id, sell @cli_util.wrap_exceptions def send_offer(ctx, from_json, offer_id, if_match): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') kwargs = {} @@ -384,7 +383,7 @@ def send_offer(ctx, from_json, offer_id, if_match): @cli_util.wrap_exceptions def update_offer(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, offer_id, display_name, buyer_compartment_id, description, internal_notes, time_start_date, duration, time_accept_by, pricing, buyer_information, seller_information, resource_bundles, custom_fields, freeform_tags, defined_tags, if_match): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') if not force: if pricing or buyer_information or seller_information or resource_bundles or custom_fields or freeform_tags or defined_tags: @@ -482,7 +481,7 @@ def update_offer(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def withdraw_offer(ctx, from_json, offer_id, if_match): - if isinstance(offer_id, six.string_types) and len(offer_id.strip()) == 0: + if isinstance(offer_id, str) and len(offer_id.strip()) == 0: raise click.UsageError('Parameter --offer-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/marketplace_private_offer/src/oci_cli_offer_quote/generated/offerquote_cli.py b/services/marketplace_private_offer/src/oci_cli_offer_quote/generated/offerquote_cli.py index e1b6945fe..66aa60d2b 100644 --- a/services/marketplace_private_offer/src/oci_cli_offer_quote/generated/offerquote_cli.py +++ b/services/marketplace_private_offer/src/oci_cli_offer_quote/generated/offerquote_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -150,7 +149,7 @@ def create_offer_quote(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_offer_quote(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, offer_quote_id, if_match): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') kwargs = {} @@ -209,7 +208,7 @@ def delete_offer_quote(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_offer_quote(ctx, from_json, offer_quote_id): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') kwargs = {} @@ -231,7 +230,7 @@ def get_offer_quote(ctx, from_json, offer_quote_id): @cli_util.wrap_exceptions def get_offer_quote_internal_detail(ctx, from_json, offer_quote_id): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') kwargs = {} @@ -320,7 +319,7 @@ def list_offer_quotes(ctx, from_json, all_pages, page_size, reseller_compartment @cli_util.wrap_exceptions def respond_to_offer_quote(ctx, from_json, offer_quote_id, pricing, if_match): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') kwargs = {} @@ -350,7 +349,7 @@ def respond_to_offer_quote(ctx, from_json, offer_quote_id, pricing, if_match): @cli_util.wrap_exceptions def send_offer_quote(ctx, from_json, offer_quote_id, if_match): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') kwargs = {} @@ -393,7 +392,7 @@ def send_offer_quote(ctx, from_json, offer_quote_id, if_match): @cli_util.wrap_exceptions def update_offer_quote(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, offer_quote_id, display_name, isv_compartment_id, isv_publisher_id, description, buyer_compartment_ids, reseller_information, isv_information, resource_bundles, buyer_acceptance_deadline, buyer_offer_duration, freeform_tags, defined_tags, if_match): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') if not force: if buyer_compartment_ids or reseller_information or isv_information or resource_bundles or freeform_tags or defined_tags: @@ -487,7 +486,7 @@ def update_offer_quote(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def withdraw_offer_quote(ctx, from_json, offer_quote_id, reseller_compartment_id, isv_compartment_id, if_match): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/marketplace_private_offer/src/oci_cli_quote_attachment/generated/quoteattachment_cli.py b/services/marketplace_private_offer/src/oci_cli_quote_attachment/generated/quoteattachment_cli.py index 76417f724..b2e7561c5 100644 --- a/services/marketplace_private_offer/src/oci_cli_quote_attachment/generated/quoteattachment_cli.py +++ b/services/marketplace_private_offer/src/oci_cli_quote_attachment/generated/quoteattachment_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -55,7 +54,7 @@ def quote_attachment_group(): @cli_util.wrap_exceptions def create_quote_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, offer_quote_id, file_base64_encoded, display_name, type, recipient): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') kwargs = {} @@ -111,10 +110,10 @@ def create_quote_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_quote_attachment(ctx, from_json, offer_quote_id, quote_attachment_id, if_match): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') - if isinstance(quote_attachment_id, six.string_types) and len(quote_attachment_id.strip()) == 0: + if isinstance(quote_attachment_id, str) and len(quote_attachment_id.strip()) == 0: raise click.UsageError('Parameter --quote-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -140,10 +139,10 @@ def delete_quote_attachment(ctx, from_json, offer_quote_id, quote_attachment_id, @cli_util.wrap_exceptions def get_quote_attachment(ctx, from_json, offer_quote_id, quote_attachment_id): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') - if isinstance(quote_attachment_id, six.string_types) and len(quote_attachment_id.strip()) == 0: + if isinstance(quote_attachment_id, str) and len(quote_attachment_id.strip()) == 0: raise click.UsageError('Parameter --quote-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -168,10 +167,10 @@ def get_quote_attachment(ctx, from_json, offer_quote_id, quote_attachment_id): @cli_util.wrap_exceptions def get_quote_attachment_content(ctx, from_json, file, offer_quote_id, quote_attachment_id): - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') - if isinstance(quote_attachment_id, six.string_types) and len(quote_attachment_id.strip()) == 0: + if isinstance(quote_attachment_id, str) and len(quote_attachment_id.strip()) == 0: raise click.UsageError('Parameter --quote-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -230,7 +229,7 @@ def list_quote_attachments(ctx, from_json, all_pages, page_size, offer_quote_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(offer_quote_id, six.string_types) and len(offer_quote_id.strip()) == 0: + if isinstance(offer_quote_id, str) and len(offer_quote_id.strip()) == 0: raise click.UsageError('Parameter --offer-quote-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/marketplace_publisher/src/oci_cli_marketplace_publisher/generated/marketplacepublisher_cli.py b/services/marketplace_publisher/src/oci_cli_marketplace_publisher/generated/marketplacepublisher_cli.py index d8d721f17..1e7b7f63d 100644 --- a/services/marketplace_publisher/src/oci_cli_marketplace_publisher/generated/marketplacepublisher_cli.py +++ b/services/marketplace_publisher/src/oci_cli_marketplace_publisher/generated/marketplacepublisher_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -289,7 +288,7 @@ def listing_revision_package_group(): @cli_util.wrap_exceptions def activate_term_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, term_version_id, if_match): - if isinstance(term_version_id, six.string_types) and len(term_version_id.strip()) == 0: + if isinstance(term_version_id, str) and len(term_version_id.strip()) == 0: raise click.UsageError('Parameter --term-version-id cannot be whitespace or empty string') kwargs = {} @@ -338,7 +337,7 @@ def activate_term_version(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -366,7 +365,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def cascading_delete_listing(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_id, if_match): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') kwargs = {} @@ -421,7 +420,7 @@ def cascading_delete_listing(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def cascading_delete_listing_revision(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -477,7 +476,7 @@ def cascading_delete_listing_revision(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_artifact_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, compartment_id, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') kwargs = {} @@ -538,7 +537,7 @@ def change_artifact_compartment(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def change_listing_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_id, compartment_id, if_match): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') kwargs = {} @@ -600,7 +599,7 @@ def change_listing_compartment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_listing_revision_to_new_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -652,7 +651,7 @@ def change_listing_revision_to_new_status(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_term_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, term_id, compartment_id, if_match): - if isinstance(term_id, six.string_types) and len(term_id.strip()) == 0: + if isinstance(term_id, str) and len(term_id.strip()) == 0: raise click.UsageError('Parameter --term-id cannot be whitespace or empty string') kwargs = {} @@ -714,7 +713,7 @@ def change_term_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def clone_listing_revision(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -2508,7 +2507,7 @@ def create_term_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') kwargs = {} @@ -2564,7 +2563,7 @@ def delete_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_listing(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_id, if_match): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') kwargs = {} @@ -2628,7 +2627,7 @@ def delete_listing(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_listing_revision(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -2692,7 +2691,7 @@ def delete_listing_revision(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_listing_revision_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_attachment_id, if_match): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -2756,7 +2755,7 @@ def delete_listing_revision_attachment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_listing_revision_note(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_note_id, if_match): - if isinstance(listing_revision_note_id, six.string_types) and len(listing_revision_note_id.strip()) == 0: + if isinstance(listing_revision_note_id, str) and len(listing_revision_note_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-note-id cannot be whitespace or empty string') kwargs = {} @@ -2820,7 +2819,7 @@ def delete_listing_revision_note(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_listing_revision_package(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_package_id, if_match): - if isinstance(listing_revision_package_id, six.string_types) and len(listing_revision_package_id.strip()) == 0: + if isinstance(listing_revision_package_id, str) and len(listing_revision_package_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-package-id cannot be whitespace or empty string') kwargs = {} @@ -2884,7 +2883,7 @@ def delete_listing_revision_package(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def delete_term(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, term_id, if_match): - if isinstance(term_id, six.string_types) and len(term_id.strip()) == 0: + if isinstance(term_id, str) and len(term_id.strip()) == 0: raise click.UsageError('Parameter --term-id cannot be whitespace or empty string') kwargs = {} @@ -2948,7 +2947,7 @@ def delete_term(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_term_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, term_version_id, if_match): - if isinstance(term_version_id, six.string_types) and len(term_version_id.strip()) == 0: + if isinstance(term_version_id, str) and len(term_version_id.strip()) == 0: raise click.UsageError('Parameter --term-version-id cannot be whitespace or empty string') kwargs = {} @@ -3007,7 +3006,7 @@ def delete_term_version(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_artifact(ctx, from_json, artifact_id): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') kwargs = {} @@ -3030,7 +3029,7 @@ def get_artifact(ctx, from_json, artifact_id): @cli_util.wrap_exceptions def get_category(ctx, from_json, category_code, compartment_id): - if isinstance(category_code, six.string_types) and len(category_code.strip()) == 0: + if isinstance(category_code, str) and len(category_code.strip()) == 0: raise click.UsageError('Parameter --category-code cannot be whitespace or empty string') kwargs = {} @@ -3053,7 +3052,7 @@ def get_category(ctx, from_json, category_code, compartment_id): @cli_util.wrap_exceptions def get_lead(ctx, from_json, lead_id): - if isinstance(lead_id, six.string_types) and len(lead_id.strip()) == 0: + if isinstance(lead_id, str) and len(lead_id.strip()) == 0: raise click.UsageError('Parameter --lead-id cannot be whitespace or empty string') kwargs = {} @@ -3075,7 +3074,7 @@ def get_lead(ctx, from_json, lead_id): @cli_util.wrap_exceptions def get_listing(ctx, from_json, listing_id): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') kwargs = {} @@ -3097,7 +3096,7 @@ def get_listing(ctx, from_json, listing_id): @cli_util.wrap_exceptions def get_listing_revision(ctx, from_json, listing_revision_id): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -3119,7 +3118,7 @@ def get_listing_revision(ctx, from_json, listing_revision_id): @cli_util.wrap_exceptions def get_listing_revision_attachment(ctx, from_json, listing_revision_attachment_id): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -3142,7 +3141,7 @@ def get_listing_revision_attachment(ctx, from_json, listing_revision_attachment_ @cli_util.wrap_exceptions def get_listing_revision_attachment_content(ctx, from_json, file, listing_revision_attachment_id): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -3187,7 +3186,7 @@ def get_listing_revision_attachment_content(ctx, from_json, file, listing_revisi @cli_util.wrap_exceptions def get_listing_revision_icon_content(ctx, from_json, file, listing_revision_id): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -3231,7 +3230,7 @@ def get_listing_revision_icon_content(ctx, from_json, file, listing_revision_id) @cli_util.wrap_exceptions def get_listing_revision_note(ctx, from_json, listing_revision_note_id): - if isinstance(listing_revision_note_id, six.string_types) and len(listing_revision_note_id.strip()) == 0: + if isinstance(listing_revision_note_id, str) and len(listing_revision_note_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-note-id cannot be whitespace or empty string') kwargs = {} @@ -3253,7 +3252,7 @@ def get_listing_revision_note(ctx, from_json, listing_revision_note_id): @cli_util.wrap_exceptions def get_listing_revision_package(ctx, from_json, listing_revision_package_id): - if isinstance(listing_revision_package_id, six.string_types) and len(listing_revision_package_id.strip()) == 0: + if isinstance(listing_revision_package_id, str) and len(listing_revision_package_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-package-id cannot be whitespace or empty string') kwargs = {} @@ -3275,7 +3274,7 @@ def get_listing_revision_package(ctx, from_json, listing_revision_package_id): @cli_util.wrap_exceptions def get_market(ctx, from_json, market_code): - if isinstance(market_code, six.string_types) and len(market_code.strip()) == 0: + if isinstance(market_code, str) and len(market_code.strip()) == 0: raise click.UsageError('Parameter --market-code cannot be whitespace or empty string') kwargs = {} @@ -3297,7 +3296,7 @@ def get_market(ctx, from_json, market_code): @cli_util.wrap_exceptions def get_product(ctx, from_json, product_code): - if isinstance(product_code, six.string_types) and len(product_code.strip()) == 0: + if isinstance(product_code, str) and len(product_code.strip()) == 0: raise click.UsageError('Parameter --product-code cannot be whitespace or empty string') kwargs = {} @@ -3319,7 +3318,7 @@ def get_product(ctx, from_json, product_code): @cli_util.wrap_exceptions def get_publisher(ctx, from_json, publisher_id): - if isinstance(publisher_id, six.string_types) and len(publisher_id.strip()) == 0: + if isinstance(publisher_id, str) and len(publisher_id.strip()) == 0: raise click.UsageError('Parameter --publisher-id cannot be whitespace or empty string') kwargs = {} @@ -3341,7 +3340,7 @@ def get_publisher(ctx, from_json, publisher_id): @cli_util.wrap_exceptions def get_support_doc(ctx, from_json, support_doc_code): - if isinstance(support_doc_code, six.string_types) and len(support_doc_code.strip()) == 0: + if isinstance(support_doc_code, str) and len(support_doc_code.strip()) == 0: raise click.UsageError('Parameter --support-doc-code cannot be whitespace or empty string') kwargs = {} @@ -3364,7 +3363,7 @@ def get_support_doc(ctx, from_json, support_doc_code): @cli_util.wrap_exceptions def get_support_doc_content(ctx, from_json, file, support_doc_code): - if isinstance(support_doc_code, six.string_types) and len(support_doc_code.strip()) == 0: + if isinstance(support_doc_code, str) and len(support_doc_code.strip()) == 0: raise click.UsageError('Parameter --support-doc-code cannot be whitespace or empty string') kwargs = {} @@ -3408,7 +3407,7 @@ def get_support_doc_content(ctx, from_json, file, support_doc_code): @cli_util.wrap_exceptions def get_term(ctx, from_json, term_id): - if isinstance(term_id, six.string_types) and len(term_id.strip()) == 0: + if isinstance(term_id, str) and len(term_id.strip()) == 0: raise click.UsageError('Parameter --term-id cannot be whitespace or empty string') kwargs = {} @@ -3430,7 +3429,7 @@ def get_term(ctx, from_json, term_id): @cli_util.wrap_exceptions def get_term_version(ctx, from_json, term_version_id): - if isinstance(term_version_id, six.string_types) and len(term_version_id.strip()) == 0: + if isinstance(term_version_id, str) and len(term_version_id.strip()) == 0: raise click.UsageError('Parameter --term-version-id cannot be whitespace or empty string') kwargs = {} @@ -3453,7 +3452,7 @@ def get_term_version(ctx, from_json, term_version_id): @cli_util.wrap_exceptions def get_term_version_content(ctx, from_json, file, term_version_id): - if isinstance(term_version_id, six.string_types) and len(term_version_id.strip()) == 0: + if isinstance(term_version_id, str) and len(term_version_id.strip()) == 0: raise click.UsageError('Parameter --term-version-id cannot be whitespace or empty string') kwargs = {} @@ -3497,7 +3496,7 @@ def get_term_version_content(ctx, from_json, file, term_version_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4666,7 +4665,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4723,7 +4722,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4838,7 +4837,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def mark_listing_revision_package_as_default(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_package_id, if_match): - if isinstance(listing_revision_package_id, six.string_types) and len(listing_revision_package_id.strip()) == 0: + if isinstance(listing_revision_package_id, str) and len(listing_revision_package_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-package-id cannot be whitespace or empty string') kwargs = {} @@ -4893,7 +4892,7 @@ def mark_listing_revision_package_as_default(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def publish_listing_revision(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -4949,7 +4948,7 @@ def publish_listing_revision(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def publish_listing_revision_as_private(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, allowed_tenancies, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -5011,7 +5010,7 @@ def publish_listing_revision_as_private(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def publish_listing_revision_package(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_package_id, if_match): - if isinstance(listing_revision_package_id, six.string_types) and len(listing_revision_package_id.strip()) == 0: + if isinstance(listing_revision_package_id, str) and len(listing_revision_package_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-package-id cannot be whitespace or empty string') kwargs = {} @@ -5069,7 +5068,7 @@ def publish_listing_revision_package(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def submit_listing_revision_for_review(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, note_details, are_internal_tenancy_launch_allowed, should_auto_publish_on_approval, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -5133,7 +5132,7 @@ def submit_listing_revision_for_review(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def un_publish_listing_revision_package(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_package_id, if_match): - if isinstance(listing_revision_package_id, six.string_types) and len(listing_revision_package_id.strip()) == 0: + if isinstance(listing_revision_package_id, str) and len(listing_revision_package_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-package-id cannot be whitespace or empty string') kwargs = {} @@ -5194,7 +5193,7 @@ def un_publish_listing_revision_package(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def update_artifact(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, compartment_id, display_name, artifact_type, freeform_tags, defined_tags, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5279,7 +5278,7 @@ def update_artifact(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_artifact_update_kubernetes_image_artifact_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, compartment_id, display_name, freeform_tags, defined_tags, helm_chart, container_image_artifact_ids, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or helm_chart or container_image_artifact_ids: @@ -5368,7 +5367,7 @@ def update_artifact_update_kubernetes_image_artifact_details(ctx, from_json, for @cli_util.wrap_exceptions def update_artifact_update_stack_artifact_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, compartment_id, display_name, freeform_tags, defined_tags, stack, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or stack: @@ -5454,7 +5453,7 @@ def update_artifact_update_stack_artifact_details(ctx, from_json, force, wait_fo @cli_util.wrap_exceptions def update_artifact_update_container_image_artifact_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, compartment_id, display_name, freeform_tags, defined_tags, container_image, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or container_image: @@ -5540,7 +5539,7 @@ def update_artifact_update_container_image_artifact_details(ctx, from_json, forc @cli_util.wrap_exceptions def update_artifact_update_machine_image_artifact_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, compartment_id, display_name, freeform_tags, defined_tags, machine_image, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or machine_image: @@ -5623,7 +5622,7 @@ def update_artifact_update_machine_image_artifact_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_listing(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_id, freeform_tags, defined_tags, if_match): - if isinstance(listing_id, six.string_types) and len(listing_id.strip()) == 0: + if isinstance(listing_id, str) and len(listing_id.strip()) == 0: raise click.UsageError('Parameter --listing-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5709,7 +5708,7 @@ def update_listing(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_listing_revision(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, listing_type, display_name, headline, tagline, keywords, short_description, usage_information, long_description, content_language, supportedlanguages, support_contacts, support_links, freeform_tags, defined_tags, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') if not force: if content_language or supportedlanguages or support_contacts or support_links or freeform_tags or defined_tags: @@ -5838,7 +5837,7 @@ def update_listing_revision(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_listing_revision_update_service_listing_revision_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, display_name, headline, tagline, keywords, short_description, usage_information, long_description, content_language, supportedlanguages, support_contacts, support_links, freeform_tags, defined_tags, contact_us, product_codes, industries, trained_professionals, vanity_url, geo_locations, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') if not force: if content_language or supportedlanguages or support_contacts or support_links or freeform_tags or defined_tags or product_codes or industries or trained_professionals or geo_locations: @@ -5989,7 +5988,7 @@ def update_listing_revision_update_service_listing_revision_details(ctx, from_js @cli_util.wrap_exceptions def update_listing_revision_update_oci_listing_revision_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, display_name, headline, tagline, keywords, short_description, usage_information, long_description, content_language, supportedlanguages, support_contacts, support_links, freeform_tags, defined_tags, version_details, system_requirements, pricing_type, products, vanity_url, recommended_service_provider_listing_ids, availability_and_pricing_policy, pricing_plans, is_rover_exportable, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') if not force: if content_language or supportedlanguages or support_contacts or support_links or freeform_tags or defined_tags or version_details or products or recommended_service_provider_listing_ids or pricing_plans: @@ -6148,7 +6147,7 @@ def update_listing_revision_update_oci_listing_revision_details(ctx, from_json, @cli_util.wrap_exceptions def update_listing_revision_update_lead_gen_listing_revision_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, display_name, headline, tagline, keywords, short_description, usage_information, long_description, content_language, supportedlanguages, support_contacts, support_links, freeform_tags, defined_tags, version_details, system_requirements, pricing_type, products, demo_url, self_paced_training_url, recommended_service_provider_listing_ids, vanity_url, download_info, pricing_plans, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') if not force: if content_language or supportedlanguages or support_contacts or support_links or freeform_tags or defined_tags or version_details or products or recommended_service_provider_listing_ids or download_info: @@ -6284,7 +6283,7 @@ def update_listing_revision_update_lead_gen_listing_revision_details(ctx, from_j @cli_util.wrap_exceptions def update_listing_revision_attachment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_attachment_id, display_name, description, attachment_type, freeform_tags, defined_tags, if_match): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6363,7 +6362,7 @@ def update_listing_revision_attachment(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_listing_revision_attachment_update_screen_shot_attachment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_attachment_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6444,7 +6443,7 @@ def update_listing_revision_attachment_update_screen_shot_attachment_details(ctx @cli_util.wrap_exceptions def update_listing_revision_attachment_update_customer_success_attachment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_attachment_id, customer_name, display_name, description, freeform_tags, defined_tags, url, product_codes, if_match): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or product_codes: @@ -6531,7 +6530,7 @@ def update_listing_revision_attachment_update_customer_success_attachment(ctx, f @cli_util.wrap_exceptions def update_listing_revision_attachment_update_review_support_document_attachment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_attachment_id, document_name, template_code, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6612,7 +6611,7 @@ def update_listing_revision_attachment_update_review_support_document_attachment @cli_util.wrap_exceptions def update_listing_revision_attachment_update_related_document_attachment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_attachment_id, display_name, description, freeform_tags, defined_tags, document_category, if_match): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6696,7 +6695,7 @@ def update_listing_revision_attachment_update_related_document_attachment_detail @cli_util.wrap_exceptions def update_listing_revision_attachment_update_supported_service_attachment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_attachment_id, service_name, type, display_name, description, freeform_tags, defined_tags, url, if_match): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6779,7 +6778,7 @@ def update_listing_revision_attachment_update_supported_service_attachment(ctx, @cli_util.wrap_exceptions def update_listing_revision_attachment_update_video_attachment_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_attachment_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6853,7 +6852,7 @@ def update_listing_revision_attachment_update_video_attachment_details(ctx, from @cli_util.wrap_exceptions def update_listing_revision_attachment_content(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_attachment_id, update_listing_revision_attachment_content, if_match): - if isinstance(listing_revision_attachment_id, six.string_types) and len(listing_revision_attachment_id.strip()) == 0: + if isinstance(listing_revision_attachment_id, str) and len(listing_revision_attachment_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -6910,7 +6909,7 @@ def update_listing_revision_attachment_content(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def update_listing_revision_icon_content(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, update_listing_revision_icon_content, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} @@ -6969,7 +6968,7 @@ def update_listing_revision_icon_content(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def update_listing_revision_note(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_note_id, freeform_tags, defined_tags, if_match): - if isinstance(listing_revision_note_id, six.string_types) and len(listing_revision_note_id.strip()) == 0: + if isinstance(listing_revision_note_id, str) and len(listing_revision_note_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-note-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -7044,7 +7043,7 @@ def update_listing_revision_note(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_listing_revision_package(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_package_id, package_version, display_name, description, artifact_id, term_id, is_default, are_security_upgrades_provided, freeform_tags, defined_tags, if_match): - if isinstance(listing_revision_package_id, six.string_types) and len(listing_revision_package_id.strip()) == 0: + if isinstance(listing_revision_package_id, str) and len(listing_revision_package_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-package-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -7133,7 +7132,7 @@ def update_listing_revision_package(ctx, from_json, force, wait_for_state, max_w @cli_util.wrap_exceptions def update_term(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, term_id, freeform_tags, defined_tags, if_match): - if isinstance(term_id, six.string_types) and len(term_id.strip()) == 0: + if isinstance(term_id, str) and len(term_id.strip()) == 0: raise click.UsageError('Parameter --term-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -7202,7 +7201,7 @@ def update_term(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def update_term_version(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, term_version_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(term_version_id, six.string_types) and len(term_version_id.strip()) == 0: + if isinstance(term_version_id, str) and len(term_version_id.strip()) == 0: raise click.UsageError('Parameter --term-version-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -7272,7 +7271,7 @@ def update_term_version(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_term_version_content(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, term_version_id, update_term_version_content, if_match, display_name): - if isinstance(term_version_id, six.string_types) and len(term_version_id.strip()) == 0: + if isinstance(term_version_id, str) and len(term_version_id.strip()) == 0: raise click.UsageError('Parameter --term-version-id cannot be whitespace or empty string') kwargs = {} @@ -7330,7 +7329,7 @@ def update_term_version_content(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def validate_and_publish_artifact(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, artifact_id, if_match): - if isinstance(artifact_id, six.string_types) and len(artifact_id.strip()) == 0: + if isinstance(artifact_id, str) and len(artifact_id.strip()) == 0: raise click.UsageError('Parameter --artifact-id cannot be whitespace or empty string') kwargs = {} @@ -7385,7 +7384,7 @@ def validate_and_publish_artifact(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def withdraw_listing_revision(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, listing_revision_id, if_match): - if isinstance(listing_revision_id, six.string_types) and len(listing_revision_id.strip()) == 0: + if isinstance(listing_revision_id, str) and len(listing_revision_id.strip()) == 0: raise click.UsageError('Parameter --listing-revision-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/media_services/src/oci_cli_media_services/generated/mediaservices_cli.py b/services/media_services/src/oci_cli_media_services/generated/mediaservices_cli.py index de16079b4..48270dfe4 100644 --- a/services/media_services/src/oci_cli_media_services/generated/mediaservices_cli.py +++ b/services/media_services/src/oci_cli_media_services/generated/mediaservices_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -135,7 +134,7 @@ def media_workflow_configuration_collection_group(): @cli_util.wrap_exceptions def add_media_asset_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, media_asset_id, related_resource_id, message, time_created, if_match): - if isinstance(media_asset_id, six.string_types) and len(media_asset_id.strip()) == 0: + if isinstance(media_asset_id, str) and len(media_asset_id.strip()) == 0: raise click.UsageError('Parameter --media-asset-id cannot be whitespace or empty string') kwargs = {} @@ -206,7 +205,7 @@ def add_media_asset_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def add_media_workflow_configuration_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, media_workflow_configuration_id, related_resource_id, message, time_created, if_match): - if isinstance(media_workflow_configuration_id, six.string_types) and len(media_workflow_configuration_id.strip()) == 0: + if isinstance(media_workflow_configuration_id, str) and len(media_workflow_configuration_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -277,7 +276,7 @@ def add_media_workflow_configuration_lock(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def add_media_workflow_job_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, media_workflow_job_id, related_resource_id, message, time_created, if_match): - if isinstance(media_workflow_job_id, six.string_types) and len(media_workflow_job_id.strip()) == 0: + if isinstance(media_workflow_job_id, str) and len(media_workflow_job_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-job-id cannot be whitespace or empty string') kwargs = {} @@ -348,7 +347,7 @@ def add_media_workflow_job_lock(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def add_media_workflow_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, media_workflow_id, related_resource_id, message, time_created, if_match): - if isinstance(media_workflow_id, six.string_types) and len(media_workflow_id.strip()) == 0: + if isinstance(media_workflow_id, str) and len(media_workflow_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-id cannot be whitespace or empty string') kwargs = {} @@ -419,7 +418,7 @@ def add_media_workflow_lock(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def add_stream_cdn_config_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, stream_cdn_config_id, related_resource_id, message, time_created, if_match): - if isinstance(stream_cdn_config_id, six.string_types) and len(stream_cdn_config_id.strip()) == 0: + if isinstance(stream_cdn_config_id, str) and len(stream_cdn_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-cdn-config-id cannot be whitespace or empty string') kwargs = {} @@ -490,7 +489,7 @@ def add_stream_cdn_config_lock(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def add_stream_distribution_channel_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, stream_distribution_channel_id, related_resource_id, message, time_created, if_match): - if isinstance(stream_distribution_channel_id, six.string_types) and len(stream_distribution_channel_id.strip()) == 0: + if isinstance(stream_distribution_channel_id, str) and len(stream_distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --stream-distribution-channel-id cannot be whitespace or empty string') kwargs = {} @@ -561,7 +560,7 @@ def add_stream_distribution_channel_lock(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def add_stream_packaging_config_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, stream_packaging_config_id, related_resource_id, message, time_created, if_match): - if isinstance(stream_packaging_config_id, six.string_types) and len(stream_packaging_config_id.strip()) == 0: + if isinstance(stream_packaging_config_id, str) and len(stream_packaging_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-packaging-config-id cannot be whitespace or empty string') kwargs = {} @@ -626,7 +625,7 @@ def add_stream_packaging_config_lock(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def change_media_asset_compartment(ctx, from_json, media_asset_id, compartment_id, is_lock_override, if_match): - if isinstance(media_asset_id, six.string_types) and len(media_asset_id.strip()) == 0: + if isinstance(media_asset_id, str) and len(media_asset_id.strip()) == 0: raise click.UsageError('Parameter --media-asset-id cannot be whitespace or empty string') kwargs = {} @@ -660,7 +659,7 @@ def change_media_asset_compartment(ctx, from_json, media_asset_id, compartment_i @cli_util.wrap_exceptions def change_media_workflow_compartment(ctx, from_json, media_workflow_id, compartment_id, is_lock_override, if_match): - if isinstance(media_workflow_id, six.string_types) and len(media_workflow_id.strip()) == 0: + if isinstance(media_workflow_id, str) and len(media_workflow_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-id cannot be whitespace or empty string') kwargs = {} @@ -694,7 +693,7 @@ def change_media_workflow_compartment(ctx, from_json, media_workflow_id, compart @cli_util.wrap_exceptions def change_media_workflow_configuration_compartment(ctx, from_json, media_workflow_configuration_id, compartment_id, is_lock_override, if_match): - if isinstance(media_workflow_configuration_id, six.string_types) and len(media_workflow_configuration_id.strip()) == 0: + if isinstance(media_workflow_configuration_id, str) and len(media_workflow_configuration_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -728,7 +727,7 @@ def change_media_workflow_configuration_compartment(ctx, from_json, media_workfl @cli_util.wrap_exceptions def change_media_workflow_job_compartment(ctx, from_json, media_workflow_job_id, compartment_id, is_lock_override, if_match): - if isinstance(media_workflow_job_id, six.string_types) and len(media_workflow_job_id.strip()) == 0: + if isinstance(media_workflow_job_id, str) and len(media_workflow_job_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-job-id cannot be whitespace or empty string') kwargs = {} @@ -762,7 +761,7 @@ def change_media_workflow_job_compartment(ctx, from_json, media_workflow_job_id, @cli_util.wrap_exceptions def change_stream_distribution_channel_compartment(ctx, from_json, stream_distribution_channel_id, compartment_id, is_lock_override, if_match): - if isinstance(stream_distribution_channel_id, six.string_types) and len(stream_distribution_channel_id.strip()) == 0: + if isinstance(stream_distribution_channel_id, str) and len(stream_distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --stream-distribution-channel-id cannot be whitespace or empty string') kwargs = {} @@ -1855,7 +1854,7 @@ def create_stream_packaging_config_stream_packaging_config_encryption_none(ctx, @cli_util.wrap_exceptions def delete_media_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, media_asset_id, is_lock_override, if_match, delete_mode): - if isinstance(media_asset_id, six.string_types) and len(media_asset_id.strip()) == 0: + if isinstance(media_asset_id, str) and len(media_asset_id.strip()) == 0: raise click.UsageError('Parameter --media-asset-id cannot be whitespace or empty string') kwargs = {} @@ -1923,10 +1922,10 @@ def delete_media_asset(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_media_asset_distribution_channel_attachment(ctx, from_json, media_asset_id, distribution_channel_id, is_lock_override, if_match, version_parameterconflict): - if isinstance(media_asset_id, six.string_types) and len(media_asset_id.strip()) == 0: + if isinstance(media_asset_id, str) and len(media_asset_id.strip()) == 0: raise click.UsageError('Parameter --media-asset-id cannot be whitespace or empty string') - if isinstance(distribution_channel_id, six.string_types) and len(distribution_channel_id.strip()) == 0: + if isinstance(distribution_channel_id, str) and len(distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --distribution-channel-id cannot be whitespace or empty string') kwargs = {} @@ -1961,7 +1960,7 @@ def delete_media_asset_distribution_channel_attachment(ctx, from_json, media_ass @cli_util.wrap_exceptions def delete_media_workflow(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, media_workflow_id, is_lock_override, if_match): - if isinstance(media_workflow_id, six.string_types) and len(media_workflow_id.strip()) == 0: + if isinstance(media_workflow_id, str) and len(media_workflow_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-id cannot be whitespace or empty string') kwargs = {} @@ -2028,7 +2027,7 @@ def delete_media_workflow(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_media_workflow_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, media_workflow_configuration_id, is_lock_override, if_match): - if isinstance(media_workflow_configuration_id, six.string_types) and len(media_workflow_configuration_id.strip()) == 0: + if isinstance(media_workflow_configuration_id, str) and len(media_workflow_configuration_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -2095,7 +2094,7 @@ def delete_media_workflow_configuration(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_media_workflow_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, media_workflow_job_id, is_lock_override, if_match): - if isinstance(media_workflow_job_id, six.string_types) and len(media_workflow_job_id.strip()) == 0: + if isinstance(media_workflow_job_id, str) and len(media_workflow_job_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-job-id cannot be whitespace or empty string') kwargs = {} @@ -2162,7 +2161,7 @@ def delete_media_workflow_job(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_stream_cdn_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_cdn_config_id, is_lock_override, if_match): - if isinstance(stream_cdn_config_id, six.string_types) and len(stream_cdn_config_id.strip()) == 0: + if isinstance(stream_cdn_config_id, str) and len(stream_cdn_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-cdn-config-id cannot be whitespace or empty string') kwargs = {} @@ -2229,7 +2228,7 @@ def delete_stream_cdn_config(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_stream_distribution_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_distribution_channel_id, is_lock_override, if_match): - if isinstance(stream_distribution_channel_id, six.string_types) and len(stream_distribution_channel_id.strip()) == 0: + if isinstance(stream_distribution_channel_id, str) and len(stream_distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --stream-distribution-channel-id cannot be whitespace or empty string') kwargs = {} @@ -2296,7 +2295,7 @@ def delete_stream_distribution_channel(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_stream_packaging_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_packaging_config_id, is_lock_override, if_match): - if isinstance(stream_packaging_config_id, six.string_types) and len(stream_packaging_config_id.strip()) == 0: + if isinstance(stream_packaging_config_id, str) and len(stream_packaging_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-packaging-config-id cannot be whitespace or empty string') kwargs = {} @@ -2357,7 +2356,7 @@ def delete_stream_packaging_config(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def get_media_asset(ctx, from_json, media_asset_id): - if isinstance(media_asset_id, six.string_types) and len(media_asset_id.strip()) == 0: + if isinstance(media_asset_id, str) and len(media_asset_id.strip()) == 0: raise click.UsageError('Parameter --media-asset-id cannot be whitespace or empty string') kwargs = {} @@ -2381,10 +2380,10 @@ def get_media_asset(ctx, from_json, media_asset_id): @cli_util.wrap_exceptions def get_media_asset_distribution_channel_attachment(ctx, from_json, media_asset_id, distribution_channel_id, version_parameterconflict): - if isinstance(media_asset_id, six.string_types) and len(media_asset_id.strip()) == 0: + if isinstance(media_asset_id, str) and len(media_asset_id.strip()) == 0: raise click.UsageError('Parameter --media-asset-id cannot be whitespace or empty string') - if isinstance(distribution_channel_id, six.string_types) and len(distribution_channel_id.strip()) == 0: + if isinstance(distribution_channel_id, str) and len(distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --distribution-channel-id cannot be whitespace or empty string') kwargs = {} @@ -2409,7 +2408,7 @@ def get_media_asset_distribution_channel_attachment(ctx, from_json, media_asset_ @cli_util.wrap_exceptions def get_media_workflow(ctx, from_json, media_workflow_id): - if isinstance(media_workflow_id, six.string_types) and len(media_workflow_id.strip()) == 0: + if isinstance(media_workflow_id, str) and len(media_workflow_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-id cannot be whitespace or empty string') kwargs = {} @@ -2431,7 +2430,7 @@ def get_media_workflow(ctx, from_json, media_workflow_id): @cli_util.wrap_exceptions def get_media_workflow_configuration(ctx, from_json, media_workflow_configuration_id): - if isinstance(media_workflow_configuration_id, six.string_types) and len(media_workflow_configuration_id.strip()) == 0: + if isinstance(media_workflow_configuration_id, str) and len(media_workflow_configuration_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -2453,7 +2452,7 @@ def get_media_workflow_configuration(ctx, from_json, media_workflow_configuratio @cli_util.wrap_exceptions def get_media_workflow_job(ctx, from_json, media_workflow_job_id): - if isinstance(media_workflow_job_id, six.string_types) and len(media_workflow_job_id.strip()) == 0: + if isinstance(media_workflow_job_id, str) and len(media_workflow_job_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-job-id cannot be whitespace or empty string') kwargs = {} @@ -2475,7 +2474,7 @@ def get_media_workflow_job(ctx, from_json, media_workflow_job_id): @cli_util.wrap_exceptions def get_stream_cdn_config(ctx, from_json, stream_cdn_config_id): - if isinstance(stream_cdn_config_id, six.string_types) and len(stream_cdn_config_id.strip()) == 0: + if isinstance(stream_cdn_config_id, str) and len(stream_cdn_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-cdn-config-id cannot be whitespace or empty string') kwargs = {} @@ -2497,7 +2496,7 @@ def get_stream_cdn_config(ctx, from_json, stream_cdn_config_id): @cli_util.wrap_exceptions def get_stream_distribution_channel(ctx, from_json, stream_distribution_channel_id): - if isinstance(stream_distribution_channel_id, six.string_types) and len(stream_distribution_channel_id.strip()) == 0: + if isinstance(stream_distribution_channel_id, str) and len(stream_distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --stream-distribution-channel-id cannot be whitespace or empty string') kwargs = {} @@ -2519,7 +2518,7 @@ def get_stream_distribution_channel(ctx, from_json, stream_distribution_channel_ @cli_util.wrap_exceptions def get_stream_packaging_config(ctx, from_json, stream_packaging_config_id): - if isinstance(stream_packaging_config_id, six.string_types) and len(stream_packaging_config_id.strip()) == 0: + if isinstance(stream_packaging_config_id, str) and len(stream_packaging_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-packaging-config-id cannot be whitespace or empty string') kwargs = {} @@ -2542,7 +2541,7 @@ def get_stream_packaging_config(ctx, from_json, stream_packaging_config_id): @cli_util.wrap_exceptions def ingest_stream_distribution_channel(ctx, from_json, stream_distribution_channel_id, ingest_payload_type): - if isinstance(stream_distribution_channel_id, six.string_types) and len(stream_distribution_channel_id.strip()) == 0: + if isinstance(stream_distribution_channel_id, str) and len(stream_distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --stream-distribution-channel-id cannot be whitespace or empty string') kwargs = {} @@ -2571,7 +2570,7 @@ def ingest_stream_distribution_channel(ctx, from_json, stream_distribution_chann @cli_util.wrap_exceptions def ingest_stream_distribution_channel_asset_metadata_entry_details(ctx, from_json, stream_distribution_channel_id, media_asset_id, compartment_id): - if isinstance(stream_distribution_channel_id, six.string_types) and len(stream_distribution_channel_id.strip()) == 0: + if isinstance(stream_distribution_channel_id, str) and len(stream_distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --stream-distribution-channel-id cannot be whitespace or empty string') kwargs = {} @@ -2614,7 +2613,7 @@ def list_media_asset_distribution_channel_attachments(ctx, from_json, all_pages, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(media_asset_id, six.string_types) and len(media_asset_id.strip()) == 0: + if isinstance(media_asset_id, str) and len(media_asset_id.strip()) == 0: raise click.UsageError('Parameter --media-asset-id cannot be whitespace or empty string') kwargs = {} @@ -3253,7 +3252,7 @@ def list_system_media_workflows(ctx, from_json, all_pages, page_size, compartmen @cli_util.wrap_exceptions def remove_media_asset_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, media_asset_id, related_resource_id, message, time_created, if_match): - if isinstance(media_asset_id, six.string_types) and len(media_asset_id.strip()) == 0: + if isinstance(media_asset_id, str) and len(media_asset_id.strip()) == 0: raise click.UsageError('Parameter --media-asset-id cannot be whitespace or empty string') kwargs = {} @@ -3324,7 +3323,7 @@ def remove_media_asset_lock(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def remove_media_workflow_configuration_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, media_workflow_configuration_id, related_resource_id, message, time_created, if_match): - if isinstance(media_workflow_configuration_id, six.string_types) and len(media_workflow_configuration_id.strip()) == 0: + if isinstance(media_workflow_configuration_id, str) and len(media_workflow_configuration_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -3395,7 +3394,7 @@ def remove_media_workflow_configuration_lock(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def remove_media_workflow_job_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, media_workflow_job_id, related_resource_id, message, time_created, if_match): - if isinstance(media_workflow_job_id, six.string_types) and len(media_workflow_job_id.strip()) == 0: + if isinstance(media_workflow_job_id, str) and len(media_workflow_job_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-job-id cannot be whitespace or empty string') kwargs = {} @@ -3466,7 +3465,7 @@ def remove_media_workflow_job_lock(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def remove_media_workflow_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, media_workflow_id, related_resource_id, message, time_created, if_match): - if isinstance(media_workflow_id, six.string_types) and len(media_workflow_id.strip()) == 0: + if isinstance(media_workflow_id, str) and len(media_workflow_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-id cannot be whitespace or empty string') kwargs = {} @@ -3537,7 +3536,7 @@ def remove_media_workflow_lock(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def remove_stream_cdn_config_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, stream_cdn_config_id, related_resource_id, message, time_created, if_match): - if isinstance(stream_cdn_config_id, six.string_types) and len(stream_cdn_config_id.strip()) == 0: + if isinstance(stream_cdn_config_id, str) and len(stream_cdn_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-cdn-config-id cannot be whitespace or empty string') kwargs = {} @@ -3608,7 +3607,7 @@ def remove_stream_cdn_config_lock(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def remove_stream_distribution_channel_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, stream_distribution_channel_id, related_resource_id, message, time_created, if_match): - if isinstance(stream_distribution_channel_id, six.string_types) and len(stream_distribution_channel_id.strip()) == 0: + if isinstance(stream_distribution_channel_id, str) and len(stream_distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --stream-distribution-channel-id cannot be whitespace or empty string') kwargs = {} @@ -3679,7 +3678,7 @@ def remove_stream_distribution_channel_lock(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def remove_stream_packaging_config_lock(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, type, compartment_id, stream_packaging_config_id, related_resource_id, message, time_created, if_match): - if isinstance(stream_packaging_config_id, six.string_types) and len(stream_packaging_config_id.strip()) == 0: + if isinstance(stream_packaging_config_id, str) and len(stream_packaging_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-packaging-config-id cannot be whitespace or empty string') kwargs = {} @@ -3759,7 +3758,7 @@ def remove_stream_packaging_config_lock(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def update_media_asset(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, media_asset_id, display_name, type, parent_media_asset_id, master_media_asset_id, metadata, media_asset_tags, freeform_tags, defined_tags, is_lock_override, if_match): - if isinstance(media_asset_id, six.string_types) and len(media_asset_id.strip()) == 0: + if isinstance(media_asset_id, str) and len(media_asset_id.strip()) == 0: raise click.UsageError('Parameter --media-asset-id cannot be whitespace or empty string') if not force: if metadata or media_asset_tags or freeform_tags or defined_tags: @@ -3854,7 +3853,7 @@ def update_media_asset(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_media_workflow(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, media_workflow_id, display_name, tasks, media_workflow_configuration_ids, parameters, freeform_tags, defined_tags, is_lock_override, if_match): - if isinstance(media_workflow_id, six.string_types) and len(media_workflow_id.strip()) == 0: + if isinstance(media_workflow_id, str) and len(media_workflow_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-id cannot be whitespace or empty string') if not force: if tasks or media_workflow_configuration_ids or parameters or freeform_tags or defined_tags: @@ -3939,7 +3938,7 @@ def update_media_workflow(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_media_workflow_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, media_workflow_configuration_id, display_name, parameters, freeform_tags, defined_tags, is_lock_override, if_match): - if isinstance(media_workflow_configuration_id, six.string_types) and len(media_workflow_configuration_id.strip()) == 0: + if isinstance(media_workflow_configuration_id, str) and len(media_workflow_configuration_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-configuration-id cannot be whitespace or empty string') if not force: if parameters or freeform_tags or defined_tags: @@ -4017,7 +4016,7 @@ def update_media_workflow_configuration(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_media_workflow_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, media_workflow_job_id, display_name, freeform_tags, defined_tags, is_lock_override, if_match): - if isinstance(media_workflow_job_id, six.string_types) and len(media_workflow_job_id.strip()) == 0: + if isinstance(media_workflow_job_id, str) and len(media_workflow_job_id.strip()) == 0: raise click.UsageError('Parameter --media-workflow-job-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4094,7 +4093,7 @@ def update_media_workflow_job(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_stream_cdn_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_cdn_config_id, display_name, is_enabled, config, freeform_tags, defined_tags, is_lock_override, if_match): - if isinstance(stream_cdn_config_id, six.string_types) and len(stream_cdn_config_id.strip()) == 0: + if isinstance(stream_cdn_config_id, str) and len(stream_cdn_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-cdn-config-id cannot be whitespace or empty string') if not force: if config or freeform_tags or defined_tags: @@ -4187,7 +4186,7 @@ def update_stream_cdn_config(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_stream_cdn_config_akamai_manual_stream_cdn_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_cdn_config_id, display_name, is_enabled, freeform_tags, defined_tags, is_lock_override, if_match, config_origin_auth_sign_type, config_origin_auth_sign_encryption, config_origin_auth_secret_key_a, config_origin_auth_secret_key_nonce_a, config_origin_auth_secret_key_b, config_origin_auth_secret_key_nonce_b, config_edge_hostname, config_edge_path_prefix, config_is_edge_token_auth, config_edge_token_key, config_edge_token_salt): - if isinstance(stream_cdn_config_id, six.string_types) and len(stream_cdn_config_id.strip()) == 0: + if isinstance(stream_cdn_config_id, str) and len(stream_cdn_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-cdn-config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4302,7 +4301,7 @@ def update_stream_cdn_config_akamai_manual_stream_cdn_config(ctx, from_json, for @cli_util.wrap_exceptions def update_stream_cdn_config_edge_stream_cdn_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_cdn_config_id, display_name, is_enabled, freeform_tags, defined_tags, is_lock_override, if_match): - if isinstance(stream_cdn_config_id, six.string_types) and len(stream_cdn_config_id.strip()) == 0: + if isinstance(stream_cdn_config_id, str) and len(stream_cdn_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-cdn-config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4383,7 +4382,7 @@ def update_stream_cdn_config_edge_stream_cdn_config(ctx, from_json, force, wait_ @cli_util.wrap_exceptions def update_stream_distribution_channel(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_distribution_channel_id, display_name, freeform_tags, defined_tags, is_lock_override, if_match): - if isinstance(stream_distribution_channel_id, six.string_types) and len(stream_distribution_channel_id.strip()) == 0: + if isinstance(stream_distribution_channel_id, str) and len(stream_distribution_channel_id.strip()) == 0: raise click.UsageError('Parameter --stream-distribution-channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4458,7 +4457,7 @@ def update_stream_distribution_channel(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_stream_packaging_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_packaging_config_id, display_name, freeform_tags, defined_tags, is_lock_override, if_match): - if isinstance(stream_packaging_config_id, six.string_types) and len(stream_packaging_config_id.strip()) == 0: + if isinstance(stream_packaging_config_id, str) and len(stream_packaging_config_id.strip()) == 0: raise click.UsageError('Parameter --stream-packaging-config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/media_services/src/oci_cli_media_stream/generated/mediastream_cli.py b/services/media_services/src/oci_cli_media_stream/generated/mediastream_cli.py index ddac3c45d..2ae4ea3cc 100644 --- a/services/media_services/src/oci_cli_media_stream/generated/mediastream_cli.py +++ b/services/media_services/src/oci_cli_media_stream/generated/mediastream_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/mngdmac/src/oci_cli_mac_device/generated/macdevice_cli.py b/services/mngdmac/src/oci_cli_mac_device/generated/macdevice_cli.py index 980788806..ee9ab219b 100644 --- a/services/mngdmac/src/oci_cli_mac_device/generated/macdevice_cli.py +++ b/services/mngdmac/src/oci_cli_mac_device/generated/macdevice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -49,10 +48,10 @@ def mac_device_collection_group(): @cli_util.wrap_exceptions def get_mac_device(ctx, from_json, mac_device_id, mac_order_id): - if isinstance(mac_device_id, six.string_types) and len(mac_device_id.strip()) == 0: + if isinstance(mac_device_id, str) and len(mac_device_id.strip()) == 0: raise click.UsageError('Parameter --mac-device-id cannot be whitespace or empty string') - if isinstance(mac_order_id, six.string_types) and len(mac_order_id.strip()) == 0: + if isinstance(mac_order_id, str) and len(mac_order_id.strip()) == 0: raise click.UsageError('Parameter --mac-order-id cannot be whitespace or empty string') kwargs = {} @@ -88,7 +87,7 @@ def list_mac_devices(ctx, from_json, all_pages, page_size, mac_order_id, compart if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(mac_order_id, six.string_types) and len(mac_order_id.strip()) == 0: + if isinstance(mac_order_id, str) and len(mac_order_id.strip()) == 0: raise click.UsageError('Parameter --mac-order-id cannot be whitespace or empty string') kwargs = {} @@ -149,10 +148,10 @@ def list_mac_devices(ctx, from_json, all_pages, page_size, mac_order_id, compart @cli_util.wrap_exceptions def terminate_mac_device(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mac_device_id, mac_order_id, if_match): - if isinstance(mac_device_id, six.string_types) and len(mac_device_id.strip()) == 0: + if isinstance(mac_device_id, str) and len(mac_device_id.strip()) == 0: raise click.UsageError('Parameter --mac-device-id cannot be whitespace or empty string') - if isinstance(mac_order_id, six.string_types) and len(mac_order_id.strip()) == 0: + if isinstance(mac_order_id, str) and len(mac_order_id.strip()) == 0: raise click.UsageError('Parameter --mac-order-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/mngdmac/src/oci_cli_mac_order/generated/macorder_cli.py b/services/mngdmac/src/oci_cli_mac_order/generated/macorder_cli.py index 383da4742..1265e38fd 100644 --- a/services/mngdmac/src/oci_cli_mac_order/generated/macorder_cli.py +++ b/services/mngdmac/src/oci_cli_mac_order/generated/macorder_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -74,7 +73,7 @@ def mac_order_collection_group(): @cli_util.wrap_exceptions def cancel_mac_order(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mac_order_id, cancel_reason, if_match): - if isinstance(mac_order_id, six.string_types) and len(mac_order_id.strip()) == 0: + if isinstance(mac_order_id, str) and len(mac_order_id.strip()) == 0: raise click.UsageError('Parameter --mac-order-id cannot be whitespace or empty string') kwargs = {} @@ -134,7 +133,7 @@ def cancel_mac_order(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -163,7 +162,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_mac_order_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mac_order_id, compartment_id, if_match): - if isinstance(mac_order_id, six.string_types) and len(mac_order_id.strip()) == 0: + if isinstance(mac_order_id, str) and len(mac_order_id.strip()) == 0: raise click.UsageError('Parameter --mac-order-id cannot be whitespace or empty string') kwargs = {} @@ -290,7 +289,7 @@ def create_mac_order(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_mac_order(ctx, from_json, mac_order_id): - if isinstance(mac_order_id, six.string_types) and len(mac_order_id.strip()) == 0: + if isinstance(mac_order_id, str) and len(mac_order_id.strip()) == 0: raise click.UsageError('Parameter --mac-order-id cannot be whitespace or empty string') kwargs = {} @@ -312,7 +311,7 @@ def get_mac_order(ctx, from_json, mac_order_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -405,7 +404,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -462,7 +461,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -583,7 +582,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_mac_order(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, mac_order_id, display_name, order_description, order_size, shape, ip_range, if_match): - if isinstance(mac_order_id, six.string_types) and len(mac_order_id.strip()) == 0: + if isinstance(mac_order_id, str) and len(mac_order_id.strip()) == 0: raise click.UsageError('Parameter --mac-order-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/model_deployment/src/oci_cli_model_deployment/generated/modeldeployment_cli.py b/services/model_deployment/src/oci_cli_model_deployment/generated/modeldeployment_cli.py index 4bb8ae9f6..3f6cb37a6 100644 --- a/services/model_deployment/src/oci_cli_model_deployment/generated/modeldeployment_cli.py +++ b/services/model_deployment/src/oci_cli_model_deployment/generated/modeldeployment_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -43,7 +42,7 @@ def inference_result_group(): @cli_util.wrap_exceptions def predict(ctx, from_json, model_deployment_id, request_body): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -68,7 +67,7 @@ def predict(ctx, from_json, model_deployment_id, request_body): @cli_util.wrap_exceptions def predict_with_response_stream(ctx, from_json, file, model_deployment_id, request_body): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/model_deployment/src/oci_cli_model_deployment/modeldeployment_cli_extended.py b/services/model_deployment/src/oci_cli_model_deployment/modeldeployment_cli_extended.py index 87832b841..5b28fa544 100644 --- a/services/model_deployment/src/oci_cli_model_deployment/modeldeployment_cli_extended.py +++ b/services/model_deployment/src/oci_cli_model_deployment/modeldeployment_cli_extended.py @@ -2,7 +2,6 @@ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. import click -import six from oci_cli import cli_util, json_skeleton_utils, cli_constants from services.model_deployment.src.oci_cli_model_deployment.generated import modeldeployment_cli @@ -19,7 +18,7 @@ @cli_util.wrap_exceptions def predict_extended(ctx, from_json, model_deployment_id, request_body): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') parsed_request_body = '' @@ -49,7 +48,7 @@ def predict_extended(ctx, from_json, model_deployment_id, request_body): @cli_util.wrap_exceptions def predict_with_response_stream_extended(ctx, from_json, file, model_deployment_id, request_body): - if isinstance(model_deployment_id, six.string_types) and len(model_deployment_id.strip()) == 0: + if isinstance(model_deployment_id, str) and len(model_deployment_id.strip()) == 0: raise click.UsageError('Parameter --model-deployment-id cannot be whitespace or empty string') parsed_request_body = '' diff --git a/services/monitoring/src/oci_cli_monitoring/generated/monitoring_cli.py b/services/monitoring/src/oci_cli_monitoring/generated/monitoring_cli.py index 17f7c7cbc..9175cc5bd 100644 --- a/services/monitoring/src/oci_cli_monitoring/generated/monitoring_cli.py +++ b/services/monitoring/src/oci_cli_monitoring/generated/monitoring_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -117,7 +116,7 @@ def alarm_suppression_group(): @cli_util.wrap_exceptions def change_alarm_compartment(ctx, from_json, alarm_id, compartment_id, if_match): - if isinstance(alarm_id, six.string_types) and len(alarm_id.strip()) == 0: + if isinstance(alarm_id, str) and len(alarm_id.strip()) == 0: raise click.UsageError('Parameter --alarm-id cannot be whitespace or empty string') kwargs = {} @@ -641,7 +640,7 @@ def create_alarm_suppression_alarm_suppression_compartment_target(ctx, from_json @cli_util.wrap_exceptions def delete_alarm(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, alarm_id, if_match): - if isinstance(alarm_id, six.string_types) and len(alarm_id.strip()) == 0: + if isinstance(alarm_id, str) and len(alarm_id.strip()) == 0: raise click.UsageError('Parameter --alarm-id cannot be whitespace or empty string') kwargs = {} @@ -709,7 +708,7 @@ def delete_alarm(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_alarm_suppression(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, alarm_suppression_id, if_match): - if isinstance(alarm_suppression_id, six.string_types) and len(alarm_suppression_id.strip()) == 0: + if isinstance(alarm_suppression_id, str) and len(alarm_suppression_id.strip()) == 0: raise click.UsageError('Parameter --alarm-suppression-id cannot be whitespace or empty string') kwargs = {} @@ -770,7 +769,7 @@ def delete_alarm_suppression(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def get_alarm(ctx, from_json, alarm_id): - if isinstance(alarm_id, six.string_types) and len(alarm_id.strip()) == 0: + if isinstance(alarm_id, str) and len(alarm_id.strip()) == 0: raise click.UsageError('Parameter --alarm-id cannot be whitespace or empty string') kwargs = {} @@ -809,7 +808,7 @@ def get_alarm(ctx, from_json, alarm_id): @cli_util.wrap_exceptions def get_alarm_history(ctx, from_json, alarm_id, alarm_historytype, page, limit, timestamp_greater_than_or_equal_to, timestamp_less_than): - if isinstance(alarm_id, six.string_types) and len(alarm_id.strip()) == 0: + if isinstance(alarm_id, str) and len(alarm_id.strip()) == 0: raise click.UsageError('Parameter --alarm-id cannot be whitespace or empty string') kwargs = {} @@ -845,7 +844,7 @@ def get_alarm_history(ctx, from_json, alarm_id, alarm_historytype, page, limit, @cli_util.wrap_exceptions def get_alarm_suppression(ctx, from_json, alarm_suppression_id): - if isinstance(alarm_suppression_id, six.string_types) and len(alarm_suppression_id.strip()) == 0: + if isinstance(alarm_suppression_id, str) and len(alarm_suppression_id.strip()) == 0: raise click.UsageError('Parameter --alarm-suppression-id cannot be whitespace or empty string') kwargs = {} @@ -1284,7 +1283,7 @@ def post_metric_data(ctx, from_json, metric_data, batch_atomicity, content_encod @cli_util.wrap_exceptions def remove_alarm_suppression(ctx, from_json, alarm_id, if_match): - if isinstance(alarm_id, six.string_types) and len(alarm_id.strip()) == 0: + if isinstance(alarm_id, str) and len(alarm_id.strip()) == 0: raise click.UsageError('Parameter --alarm-id cannot be whitespace or empty string') kwargs = {} @@ -1322,7 +1321,7 @@ def remove_alarm_suppression(ctx, from_json, alarm_id, if_match): @cli_util.wrap_exceptions def retrieve_dimension_states(ctx, from_json, alarm_id, page, limit, dimension_filters, status): - if isinstance(alarm_id, six.string_types) and len(alarm_id.strip()) == 0: + if isinstance(alarm_id, str) and len(alarm_id.strip()) == 0: raise click.UsageError('Parameter --alarm-id cannot be whitespace or empty string') kwargs = {} @@ -1381,7 +1380,7 @@ def retrieve_dimension_states(ctx, from_json, alarm_id, page, limit, dimension_f @cli_util.wrap_exceptions def summarize_alarm_suppression_history(ctx, from_json, alarm_id, page, limit, dimensions, time_suppress_from_greater_than_or_equal_to, time_suppress_from_less_than): - if isinstance(alarm_id, six.string_types) and len(alarm_id.strip()) == 0: + if isinstance(alarm_id, str) and len(alarm_id.strip()) == 0: raise click.UsageError('Parameter --alarm-id cannot be whitespace or empty string') kwargs = {} @@ -1574,7 +1573,7 @@ def summarize_metrics_data(ctx, from_json, compartment_id, namespace, query_para @cli_util.wrap_exceptions def update_alarm(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, alarm_id, display_name, compartment_id, metric_compartment_id, metric_compartment_id_in_subtree, namespace, resource_group, query_parameterconflict, resolution, pending_duration, severity, body, is_notifications_per_metric_dimension_enabled, message_format, destinations, repeat_notification_duration, suppression, is_enabled, freeform_tags, defined_tags, overrides, rule_name, notification_version, notification_title, evaluation_slack_duration, alarm_summary, if_match): - if isinstance(alarm_id, six.string_types) and len(alarm_id.strip()) == 0: + if isinstance(alarm_id, str) and len(alarm_id.strip()) == 0: raise click.UsageError('Parameter --alarm-id cannot be whitespace or empty string') if not force: if destinations or suppression or freeform_tags or defined_tags or overrides: diff --git a/services/multicloud/src/oci_cli_metadata/generated/metadata_cli.py b/services/multicloud/src/oci_cli_metadata/generated/metadata_cli.py index d124952ec..d22ddad58 100644 --- a/services/multicloud/src/oci_cli_metadata/generated/metadata_cli.py +++ b/services/multicloud/src/oci_cli_metadata/generated/metadata_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/multicloud/src/oci_cli_multi_clouds_metadata/generated/multicloudsmetadata_cli.py b/services/multicloud/src/oci_cli_multi_clouds_metadata/generated/multicloudsmetadata_cli.py index e0b3fb1b0..da4bb5b56 100644 --- a/services/multicloud/src/oci_cli_multi_clouds_metadata/generated/multicloudsmetadata_cli.py +++ b/services/multicloud/src/oci_cli_multi_clouds_metadata/generated/multicloudsmetadata_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -49,7 +48,7 @@ def multi_cloud_metadata_group(): @cli_util.wrap_exceptions def get_multi_cloud_metadata(ctx, from_json, compartment_id, subscription_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/multicloud/src/oci_cli_multicloud_alerts/generated/multicloudalerts_cli.py b/services/multicloud/src/oci_cli_multicloud_alerts/generated/multicloudalerts_cli.py index 381c7346a..950f91741 100644 --- a/services/multicloud/src/oci_cli_multicloud_alerts/generated/multicloudalerts_cli.py +++ b/services/multicloud/src/oci_cli_multicloud_alerts/generated/multicloudalerts_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/multicloud/src/oci_cli_multicloud_policies/generated/multicloudpolicies_cli.py b/services/multicloud/src/oci_cli_multicloud_policies/generated/multicloudpolicies_cli.py index 20c11c833..4e01a7ca6 100644 --- a/services/multicloud/src/oci_cli_multicloud_policies/generated/multicloudpolicies_cli.py +++ b/services/multicloud/src/oci_cli_multicloud_policies/generated/multicloudpolicies_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/multicloud/src/oci_cli_multicloud_resources/generated/multicloudresources_cli.py b/services/multicloud/src/oci_cli_multicloud_resources/generated/multicloudresources_cli.py index 345d5b1da..711493996 100644 --- a/services/multicloud/src/oci_cli_multicloud_resources/generated/multicloudresources_cli.py +++ b/services/multicloud/src/oci_cli_multicloud_resources/generated/multicloudresources_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/multicloud/src/oci_cli_multicloudsubscriptions/generated/multicloudsubscriptions_cli.py b/services/multicloud/src/oci_cli_multicloudsubscriptions/generated/multicloudsubscriptions_cli.py index 705584293..0afab0d5e 100644 --- a/services/multicloud/src/oci_cli_multicloudsubscriptions/generated/multicloudsubscriptions_cli.py +++ b/services/multicloud/src/oci_cli_multicloudsubscriptions/generated/multicloudsubscriptions_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/multicloud/src/oci_cli_omhub_network_anchor/generated/omhubnetworkanchor_cli.py b/services/multicloud/src/oci_cli_omhub_network_anchor/generated/omhubnetworkanchor_cli.py index 076d0b1a4..73ba5464f 100644 --- a/services/multicloud/src/oci_cli_omhub_network_anchor/generated/omhubnetworkanchor_cli.py +++ b/services/multicloud/src/oci_cli_omhub_network_anchor/generated/omhubnetworkanchor_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -54,7 +53,7 @@ def network_anchor_collection_group(): @cli_util.wrap_exceptions def get_network_anchor(ctx, from_json, network_anchor_id, subscription_service_name, subscription_id, external_location, should_fetch_vcn_name): - if isinstance(network_anchor_id, six.string_types) and len(network_anchor_id.strip()) == 0: + if isinstance(network_anchor_id, str) and len(network_anchor_id.strip()) == 0: raise click.UsageError('Parameter --network-anchor-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/multicloud/src/oci_cli_omhub_resource_anchor/generated/omhubresourceanchor_cli.py b/services/multicloud/src/oci_cli_omhub_resource_anchor/generated/omhubresourceanchor_cli.py index 22d64b43f..53ca6e893 100644 --- a/services/multicloud/src/oci_cli_omhub_resource_anchor/generated/omhubresourceanchor_cli.py +++ b/services/multicloud/src/oci_cli_omhub_resource_anchor/generated/omhubresourceanchor_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,7 +52,7 @@ def resource_anchor_group(): @cli_util.wrap_exceptions def get_resource_anchor(ctx, from_json, resource_anchor_id, subscription_service_name, subscription_id, should_fetch_compartment_name): - if isinstance(resource_anchor_id, six.string_types) and len(resource_anchor_id.strip()) == 0: + if isinstance(resource_anchor_id, str) and len(resource_anchor_id.strip()) == 0: raise click.UsageError('Parameter --resource-anchor-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/mysql/src/oci_cli_blue_green_deployments/generated/bluegreendeployments_cli.py b/services/mysql/src/oci_cli_blue_green_deployments/generated/bluegreendeployments_cli.py index 73c333408..4f02a0282 100644 --- a/services/mysql/src/oci_cli_blue_green_deployments/generated/bluegreendeployments_cli.py +++ b/services/mysql/src/oci_cli_blue_green_deployments/generated/bluegreendeployments_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,7 +52,7 @@ def blue_green_deployment_group(): @cli_util.wrap_exceptions def change_blue_green_deployment_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blue_green_deployment_id, compartment_id, if_match): - if isinstance(blue_green_deployment_id, six.string_types) and len(blue_green_deployment_id.strip()) == 0: + if isinstance(blue_green_deployment_id, str) and len(blue_green_deployment_id.strip()) == 0: raise click.UsageError('Parameter --blue-green-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -187,7 +186,7 @@ def create_blue_green_deployment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_blue_green_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blue_green_deployment_id, if_match): - if isinstance(blue_green_deployment_id, six.string_types) and len(blue_green_deployment_id.strip()) == 0: + if isinstance(blue_green_deployment_id, str) and len(blue_green_deployment_id.strip()) == 0: raise click.UsageError('Parameter --blue-green-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -241,7 +240,7 @@ def delete_blue_green_deployment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def get_blue_green_deployment(ctx, from_json, blue_green_deployment_id, if_none_match): - if isinstance(blue_green_deployment_id, six.string_types) and len(blue_green_deployment_id.strip()) == 0: + if isinstance(blue_green_deployment_id, str) and len(blue_green_deployment_id.strip()) == 0: raise click.UsageError('Parameter --blue-green-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -344,7 +343,7 @@ def list_blue_green_deployments(ctx, from_json, all_pages, page_size, compartmen @cli_util.wrap_exceptions def switchover_blue_green_deployment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, blue_green_deployment_id, wait_time_in_seconds, if_match): - if isinstance(blue_green_deployment_id, six.string_types) and len(blue_green_deployment_id.strip()) == 0: + if isinstance(blue_green_deployment_id, str) and len(blue_green_deployment_id.strip()) == 0: raise click.UsageError('Parameter --blue-green-deployment-id cannot be whitespace or empty string') kwargs = {} @@ -412,7 +411,7 @@ def switchover_blue_green_deployment(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_blue_green_deployment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, blue_green_deployment_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(blue_green_deployment_id, six.string_types) and len(blue_green_deployment_id.strip()) == 0: + if isinstance(blue_green_deployment_id, str) and len(blue_green_deployment_id.strip()) == 0: raise click.UsageError('Parameter --blue-green-deployment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/mysql/src/oci_cli_channels/generated/channels_cli.py b/services/mysql/src/oci_cli_channels/generated/channels_cli.py index 71b2cb32f..f20d980d6 100644 --- a/services/mysql/src/oci_cli_channels/generated/channels_cli.py +++ b/services/mysql/src/oci_cli_channels/generated/channels_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -346,7 +345,7 @@ def create_channel_create_channel_target_from_db_system_details(ctx, from_json, @cli_util.wrap_exceptions def delete_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, channel_id, if_match): - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -402,7 +401,7 @@ def delete_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def generate_channel_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, channel_id): - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -454,7 +453,7 @@ def generate_channel_status(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def get_channel(ctx, from_json, channel_id, if_none_match): - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -478,7 +477,7 @@ def get_channel(ctx, from_json, channel_id, if_none_match): @cli_util.wrap_exceptions def get_channel_status(ctx, from_json, channel_id): - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -573,7 +572,7 @@ def list_channels(ctx, from_json, all_pages, page_size, compartment_id, db_syste @cli_util.wrap_exceptions def reset_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, channel_id, if_match): - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -630,7 +629,7 @@ def reset_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def resume_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, channel_id, if_match): - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -695,7 +694,7 @@ def resume_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def update_channel(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, channel_id, source, target, display_name, is_enabled, description, freeform_tags, defined_tags, if_match): - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if source or target or freeform_tags or defined_tags: @@ -796,7 +795,7 @@ def update_channel(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_channel_update_channel_source_from_mysql_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, channel_id, target, display_name, is_enabled, description, freeform_tags, defined_tags, if_match, source_hostname, source_port, source_username, source_password, source_ssl_mode, source_ssl_ca_certificate, source_anonymous_transactions_handling, source_must_use_ipv6_on_dual_stack): - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if target or freeform_tags or defined_tags: @@ -920,7 +919,7 @@ def update_channel_update_channel_source_from_mysql_details(ctx, from_json, forc @cli_util.wrap_exceptions def update_channel_update_channel_target_from_db_system_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, channel_id, source, display_name, is_enabled, description, freeform_tags, defined_tags, if_match, target_channel_name, target_applier_username, target_filters, target_tables_without_primary_key_handling, target_delay_in_seconds): - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if source or freeform_tags or defined_tags: diff --git a/services/mysql/src/oci_cli_db_backups/generated/dbbackups_cli.py b/services/mysql/src/oci_cli_db_backups/generated/dbbackups_cli.py index 4710a4f6e..fb8b29302 100644 --- a/services/mysql/src/oci_cli_db_backups/generated/dbbackups_cli.py +++ b/services/mysql/src/oci_cli_db_backups/generated/dbbackups_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -47,7 +46,7 @@ def backup_group(): @cli_util.wrap_exceptions def cancel_backup_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -105,7 +104,7 @@ def cancel_backup_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def change_backup_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, compartment_id, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -333,7 +332,7 @@ def create_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -393,7 +392,7 @@ def delete_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def export_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, bucket_name, namespace_name, export_options, subnet_id): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -457,7 +456,7 @@ def export_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def get_backup(ctx, from_json, backup_id, if_none_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -570,7 +569,7 @@ def list_backups(ctx, from_json, all_pages, page_size, compartment_id, backup_id @cli_util.wrap_exceptions def update_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, display_name, description, soft_delete, retention_in_days, freeform_tags, defined_tags, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -648,7 +647,7 @@ def update_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def validate_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, is_prepared_backup_required, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/mysql/src/oci_cli_db_system/db_system_cli_extended.py b/services/mysql/src/oci_cli_db_system/db_system_cli_extended.py index a11c09d06..a80f66a09 100755 --- a/services/mysql/src/oci_cli_db_system/db_system_cli_extended.py +++ b/services/mysql/src/oci_cli_db_system/db_system_cli_extended.py @@ -10,7 +10,6 @@ from oci_cli import json_skeleton_utils from oci_cli import custom_types import click -import six import oci.waiter import sys import json @@ -68,7 +67,7 @@ def list_db_systems_extended(ctx, **kwargs): @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}) @cli_util.wrap_exceptions def start_db_system_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match, **kwargs): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -120,7 +119,7 @@ def start_db_system_extended(ctx, from_json, wait_for_state, max_wait_seconds, w @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}) @cli_util.wrap_exceptions def stop_db_system_extended(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, shutdown_type, if_match, **kwargs): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/mysql/src/oci_cli_db_system/generated/dbsystem_cli.py b/services/mysql/src/oci_cli_db_system/generated/dbsystem_cli.py index 76420f0b9..c07ecf295 100644 --- a/services/mysql/src/oci_cli_db_system/generated/dbsystem_cli.py +++ b/services/mysql/src/oci_cli_db_system/generated/dbsystem_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -76,7 +75,7 @@ def maintenance_event_group(): @cli_util.wrap_exceptions def add_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, shape_name, cluster_size, is_lakehouse_enabled, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -144,7 +143,7 @@ def add_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def controlled_update_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, target_mysql_version, target_db_instances, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1541,7 +1540,7 @@ def create_db_system_create_db_system_source_from_pitr_details(ctx, from_json, w @cli_util.wrap_exceptions def delete_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1599,7 +1598,7 @@ def delete_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1658,7 +1657,7 @@ def delete_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def generate_db_system_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, gtid_set_type, gtid_set_to_apply, channel_ids): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1725,7 +1724,7 @@ def generate_db_system_status(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def generate_heat_wave_cluster_memory_estimate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1777,7 +1776,7 @@ def generate_heat_wave_cluster_memory_estimate(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def get_db_system(ctx, from_json, db_system_id, if_none_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1801,7 +1800,7 @@ def get_db_system(ctx, from_json, db_system_id, if_none_match): @cli_util.wrap_exceptions def get_db_system_status(ctx, from_json, db_system_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1824,7 +1823,7 @@ def get_db_system_status(ctx, from_json, db_system_id): @cli_util.wrap_exceptions def get_heat_wave_cluster(ctx, from_json, db_system_id, if_none_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1848,7 +1847,7 @@ def get_heat_wave_cluster(ctx, from_json, db_system_id, if_none_match): @cli_util.wrap_exceptions def get_heat_wave_cluster_memory_estimate(ctx, from_json, db_system_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1959,7 +1958,7 @@ def list_maintenance_events(ctx, from_json, all_pages, page_size, db_system_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2022,7 +2021,7 @@ def list_maintenance_events(ctx, from_json, all_pages, page_size, db_system_id, @cli_util.wrap_exceptions def restart_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, shutdown_type, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2084,7 +2083,7 @@ def restart_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def restart_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2141,7 +2140,7 @@ def restart_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def start_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2198,7 +2197,7 @@ def start_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def start_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2258,7 +2257,7 @@ def start_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def stop_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, shutdown_type, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2320,7 +2319,7 @@ def stop_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def stop_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2435,7 +2434,7 @@ def stop_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, display_name, description, subnet_id, nsg_ids, security_attributes, database_mode, access_mode, rest, database_console, is_highly_available, availability_domain, fault_domain, shape_name, mysql_version, configuration_id, admin_username, admin_password, data_storage_size_in_gbs, data_storage, hostname_label, ip_address, is_ipv6_enabled, ipv6_address_ipv6_subnet_cidr_pair_details, port, port_x, backup_policy, maintenance, freeform_tags, defined_tags, deletion_policy, crash_recovery, database_management, secure_connections, encrypt_data, customer_contacts, read_endpoint, telemetry_configuration, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') if not force: if nsg_ids or security_attributes or rest or database_console or data_storage or ipv6_address_ipv6_subnet_cidr_pair_details or backup_policy or maintenance or freeform_tags or defined_tags or deletion_policy or secure_connections or encrypt_data or customer_contacts or read_endpoint or telemetry_configuration: @@ -2614,7 +2613,7 @@ def update_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_heat_wave_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, shape_name, cluster_size, is_lakehouse_enabled, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/mysql/src/oci_cli_mysqlaas/generated/mysqlaas_cli.py b/services/mysql/src/oci_cli_mysqlaas/generated/mysqlaas_cli.py index 697c76ac1..36801c28b 100644 --- a/services/mysql/src/oci_cli_mysqlaas/generated/mysqlaas_cli.py +++ b/services/mysql/src/oci_cli_mysqlaas/generated/mysqlaas_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -151,7 +150,7 @@ def create_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_id, if_match): - if isinstance(configuration_id, six.string_types) and len(configuration_id.strip()) == 0: + if isinstance(configuration_id, str) and len(configuration_id.strip()) == 0: raise click.UsageError('Parameter --configuration-id cannot be whitespace or empty string') kwargs = {} @@ -211,7 +210,7 @@ def delete_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def get_configuration(ctx, from_json, configuration_id, if_none_match): - if isinstance(configuration_id, six.string_types) and len(configuration_id.strip()) == 0: + if isinstance(configuration_id, str) and len(configuration_id.strip()) == 0: raise click.UsageError('Parameter --configuration-id cannot be whitespace or empty string') kwargs = {} @@ -368,7 +367,7 @@ def list_versions(ctx, from_json, all_pages, compartment_id): @cli_util.wrap_exceptions def update_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_id, description, display_name, freeform_tags, defined_tags, if_match): - if isinstance(configuration_id, six.string_types) and len(configuration_id.strip()) == 0: + if isinstance(configuration_id, str) and len(configuration_id.strip()) == 0: raise click.UsageError('Parameter --configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/mysql/src/oci_cli_replicas/generated/replicas_cli.py b/services/mysql/src/oci_cli_replicas/generated/replicas_cli.py index 581711e53..1ea6847ae 100644 --- a/services/mysql/src/oci_cli_replicas/generated/replicas_cli.py +++ b/services/mysql/src/oci_cli_replicas/generated/replicas_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -125,7 +124,7 @@ def create_replica(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_replica(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, replica_id, if_match): - if isinstance(replica_id, six.string_types) and len(replica_id.strip()) == 0: + if isinstance(replica_id, str) and len(replica_id.strip()) == 0: raise click.UsageError('Parameter --replica-id cannot be whitespace or empty string') kwargs = {} @@ -179,7 +178,7 @@ def delete_replica(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def get_replica(ctx, from_json, replica_id, if_none_match): - if isinstance(replica_id, six.string_types) and len(replica_id.strip()) == 0: + if isinstance(replica_id, str) and len(replica_id.strip()) == 0: raise click.UsageError('Parameter --replica-id cannot be whitespace or empty string') kwargs = {} @@ -286,7 +285,7 @@ def list_replicas(ctx, from_json, all_pages, page_size, compartment_id, limit, p @cli_util.wrap_exceptions def update_replica(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, replica_id, display_name, description, freeform_tags, defined_tags, is_delete_protected, replica_overrides, if_match): - if isinstance(replica_id, six.string_types) and len(replica_id.strip()) == 0: + if isinstance(replica_id, str) and len(replica_id.strip()) == 0: raise click.UsageError('Parameter --replica-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or replica_overrides: diff --git a/services/mysql/src/oci_cli_work_requests/generated/workrequests_cli.py b/services/mysql/src/oci_cli_work_requests/generated/workrequests_cli.py index 857706fc1..67ac895b8 100644 --- a/services/mysql/src/oci_cli_work_requests/generated/workrequests_cli.py +++ b/services/mysql/src/oci_cli_work_requests/generated/workrequests_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -82,7 +81,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id, if_none_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -113,7 +112,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -164,7 +163,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/network_firewall/src/oci_cli_network_firewall/generated/networkfirewall_cli.py b/services/network_firewall/src/oci_cli_network_firewall/generated/networkfirewall_cli.py index f5e75b63b..a8d10f249 100644 --- a/services/network_firewall/src/oci_cli_network_firewall/generated/networkfirewall_cli.py +++ b/services/network_firewall/src/oci_cli_network_firewall/generated/networkfirewall_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -164,7 +163,7 @@ def security_rule_group(): @cli_util.wrap_exceptions def apply_network_firewall_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, firewalls, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -227,7 +226,7 @@ def apply_network_firewall_policy(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def bulk_upload_address_lists(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_address_lists_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -288,7 +287,7 @@ def bulk_upload_address_lists(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def bulk_upload_application_groups(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_application_groups_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -349,7 +348,7 @@ def bulk_upload_application_groups(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def bulk_upload_applications(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_applications_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -410,7 +409,7 @@ def bulk_upload_applications(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def bulk_upload_decryption_profiles(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_decryption_profiles_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -471,7 +470,7 @@ def bulk_upload_decryption_profiles(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def bulk_upload_decryption_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_decryption_rules_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -532,7 +531,7 @@ def bulk_upload_decryption_rules(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def bulk_upload_mapped_secrets(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_mapped_secrets_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -593,7 +592,7 @@ def bulk_upload_mapped_secrets(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def bulk_upload_nat_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_nat_rules_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -654,7 +653,7 @@ def bulk_upload_nat_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def bulk_upload_security_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_security_rules_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -715,7 +714,7 @@ def bulk_upload_security_rules(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def bulk_upload_service_lists(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_service_lists_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -776,7 +775,7 @@ def bulk_upload_service_lists(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def bulk_upload_services(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_services_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -837,7 +836,7 @@ def bulk_upload_services(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def bulk_upload_tunnel_inspection_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_tunnel_inspection_rules_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -898,7 +897,7 @@ def bulk_upload_tunnel_inspection_rules(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def bulk_upload_url_lists(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, bulk_upload_url_lists_details, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -956,7 +955,7 @@ def bulk_upload_url_lists(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -985,7 +984,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_network_firewall_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_id, compartment_id, if_match): - if isinstance(network_firewall_id, six.string_types) and len(network_firewall_id.strip()) == 0: + if isinstance(network_firewall_id, str) and len(network_firewall_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-id cannot be whitespace or empty string') kwargs = {} @@ -1043,7 +1042,7 @@ def change_network_firewall_compartment(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def change_network_firewall_policy_compartment(ctx, from_json, network_firewall_policy_id, compartment_id, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1081,7 +1080,7 @@ def change_network_firewall_policy_compartment(ctx, from_json, network_firewall_ @cli_util.wrap_exceptions def clone_network_firewall_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, display_name, compartment_id, description, freeform_tags, defined_tags, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1155,7 +1154,7 @@ def clone_network_firewall_policy(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def create_address_list(ctx, from_json, network_firewall_policy_id, name, type, addresses, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1190,7 +1189,7 @@ def create_address_list(ctx, from_json, network_firewall_policy_id, name, type, @cli_util.wrap_exceptions def create_application(ctx, from_json, network_firewall_policy_id, name, type, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1227,7 +1226,7 @@ def create_application(ctx, from_json, network_firewall_policy_id, name, type, d @cli_util.wrap_exceptions def create_application_create_icmp_application_details(ctx, from_json, network_firewall_policy_id, name, icmp_type, description, icmp_code): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1267,7 +1266,7 @@ def create_application_create_icmp_application_details(ctx, from_json, network_f @cli_util.wrap_exceptions def create_application_create_icmp6_application_details(ctx, from_json, network_firewall_policy_id, name, icmp_type, description, icmp_code): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1306,7 +1305,7 @@ def create_application_create_icmp6_application_details(ctx, from_json, network_ @cli_util.wrap_exceptions def create_application_group(ctx, from_json, network_firewall_policy_id, name, apps, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1342,7 +1341,7 @@ def create_application_group(ctx, from_json, network_firewall_policy_id, name, a @cli_util.wrap_exceptions def create_decryption_profile(ctx, from_json, network_firewall_policy_id, type, name, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1378,7 +1377,7 @@ def create_decryption_profile(ctx, from_json, network_firewall_policy_id, type, @cli_util.wrap_exceptions def create_decryption_profile_create_ssl_inbound_inspection_profile_details(ctx, from_json, network_firewall_policy_id, name, description, is_unsupported_version_blocked, is_unsupported_cipher_blocked, is_out_of_capacity_blocked): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1430,7 +1429,7 @@ def create_decryption_profile_create_ssl_inbound_inspection_profile_details(ctx, @cli_util.wrap_exceptions def create_decryption_profile_create_ssl_forward_proxy_profile_details(ctx, from_json, network_firewall_policy_id, name, description, is_expired_certificate_blocked, is_untrusted_issuer_blocked, is_revocation_status_timeout_blocked, is_unsupported_version_blocked, is_unsupported_cipher_blocked, is_unknown_revocation_status_blocked, are_certificate_extensions_restricted, is_auto_include_alt_name, is_out_of_capacity_blocked): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1499,7 +1498,7 @@ def create_decryption_profile_create_ssl_forward_proxy_profile_details(ctx, from @cli_util.wrap_exceptions def create_decryption_rule(ctx, from_json, network_firewall_policy_id, name, condition, action, description, decryption_profile, secret, secrets, position): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1549,7 +1548,7 @@ def create_decryption_rule(ctx, from_json, network_firewall_policy_id, name, con @cli_util.wrap_exceptions def create_mapped_secret(ctx, from_json, network_firewall_policy_id, name, source, type, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1588,7 +1587,7 @@ def create_mapped_secret(ctx, from_json, network_firewall_policy_id, name, sourc @cli_util.wrap_exceptions def create_mapped_secret_create_vault_mapped_secret_details(ctx, from_json, network_firewall_policy_id, name, type, vault_secret_id, version_number, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1629,7 +1628,7 @@ def create_mapped_secret_create_vault_mapped_secret_details(ctx, from_json, netw @cli_util.wrap_exceptions def create_nat_rule(ctx, from_json, network_firewall_policy_id, name, type, description, position): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1670,7 +1669,7 @@ def create_nat_rule(ctx, from_json, network_firewall_policy_id, name, type, desc @cli_util.wrap_exceptions def create_nat_rule_create_nat_v4_rule_details(ctx, from_json, network_firewall_policy_id, name, condition, action, description, position): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1885,7 +1884,7 @@ def create_network_firewall_policy(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def create_security_rule(ctx, from_json, network_firewall_policy_id, name, condition, action, inspection, position, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1926,7 +1925,7 @@ def create_security_rule(ctx, from_json, network_firewall_policy_id, name, condi @cli_util.wrap_exceptions def create_service(ctx, from_json, network_firewall_policy_id, name, type, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1962,7 +1961,7 @@ def create_service(ctx, from_json, network_firewall_policy_id, name, type, descr @cli_util.wrap_exceptions def create_service_create_udp_service_details(ctx, from_json, network_firewall_policy_id, name, port_ranges, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1998,7 +1997,7 @@ def create_service_create_udp_service_details(ctx, from_json, network_firewall_p @cli_util.wrap_exceptions def create_service_create_tcp_service_details(ctx, from_json, network_firewall_policy_id, name, port_ranges, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2034,7 +2033,7 @@ def create_service_create_tcp_service_details(ctx, from_json, network_firewall_p @cli_util.wrap_exceptions def create_service_list(ctx, from_json, network_firewall_policy_id, name, services, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2074,7 +2073,7 @@ def create_service_list(ctx, from_json, network_firewall_policy_id, name, servic @cli_util.wrap_exceptions def create_tunnel_inspection_rule(ctx, from_json, network_firewall_policy_id, name, protocol, action, position, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2119,7 +2118,7 @@ def create_tunnel_inspection_rule(ctx, from_json, network_firewall_policy_id, na @cli_util.wrap_exceptions def create_tunnel_inspection_rule_create_vxlan_inspection_rule_details(ctx, from_json, network_firewall_policy_id, name, condition, action, position, description, profile_parameterconflict): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2164,7 +2163,7 @@ def create_tunnel_inspection_rule_create_vxlan_inspection_rule_details(ctx, from @cli_util.wrap_exceptions def create_url_list(ctx, from_json, network_firewall_policy_id, name, urls, description): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2198,10 +2197,10 @@ def create_url_list(ctx, from_json, network_firewall_policy_id, name, urls, desc @cli_util.wrap_exceptions def delete_address_list(ctx, from_json, network_firewall_policy_id, address_list_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(address_list_name, six.string_types) and len(address_list_name.strip()) == 0: + if isinstance(address_list_name, str) and len(address_list_name.strip()) == 0: raise click.UsageError('Parameter --address-list-name cannot be whitespace or empty string') kwargs = {} @@ -2229,10 +2228,10 @@ def delete_address_list(ctx, from_json, network_firewall_policy_id, address_list @cli_util.wrap_exceptions def delete_application(ctx, from_json, network_firewall_policy_id, application_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(application_name, six.string_types) and len(application_name.strip()) == 0: + if isinstance(application_name, str) and len(application_name.strip()) == 0: raise click.UsageError('Parameter --application-name cannot be whitespace or empty string') kwargs = {} @@ -2260,10 +2259,10 @@ def delete_application(ctx, from_json, network_firewall_policy_id, application_n @cli_util.wrap_exceptions def delete_application_group(ctx, from_json, network_firewall_policy_id, application_group_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(application_group_name, six.string_types) and len(application_group_name.strip()) == 0: + if isinstance(application_group_name, str) and len(application_group_name.strip()) == 0: raise click.UsageError('Parameter --application-group-name cannot be whitespace or empty string') kwargs = {} @@ -2291,10 +2290,10 @@ def delete_application_group(ctx, from_json, network_firewall_policy_id, applica @cli_util.wrap_exceptions def delete_decryption_profile(ctx, from_json, network_firewall_policy_id, decryption_profile_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(decryption_profile_name, six.string_types) and len(decryption_profile_name.strip()) == 0: + if isinstance(decryption_profile_name, str) and len(decryption_profile_name.strip()) == 0: raise click.UsageError('Parameter --decryption-profile-name cannot be whitespace or empty string') kwargs = {} @@ -2322,10 +2321,10 @@ def delete_decryption_profile(ctx, from_json, network_firewall_policy_id, decryp @cli_util.wrap_exceptions def delete_decryption_rule(ctx, from_json, network_firewall_policy_id, decryption_rule_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(decryption_rule_name, six.string_types) and len(decryption_rule_name.strip()) == 0: + if isinstance(decryption_rule_name, str) and len(decryption_rule_name.strip()) == 0: raise click.UsageError('Parameter --decryption-rule-name cannot be whitespace or empty string') kwargs = {} @@ -2353,10 +2352,10 @@ def delete_decryption_rule(ctx, from_json, network_firewall_policy_id, decryptio @cli_util.wrap_exceptions def delete_mapped_secret(ctx, from_json, network_firewall_policy_id, mapped_secret_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(mapped_secret_name, six.string_types) and len(mapped_secret_name.strip()) == 0: + if isinstance(mapped_secret_name, str) and len(mapped_secret_name.strip()) == 0: raise click.UsageError('Parameter --mapped-secret-name cannot be whitespace or empty string') kwargs = {} @@ -2384,10 +2383,10 @@ def delete_mapped_secret(ctx, from_json, network_firewall_policy_id, mapped_secr @cli_util.wrap_exceptions def delete_nat_rule(ctx, from_json, network_firewall_policy_id, nat_rule_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(nat_rule_name, six.string_types) and len(nat_rule_name.strip()) == 0: + if isinstance(nat_rule_name, str) and len(nat_rule_name.strip()) == 0: raise click.UsageError('Parameter --nat-rule-name cannot be whitespace or empty string') kwargs = {} @@ -2417,7 +2416,7 @@ def delete_nat_rule(ctx, from_json, network_firewall_policy_id, nat_rule_name, i @cli_util.wrap_exceptions def delete_network_firewall(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_id, if_match): - if isinstance(network_firewall_id, six.string_types) and len(network_firewall_id.strip()) == 0: + if isinstance(network_firewall_id, str) and len(network_firewall_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-id cannot be whitespace or empty string') kwargs = {} @@ -2473,7 +2472,7 @@ def delete_network_firewall(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_network_firewall_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2527,10 +2526,10 @@ def delete_network_firewall_policy(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_security_rule(ctx, from_json, network_firewall_policy_id, security_rule_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(security_rule_name, six.string_types) and len(security_rule_name.strip()) == 0: + if isinstance(security_rule_name, str) and len(security_rule_name.strip()) == 0: raise click.UsageError('Parameter --security-rule-name cannot be whitespace or empty string') kwargs = {} @@ -2558,10 +2557,10 @@ def delete_security_rule(ctx, from_json, network_firewall_policy_id, security_ru @cli_util.wrap_exceptions def delete_service(ctx, from_json, network_firewall_policy_id, service_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(service_name, six.string_types) and len(service_name.strip()) == 0: + if isinstance(service_name, str) and len(service_name.strip()) == 0: raise click.UsageError('Parameter --service-name cannot be whitespace or empty string') kwargs = {} @@ -2589,10 +2588,10 @@ def delete_service(ctx, from_json, network_firewall_policy_id, service_name, if_ @cli_util.wrap_exceptions def delete_service_list(ctx, from_json, network_firewall_policy_id, service_list_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(service_list_name, six.string_types) and len(service_list_name.strip()) == 0: + if isinstance(service_list_name, str) and len(service_list_name.strip()) == 0: raise click.UsageError('Parameter --service-list-name cannot be whitespace or empty string') kwargs = {} @@ -2620,10 +2619,10 @@ def delete_service_list(ctx, from_json, network_firewall_policy_id, service_list @cli_util.wrap_exceptions def delete_tunnel_inspection_rule(ctx, from_json, network_firewall_policy_id, tunnel_inspection_rule_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(tunnel_inspection_rule_name, six.string_types) and len(tunnel_inspection_rule_name.strip()) == 0: + if isinstance(tunnel_inspection_rule_name, str) and len(tunnel_inspection_rule_name.strip()) == 0: raise click.UsageError('Parameter --tunnel-inspection-rule-name cannot be whitespace or empty string') kwargs = {} @@ -2651,10 +2650,10 @@ def delete_tunnel_inspection_rule(ctx, from_json, network_firewall_policy_id, tu @cli_util.wrap_exceptions def delete_url_list(ctx, from_json, network_firewall_policy_id, url_list_name, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(url_list_name, six.string_types) and len(url_list_name.strip()) == 0: + if isinstance(url_list_name, str) and len(url_list_name.strip()) == 0: raise click.UsageError('Parameter --url-list-name cannot be whitespace or empty string') kwargs = {} @@ -2680,10 +2679,10 @@ def delete_url_list(ctx, from_json, network_firewall_policy_id, url_list_name, i @cli_util.wrap_exceptions def get_address_list(ctx, from_json, network_firewall_policy_id, address_list_name): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(address_list_name, six.string_types) and len(address_list_name.strip()) == 0: + if isinstance(address_list_name, str) and len(address_list_name.strip()) == 0: raise click.UsageError('Parameter --address-list-name cannot be whitespace or empty string') kwargs = {} @@ -2709,10 +2708,10 @@ def get_address_list(ctx, from_json, network_firewall_policy_id, address_list_na @cli_util.wrap_exceptions def get_application(ctx, from_json, network_firewall_policy_id, application_name, limit, page): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(application_name, six.string_types) and len(application_name.strip()) == 0: + if isinstance(application_name, str) and len(application_name.strip()) == 0: raise click.UsageError('Parameter --application-name cannot be whitespace or empty string') kwargs = {} @@ -2740,10 +2739,10 @@ def get_application(ctx, from_json, network_firewall_policy_id, application_name @cli_util.wrap_exceptions def get_application_group(ctx, from_json, network_firewall_policy_id, application_group_name): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(application_group_name, six.string_types) and len(application_group_name.strip()) == 0: + if isinstance(application_group_name, str) and len(application_group_name.strip()) == 0: raise click.UsageError('Parameter --application-group-name cannot be whitespace or empty string') kwargs = {} @@ -2767,10 +2766,10 @@ def get_application_group(ctx, from_json, network_firewall_policy_id, applicatio @cli_util.wrap_exceptions def get_decryption_profile(ctx, from_json, network_firewall_policy_id, decryption_profile_name): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(decryption_profile_name, six.string_types) and len(decryption_profile_name.strip()) == 0: + if isinstance(decryption_profile_name, str) and len(decryption_profile_name.strip()) == 0: raise click.UsageError('Parameter --decryption-profile-name cannot be whitespace or empty string') kwargs = {} @@ -2796,10 +2795,10 @@ def get_decryption_profile(ctx, from_json, network_firewall_policy_id, decryptio @cli_util.wrap_exceptions def get_decryption_rule(ctx, from_json, network_firewall_policy_id, decryption_rule_name, limit, page): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(decryption_rule_name, six.string_types) and len(decryption_rule_name.strip()) == 0: + if isinstance(decryption_rule_name, str) and len(decryption_rule_name.strip()) == 0: raise click.UsageError('Parameter --decryption-rule-name cannot be whitespace or empty string') kwargs = {} @@ -2829,10 +2828,10 @@ def get_decryption_rule(ctx, from_json, network_firewall_policy_id, decryption_r @cli_util.wrap_exceptions def get_mapped_secret(ctx, from_json, network_firewall_policy_id, mapped_secret_name, limit, page): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(mapped_secret_name, six.string_types) and len(mapped_secret_name.strip()) == 0: + if isinstance(mapped_secret_name, str) and len(mapped_secret_name.strip()) == 0: raise click.UsageError('Parameter --mapped-secret-name cannot be whitespace or empty string') kwargs = {} @@ -2860,10 +2859,10 @@ def get_mapped_secret(ctx, from_json, network_firewall_policy_id, mapped_secret_ @cli_util.wrap_exceptions def get_nat_rule(ctx, from_json, network_firewall_policy_id, nat_rule_name): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(nat_rule_name, six.string_types) and len(nat_rule_name.strip()) == 0: + if isinstance(nat_rule_name, str) and len(nat_rule_name.strip()) == 0: raise click.UsageError('Parameter --nat-rule-name cannot be whitespace or empty string') kwargs = {} @@ -2886,7 +2885,7 @@ def get_nat_rule(ctx, from_json, network_firewall_policy_id, nat_rule_name): @cli_util.wrap_exceptions def get_network_firewall(ctx, from_json, network_firewall_id): - if isinstance(network_firewall_id, six.string_types) and len(network_firewall_id.strip()) == 0: + if isinstance(network_firewall_id, str) and len(network_firewall_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-id cannot be whitespace or empty string') kwargs = {} @@ -2908,7 +2907,7 @@ def get_network_firewall(ctx, from_json, network_firewall_id): @cli_util.wrap_exceptions def get_network_firewall_health_status(ctx, from_json, network_firewall_id): - if isinstance(network_firewall_id, six.string_types) and len(network_firewall_id.strip()) == 0: + if isinstance(network_firewall_id, str) and len(network_firewall_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-id cannot be whitespace or empty string') kwargs = {} @@ -2930,7 +2929,7 @@ def get_network_firewall_health_status(ctx, from_json, network_firewall_id): @cli_util.wrap_exceptions def get_network_firewall_policy(ctx, from_json, network_firewall_policy_id): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2953,10 +2952,10 @@ def get_network_firewall_policy(ctx, from_json, network_firewall_policy_id): @cli_util.wrap_exceptions def get_security_rule(ctx, from_json, network_firewall_policy_id, security_rule_name): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(security_rule_name, six.string_types) and len(security_rule_name.strip()) == 0: + if isinstance(security_rule_name, str) and len(security_rule_name.strip()) == 0: raise click.UsageError('Parameter --security-rule-name cannot be whitespace or empty string') kwargs = {} @@ -2982,10 +2981,10 @@ def get_security_rule(ctx, from_json, network_firewall_policy_id, security_rule_ @cli_util.wrap_exceptions def get_service(ctx, from_json, network_firewall_policy_id, service_name, limit, page): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(service_name, six.string_types) and len(service_name.strip()) == 0: + if isinstance(service_name, str) and len(service_name.strip()) == 0: raise click.UsageError('Parameter --service-name cannot be whitespace or empty string') kwargs = {} @@ -3013,10 +3012,10 @@ def get_service(ctx, from_json, network_firewall_policy_id, service_name, limit, @cli_util.wrap_exceptions def get_service_list(ctx, from_json, network_firewall_policy_id, service_list_name): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(service_list_name, six.string_types) and len(service_list_name.strip()) == 0: + if isinstance(service_list_name, str) and len(service_list_name.strip()) == 0: raise click.UsageError('Parameter --service-list-name cannot be whitespace or empty string') kwargs = {} @@ -3040,10 +3039,10 @@ def get_service_list(ctx, from_json, network_firewall_policy_id, service_list_na @cli_util.wrap_exceptions def get_tunnel_inspection_rule(ctx, from_json, network_firewall_policy_id, tunnel_inspection_rule_name): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(tunnel_inspection_rule_name, six.string_types) and len(tunnel_inspection_rule_name.strip()) == 0: + if isinstance(tunnel_inspection_rule_name, str) and len(tunnel_inspection_rule_name.strip()) == 0: raise click.UsageError('Parameter --tunnel-inspection-rule-name cannot be whitespace or empty string') kwargs = {} @@ -3067,10 +3066,10 @@ def get_tunnel_inspection_rule(ctx, from_json, network_firewall_policy_id, tunne @cli_util.wrap_exceptions def get_url_list(ctx, from_json, network_firewall_policy_id, url_list_name): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(url_list_name, six.string_types) and len(url_list_name.strip()) == 0: + if isinstance(url_list_name, str) and len(url_list_name.strip()) == 0: raise click.UsageError('Parameter --url-list-name cannot be whitespace or empty string') kwargs = {} @@ -3093,7 +3092,7 @@ def get_url_list(ctx, from_json, network_firewall_policy_id, url_list_name): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3125,7 +3124,7 @@ def list_address_lists(ctx, from_json, all_pages, page_size, network_firewall_po if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3185,7 +3184,7 @@ def list_application_groups(ctx, from_json, all_pages, page_size, network_firewa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3245,7 +3244,7 @@ def list_applications(ctx, from_json, all_pages, page_size, network_firewall_pol if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3305,7 +3304,7 @@ def list_decryption_profiles(ctx, from_json, all_pages, page_size, network_firew if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3366,7 +3365,7 @@ def list_decryption_rules(ctx, from_json, all_pages, page_size, network_firewall if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3428,7 +3427,7 @@ def list_mapped_secrets(ctx, from_json, all_pages, page_size, network_firewall_p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3489,7 +3488,7 @@ def list_nat_rules(ctx, from_json, all_pages, page_size, network_firewall_policy if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3686,7 +3685,7 @@ def list_security_rules(ctx, from_json, all_pages, page_size, network_firewall_p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3748,7 +3747,7 @@ def list_service_lists(ctx, from_json, all_pages, page_size, network_firewall_po if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3808,7 +3807,7 @@ def list_services(ctx, from_json, all_pages, page_size, network_firewall_policy_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3869,7 +3868,7 @@ def list_tunnel_inspection_rules(ctx, from_json, all_pages, page_size, network_f if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3931,7 +3930,7 @@ def list_url_lists(ctx, from_json, all_pages, page_size, network_firewall_policy if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3990,7 +3989,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4047,7 +4046,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4162,7 +4161,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def migrate_network_firewall_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -4217,10 +4216,10 @@ def migrate_network_firewall_policy(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_address_list(ctx, from_json, network_firewall_policy_id, address_list_name, type, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(address_list_name, six.string_types) and len(address_list_name.strip()) == 0: + if isinstance(address_list_name, str) and len(address_list_name.strip()) == 0: raise click.UsageError('Parameter --address-list-name cannot be whitespace or empty string') kwargs = {} @@ -4258,10 +4257,10 @@ def update_address_list(ctx, from_json, network_firewall_policy_id, address_list @cli_util.wrap_exceptions def update_address_list_update_fqdn_address_list_details(ctx, from_json, force, network_firewall_policy_id, address_list_name, addresses, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(address_list_name, six.string_types) and len(address_list_name.strip()) == 0: + if isinstance(address_list_name, str) and len(address_list_name.strip()) == 0: raise click.UsageError('Parameter --address-list-name cannot be whitespace or empty string') if not force: if addresses: @@ -4305,10 +4304,10 @@ def update_address_list_update_fqdn_address_list_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_address_list_update_ip_address_list_details(ctx, from_json, force, network_firewall_policy_id, address_list_name, addresses, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(address_list_name, six.string_types) and len(address_list_name.strip()) == 0: + if isinstance(address_list_name, str) and len(address_list_name.strip()) == 0: raise click.UsageError('Parameter --address-list-name cannot be whitespace or empty string') if not force: if addresses: @@ -4351,10 +4350,10 @@ def update_address_list_update_ip_address_list_details(ctx, from_json, force, ne @cli_util.wrap_exceptions def update_application(ctx, from_json, network_firewall_policy_id, application_name, type, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(application_name, six.string_types) and len(application_name.strip()) == 0: + if isinstance(application_name, str) and len(application_name.strip()) == 0: raise click.UsageError('Parameter --application-name cannot be whitespace or empty string') kwargs = {} @@ -4392,10 +4391,10 @@ def update_application(ctx, from_json, network_firewall_policy_id, application_n @cli_util.wrap_exceptions def update_application_update_icmp6_application_details(ctx, from_json, network_firewall_policy_id, application_name, icmp_type, description, icmp_code, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(application_name, six.string_types) and len(application_name.strip()) == 0: + if isinstance(application_name, str) and len(application_name.strip()) == 0: raise click.UsageError('Parameter --application-name cannot be whitespace or empty string') kwargs = {} @@ -4438,10 +4437,10 @@ def update_application_update_icmp6_application_details(ctx, from_json, network_ @cli_util.wrap_exceptions def update_application_update_icmp_application_details(ctx, from_json, network_firewall_policy_id, application_name, icmp_type, description, icmp_code, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(application_name, six.string_types) and len(application_name.strip()) == 0: + if isinstance(application_name, str) and len(application_name.strip()) == 0: raise click.UsageError('Parameter --application-name cannot be whitespace or empty string') kwargs = {} @@ -4484,10 +4483,10 @@ def update_application_update_icmp_application_details(ctx, from_json, network_f @cli_util.wrap_exceptions def update_application_group(ctx, from_json, force, network_firewall_policy_id, application_group_name, apps, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(application_group_name, six.string_types) and len(application_group_name.strip()) == 0: + if isinstance(application_group_name, str) and len(application_group_name.strip()) == 0: raise click.UsageError('Parameter --application-group-name cannot be whitespace or empty string') if not force: if apps: @@ -4530,10 +4529,10 @@ def update_application_group(ctx, from_json, force, network_firewall_policy_id, @cli_util.wrap_exceptions def update_decryption_profile(ctx, from_json, network_firewall_policy_id, decryption_profile_name, type, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(decryption_profile_name, six.string_types) and len(decryption_profile_name.strip()) == 0: + if isinstance(decryption_profile_name, str) and len(decryption_profile_name.strip()) == 0: raise click.UsageError('Parameter --decryption-profile-name cannot be whitespace or empty string') kwargs = {} @@ -4572,10 +4571,10 @@ def update_decryption_profile(ctx, from_json, network_firewall_policy_id, decryp @cli_util.wrap_exceptions def update_decryption_profile_update_ssl_inbound_inspection_profile_details(ctx, from_json, network_firewall_policy_id, decryption_profile_name, description, is_unsupported_version_blocked, is_unsupported_cipher_blocked, is_out_of_capacity_blocked, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(decryption_profile_name, six.string_types) and len(decryption_profile_name.strip()) == 0: + if isinstance(decryption_profile_name, str) and len(decryption_profile_name.strip()) == 0: raise click.UsageError('Parameter --decryption-profile-name cannot be whitespace or empty string') kwargs = {} @@ -4630,10 +4629,10 @@ def update_decryption_profile_update_ssl_inbound_inspection_profile_details(ctx, @cli_util.wrap_exceptions def update_decryption_profile_update_ssl_forward_proxy_profile_details(ctx, from_json, network_firewall_policy_id, decryption_profile_name, description, is_expired_certificate_blocked, is_untrusted_issuer_blocked, is_revocation_status_timeout_blocked, is_unsupported_version_blocked, is_unsupported_cipher_blocked, is_unknown_revocation_status_blocked, are_certificate_extensions_restricted, is_auto_include_alt_name, is_out_of_capacity_blocked, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(decryption_profile_name, six.string_types) and len(decryption_profile_name.strip()) == 0: + if isinstance(decryption_profile_name, str) and len(decryption_profile_name.strip()) == 0: raise click.UsageError('Parameter --decryption-profile-name cannot be whitespace or empty string') kwargs = {} @@ -4706,10 +4705,10 @@ def update_decryption_profile_update_ssl_forward_proxy_profile_details(ctx, from @cli_util.wrap_exceptions def update_decryption_rule(ctx, from_json, force, network_firewall_policy_id, decryption_rule_name, condition, action, description, decryption_profile, secret, secrets, position, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(decryption_rule_name, six.string_types) and len(decryption_rule_name.strip()) == 0: + if isinstance(decryption_rule_name, str) and len(decryption_rule_name.strip()) == 0: raise click.UsageError('Parameter --decryption-rule-name cannot be whitespace or empty string') if not force: if condition or secrets or position: @@ -4766,10 +4765,10 @@ def update_decryption_rule(ctx, from_json, force, network_firewall_policy_id, de @cli_util.wrap_exceptions def update_mapped_secret(ctx, from_json, network_firewall_policy_id, mapped_secret_name, source, type, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(mapped_secret_name, six.string_types) and len(mapped_secret_name.strip()) == 0: + if isinstance(mapped_secret_name, str) and len(mapped_secret_name.strip()) == 0: raise click.UsageError('Parameter --mapped-secret-name cannot be whitespace or empty string') kwargs = {} @@ -4811,10 +4810,10 @@ def update_mapped_secret(ctx, from_json, network_firewall_policy_id, mapped_secr @cli_util.wrap_exceptions def update_mapped_secret_update_vault_mapped_secret_details(ctx, from_json, network_firewall_policy_id, mapped_secret_name, type, vault_secret_id, version_number, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(mapped_secret_name, six.string_types) and len(mapped_secret_name.strip()) == 0: + if isinstance(mapped_secret_name, str) and len(mapped_secret_name.strip()) == 0: raise click.UsageError('Parameter --mapped-secret-name cannot be whitespace or empty string') kwargs = {} @@ -4859,10 +4858,10 @@ def update_mapped_secret_update_vault_mapped_secret_details(ctx, from_json, netw @cli_util.wrap_exceptions def update_nat_rule(ctx, from_json, force, network_firewall_policy_id, nat_rule_name, type, description, position, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(nat_rule_name, six.string_types) and len(nat_rule_name.strip()) == 0: + if isinstance(nat_rule_name, str) and len(nat_rule_name.strip()) == 0: raise click.UsageError('Parameter --nat-rule-name cannot be whitespace or empty string') if not force: if position: @@ -4911,10 +4910,10 @@ def update_nat_rule(ctx, from_json, force, network_firewall_policy_id, nat_rule_ @cli_util.wrap_exceptions def update_nat_rule_update_nat_v4_rule_details(ctx, from_json, force, network_firewall_policy_id, nat_rule_name, condition, action, description, position, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(nat_rule_name, six.string_types) and len(nat_rule_name.strip()) == 0: + if isinstance(nat_rule_name, str) and len(nat_rule_name.strip()) == 0: raise click.UsageError('Parameter --nat-rule-name cannot be whitespace or empty string') if not force: if position or condition: @@ -4972,7 +4971,7 @@ def update_nat_rule_update_nat_v4_rule_details(ctx, from_json, force, network_fi @cli_util.wrap_exceptions def update_network_firewall(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_id, display_name, network_firewall_policy_id, network_security_group_ids, nat_configuration, shape, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(network_firewall_id, six.string_types) and len(network_firewall_id.strip()) == 0: + if isinstance(network_firewall_id, str) and len(network_firewall_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-id cannot be whitespace or empty string') if not force: if network_security_group_ids or nat_configuration or freeform_tags or defined_tags or security_attributes: @@ -5064,7 +5063,7 @@ def update_network_firewall(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_network_firewall_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_firewall_policy_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5147,10 +5146,10 @@ def update_network_firewall_policy(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_security_rule(ctx, from_json, force, network_firewall_policy_id, security_rule_name, condition, action, inspection, position, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(security_rule_name, six.string_types) and len(security_rule_name.strip()) == 0: + if isinstance(security_rule_name, str) and len(security_rule_name.strip()) == 0: raise click.UsageError('Parameter --security-rule-name cannot be whitespace or empty string') if not force: if condition or position: @@ -5198,10 +5197,10 @@ def update_security_rule(ctx, from_json, force, network_firewall_policy_id, secu @cli_util.wrap_exceptions def update_service(ctx, from_json, network_firewall_policy_id, service_name, type, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(service_name, six.string_types) and len(service_name.strip()) == 0: + if isinstance(service_name, str) and len(service_name.strip()) == 0: raise click.UsageError('Parameter --service-name cannot be whitespace or empty string') kwargs = {} @@ -5239,10 +5238,10 @@ def update_service(ctx, from_json, network_firewall_policy_id, service_name, typ @cli_util.wrap_exceptions def update_service_update_tcp_service_details(ctx, from_json, force, network_firewall_policy_id, service_name, port_ranges, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(service_name, six.string_types) and len(service_name.strip()) == 0: + if isinstance(service_name, str) and len(service_name.strip()) == 0: raise click.UsageError('Parameter --service-name cannot be whitespace or empty string') if not force: if port_ranges: @@ -5286,10 +5285,10 @@ def update_service_update_tcp_service_details(ctx, from_json, force, network_fir @cli_util.wrap_exceptions def update_service_update_udp_service_details(ctx, from_json, force, network_firewall_policy_id, service_name, port_ranges, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(service_name, six.string_types) and len(service_name.strip()) == 0: + if isinstance(service_name, str) and len(service_name.strip()) == 0: raise click.UsageError('Parameter --service-name cannot be whitespace or empty string') if not force: if port_ranges: @@ -5333,10 +5332,10 @@ def update_service_update_udp_service_details(ctx, from_json, force, network_fir @cli_util.wrap_exceptions def update_service_list(ctx, from_json, force, network_firewall_policy_id, service_list_name, services, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(service_list_name, six.string_types) and len(service_list_name.strip()) == 0: + if isinstance(service_list_name, str) and len(service_list_name.strip()) == 0: raise click.UsageError('Parameter --service-list-name cannot be whitespace or empty string') if not force: if services: @@ -5384,10 +5383,10 @@ def update_service_list(ctx, from_json, force, network_firewall_policy_id, servi @cli_util.wrap_exceptions def update_tunnel_inspection_rule(ctx, from_json, force, network_firewall_policy_id, tunnel_inspection_rule_name, protocol, action, position, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(tunnel_inspection_rule_name, six.string_types) and len(tunnel_inspection_rule_name.strip()) == 0: + if isinstance(tunnel_inspection_rule_name, str) and len(tunnel_inspection_rule_name.strip()) == 0: raise click.UsageError('Parameter --tunnel-inspection-rule-name cannot be whitespace or empty string') if not force: if position: @@ -5440,10 +5439,10 @@ def update_tunnel_inspection_rule(ctx, from_json, force, network_firewall_policy @cli_util.wrap_exceptions def update_tunnel_inspection_rule_update_vxlan_inspection_rule_details(ctx, from_json, force, network_firewall_policy_id, tunnel_inspection_rule_name, condition, action, position, description, profile_parameterconflict, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(tunnel_inspection_rule_name, six.string_types) and len(tunnel_inspection_rule_name.strip()) == 0: + if isinstance(tunnel_inspection_rule_name, str) and len(tunnel_inspection_rule_name.strip()) == 0: raise click.UsageError('Parameter --tunnel-inspection-rule-name cannot be whitespace or empty string') if not force: if position or condition or profile_parameterconflict: @@ -5496,10 +5495,10 @@ def update_tunnel_inspection_rule_update_vxlan_inspection_rule_details(ctx, from @cli_util.wrap_exceptions def update_url_list(ctx, from_json, force, network_firewall_policy_id, url_list_name, urls, description, if_match): - if isinstance(network_firewall_policy_id, six.string_types) and len(network_firewall_policy_id.strip()) == 0: + if isinstance(network_firewall_policy_id, str) and len(network_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --network-firewall-policy-id cannot be whitespace or empty string') - if isinstance(url_list_name, six.string_types) and len(url_list_name.strip()) == 0: + if isinstance(url_list_name, str) and len(url_list_name.strip()) == 0: raise click.UsageError('Parameter --url-list-name cannot be whitespace or empty string') if not force: if urls: diff --git a/services/network_load_balancer/src/oci_cli_network_load_balancer/generated/networkloadbalancer_cli.py b/services/network_load_balancer/src/oci_cli_network_load_balancer/generated/networkloadbalancer_cli.py index 55b0aefa6..16a141d5c 100644 --- a/services/network_load_balancer/src/oci_cli_network_load_balancer/generated/networkloadbalancer_cli.py +++ b/services/network_load_balancer/src/oci_cli_network_load_balancer/generated/networkloadbalancer_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -169,7 +168,7 @@ def network_load_balancer_health_group(): @cli_util.wrap_exceptions def change_network_load_balancer_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, compartment_id, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -250,10 +249,10 @@ def change_network_load_balancer_compartment(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def create_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, port, backend_set_name, name, ip_address, target_id, weight, is_drain, is_backup, is_offline, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -353,7 +352,7 @@ def create_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def create_backend_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, name, policy, health_checker, is_preserve_source, is_fail_open, is_instant_failover_enabled, is_instant_failover_tcp_reset_enabled, are_operationally_active_backends_preferred, ip_version, backends, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -453,7 +452,7 @@ def create_backend_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def create_listener(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, name, default_backend_set_name, port, protocol, ip_version, is_ppv2_enabled, tcp_idle_timeout, udp_idle_timeout, l3_ip_idle_timeout, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -677,13 +676,13 @@ def create_network_load_balancer(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, backend_set_name, backend_name, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') - if isinstance(backend_name, six.string_types) and len(backend_name.strip()) == 0: + if isinstance(backend_name, str) and len(backend_name.strip()) == 0: raise click.UsageError('Parameter --backend-name cannot be whitespace or empty string') kwargs = {} @@ -746,10 +745,10 @@ def delete_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_backend_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, backend_set_name, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -809,10 +808,10 @@ def delete_backend_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_listener(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, listener_name, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(listener_name, six.string_types) and len(listener_name.strip()) == 0: + if isinstance(listener_name, str) and len(listener_name.strip()) == 0: raise click.UsageError('Parameter --listener-name cannot be whitespace or empty string') kwargs = {} @@ -869,7 +868,7 @@ def delete_listener(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_network_load_balancer(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -929,13 +928,13 @@ def delete_network_load_balancer(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def get_backend(ctx, from_json, network_load_balancer_id, backend_set_name, backend_name, if_none_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') - if isinstance(backend_name, six.string_types) and len(backend_name.strip()) == 0: + if isinstance(backend_name, str) and len(backend_name.strip()) == 0: raise click.UsageError('Parameter --backend-name cannot be whitespace or empty string') kwargs = {} @@ -967,13 +966,13 @@ def get_backend(ctx, from_json, network_load_balancer_id, backend_set_name, back @cli_util.wrap_exceptions def get_backend_health(ctx, from_json, network_load_balancer_id, backend_set_name, backend_name): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') - if isinstance(backend_name, six.string_types) and len(backend_name.strip()) == 0: + if isinstance(backend_name, str) and len(backend_name.strip()) == 0: raise click.UsageError('Parameter --backend-name cannot be whitespace or empty string') kwargs = {} @@ -1003,13 +1002,13 @@ def get_backend_health(ctx, from_json, network_load_balancer_id, backend_set_nam @cli_util.wrap_exceptions def get_backend_operational_status(ctx, from_json, network_load_balancer_id, backend_set_name, backend_name): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') - if isinstance(backend_name, six.string_types) and len(backend_name.strip()) == 0: + if isinstance(backend_name, str) and len(backend_name.strip()) == 0: raise click.UsageError('Parameter --backend-name cannot be whitespace or empty string') kwargs = {} @@ -1039,10 +1038,10 @@ def get_backend_operational_status(ctx, from_json, network_load_balancer_id, bac @cli_util.wrap_exceptions def get_backend_set(ctx, from_json, network_load_balancer_id, backend_set_name, if_none_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -1070,10 +1069,10 @@ def get_backend_set(ctx, from_json, network_load_balancer_id, backend_set_name, @cli_util.wrap_exceptions def get_backend_set_health(ctx, from_json, network_load_balancer_id, backend_set_name): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -1102,10 +1101,10 @@ def get_backend_set_health(ctx, from_json, network_load_balancer_id, backend_set @cli_util.wrap_exceptions def get_health_checker(ctx, from_json, network_load_balancer_id, backend_set_name, if_none_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -1136,10 +1135,10 @@ def get_health_checker(ctx, from_json, network_load_balancer_id, backend_set_nam @cli_util.wrap_exceptions def get_listener(ctx, from_json, network_load_balancer_id, listener_name, if_none_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(listener_name, six.string_types) and len(listener_name.strip()) == 0: + if isinstance(listener_name, str) and len(listener_name.strip()) == 0: raise click.UsageError('Parameter --listener-name cannot be whitespace or empty string') kwargs = {} @@ -1167,7 +1166,7 @@ def get_listener(ctx, from_json, network_load_balancer_id, listener_name, if_non @cli_util.wrap_exceptions def get_network_load_balancer(ctx, from_json, network_load_balancer_id, if_none_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1191,7 +1190,7 @@ def get_network_load_balancer(ctx, from_json, network_load_balancer_id, if_none_ @cli_util.wrap_exceptions def get_network_load_balancer_health(ctx, from_json, network_load_balancer_id): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1213,7 +1212,7 @@ def get_network_load_balancer_health(ctx, from_json, network_load_balancer_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1247,7 +1246,7 @@ def list_backend_sets(ctx, from_json, all_pages, page_size, network_load_balance if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1312,10 +1311,10 @@ def list_backends(ctx, from_json, all_pages, page_size, network_load_balancer_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') kwargs = {} @@ -1380,7 +1379,7 @@ def list_listeners(ctx, from_json, all_pages, page_size, network_load_balancer_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') kwargs = {} @@ -1652,7 +1651,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1707,7 +1706,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1824,13 +1823,13 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, lim @cli_util.wrap_exceptions def update_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, backend_set_name, backend_name, weight, is_backup, is_drain, is_offline, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') - if isinstance(backend_name, six.string_types) and len(backend_name.strip()) == 0: + if isinstance(backend_name, str) and len(backend_name.strip()) == 0: raise click.UsageError('Parameter --backend-name cannot be whitespace or empty string') kwargs = {} @@ -1920,10 +1919,10 @@ def update_backend(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def update_backend_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, backend_set_name, policy, is_preserve_source, is_fail_open, is_instant_failover_enabled, is_instant_failover_tcp_reset_enabled, are_operationally_active_backends_preferred, ip_version, backends, health_checker, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') if not force: if backends or health_checker: @@ -2045,10 +2044,10 @@ def update_backend_set(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_health_checker(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, backend_set_name, protocol, port, retries, timeout_in_millis, interval_in_millis, url_path, response_body_regex, return_code, request_data, response_data, dns, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(backend_set_name, six.string_types) and len(backend_set_name.strip()) == 0: + if isinstance(backend_set_name, str) and len(backend_set_name.strip()) == 0: raise click.UsageError('Parameter --backend-set-name cannot be whitespace or empty string') if not force: if dns: @@ -2162,10 +2161,10 @@ def update_health_checker(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_listener(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, listener_name, default_backend_set_name, port, protocol, ip_version, is_ppv2_enabled, tcp_idle_timeout, udp_idle_timeout, l3_ip_idle_timeout, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') - if isinstance(listener_name, six.string_types) and len(listener_name.strip()) == 0: + if isinstance(listener_name, str) and len(listener_name.strip()) == 0: raise click.UsageError('Parameter --listener-name cannot be whitespace or empty string') kwargs = {} @@ -2268,7 +2267,7 @@ def update_listener(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def update_network_load_balancer(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, display_name, is_preserve_source_destination, is_symmetric_hash_enabled, nlb_ip_version, subnet_ipv6_cidr, assigned_ipv6, reserved_ipv6_id, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or security_attributes: @@ -2371,7 +2370,7 @@ def update_network_load_balancer(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_network_security_groups(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_load_balancer_id, network_security_group_ids, if_match): - if isinstance(network_load_balancer_id, six.string_types) and len(network_load_balancer_id.strip()) == 0: + if isinstance(network_load_balancer_id, str) and len(network_load_balancer_id.strip()) == 0: raise click.UsageError('Parameter --network-load-balancer-id cannot be whitespace or empty string') if not force: if network_security_group_ids: diff --git a/services/nosql/src/oci_cli_nosql/generated/nosql_cli.py b/services/nosql/src/oci_cli_nosql/generated/nosql_cli.py index 761a09048..f14f669d6 100644 --- a/services/nosql/src/oci_cli_nosql/generated/nosql_cli.py +++ b/services/nosql/src/oci_cli_nosql/generated/nosql_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -84,7 +83,7 @@ def table_group(): @cli_util.wrap_exceptions def change_table_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, table_name_or_id, to_compartment_id, from_compartment_id, if_match): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -150,7 +149,7 @@ def change_table_compartment(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def create_index(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, table_name_or_id, name, keys, compartment_id, is_if_not_exists): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -219,7 +218,7 @@ def create_index(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def create_replica(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, table_name_or_id, region_parameterconflict, compartment_id, max_read_units, max_write_units, if_match): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -365,10 +364,10 @@ def create_table(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_index(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, table_name_or_id, index_name, compartment_id, is_if_exists, if_match): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') - if isinstance(index_name, six.string_types) and len(index_name.strip()) == 0: + if isinstance(index_name, str) and len(index_name.strip()) == 0: raise click.UsageError('Parameter --index-name cannot be whitespace or empty string') kwargs = {} @@ -431,10 +430,10 @@ def delete_index(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_replica(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, table_name_or_id, region_parameterconflict, compartment_id, if_match): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') - if isinstance(region_parameterconflict, six.string_types) and len(region_parameterconflict.strip()) == 0: + if isinstance(region_parameterconflict, str) and len(region_parameterconflict.strip()) == 0: raise click.UsageError('Parameter --region-parameterconflict cannot be whitespace or empty string') kwargs = {} @@ -494,7 +493,7 @@ def delete_replica(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_row(ctx, from_json, table_name_or_id, key, compartment_id, is_get_return_row, timeout_in_ms, if_match): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -532,7 +531,7 @@ def delete_row(ctx, from_json, table_name_or_id, key, compartment_id, is_get_ret @cli_util.wrap_exceptions def delete_table(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, table_name_or_id, compartment_id, is_if_exists, if_match): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -592,7 +591,7 @@ def delete_table(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_work_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -664,10 +663,10 @@ def get_configuration(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_index(ctx, from_json, table_name_or_id, index_name, compartment_id): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') - if isinstance(index_name, six.string_types) and len(index_name.strip()) == 0: + if isinstance(index_name, str) and len(index_name.strip()) == 0: raise click.UsageError('Parameter --index-name cannot be whitespace or empty string') kwargs = {} @@ -696,7 +695,7 @@ def get_index(ctx, from_json, table_name_or_id, index_name, compartment_id): @cli_util.wrap_exceptions def get_row(ctx, from_json, table_name_or_id, key, compartment_id, consistency, timeout_in_ms): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -726,7 +725,7 @@ def get_row(ctx, from_json, table_name_or_id, key, compartment_id, consistency, @cli_util.wrap_exceptions def get_table(ctx, from_json, table_name_or_id, compartment_id): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -750,7 +749,7 @@ def get_table(ctx, from_json, table_name_or_id, compartment_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -784,7 +783,7 @@ def list_indexes(ctx, from_json, all_pages, page_size, table_name_or_id, compart if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -848,7 +847,7 @@ def list_table_usage(ctx, from_json, all_pages, page_size, table_name_or_id, com if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') kwargs = {} @@ -965,7 +964,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1016,7 +1015,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1460,7 +1459,7 @@ def update_configuration_update_hosted_configuration_details(ctx, from_json, for @cli_util.wrap_exceptions def update_row(ctx, from_json, force, table_name_or_id, value, compartment_id, option, is_get_return_row, timeout_in_ms, ttl, is_ttl_use_table_default, identity_cache_size, is_exact_match, if_match): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') if not force: if value: @@ -1527,7 +1526,7 @@ def update_row(ctx, from_json, force, table_name_or_id, value, compartment_id, o @cli_util.wrap_exceptions def update_table(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, table_name_or_id, compartment_id, ddl_statement, table_limits, freeform_tags, defined_tags, if_match): - if isinstance(table_name_or_id, six.string_types) and len(table_name_or_id.strip()) == 0: + if isinstance(table_name_or_id, str) and len(table_name_or_id.strip()) == 0: raise click.UsageError('Parameter --table-name-or-id cannot be whitespace or empty string') if not force: if table_limits or freeform_tags or defined_tags: diff --git a/services/object_storage/src/oci_cli_object_storage/generated/objectstorage_cli.py b/services/object_storage/src/oci_cli_object_storage/generated/objectstorage_cli.py index f05ed2386..9df8e2183 100644 --- a/services/object_storage/src/oci_cli_object_storage/generated/objectstorage_cli.py +++ b/services/object_storage/src/oci_cli_object_storage/generated/objectstorage_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -129,13 +128,13 @@ def object_group(): @cli_util.wrap_exceptions def abort_multipart_upload(ctx, from_json, namespace_name, bucket_name, object_name, upload_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -163,10 +162,10 @@ def abort_multipart_upload(ctx, from_json, namespace_name, bucket_name, object_n @cli_util.wrap_exceptions def batch_delete_objects(ctx, from_json, namespace_name, bucket_name, objects, is_skip_deleted_result): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -198,7 +197,7 @@ def batch_delete_objects(ctx, from_json, namespace_name, bucket_name, objects, i @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -227,13 +226,13 @@ def cancel_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def commit_multipart_upload(ctx, from_json, namespace_name, bucket_name, object_name, upload_id, parts_to_commit, parts_to_exclude, if_match, if_none_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -294,10 +293,10 @@ def commit_multipart_upload(ctx, from_json, namespace_name, bucket_name, object_ @cli_util.wrap_exceptions def copy_object(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, bucket_name, source_object_name, destination_region, destination_namespace, destination_bucket, destination_object_name, source_object_if_match_e_tag, source_version_id, destination_object_if_match_e_tag, destination_object_if_none_match_e_tag, destination_object_metadata, destination_object_storage_tier, opc_sse_customer_algorithm, opc_sse_customer_key, opc_sse_customer_key_sha256, opc_source_sse_customer_algorithm, opc_source_sse_customer_key, opc_source_sse_customer_key_sha256, opc_sse_kms_key_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -403,7 +402,7 @@ def copy_object(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def create_bucket(ctx, from_json, namespace_name, name, compartment_id, metadata, public_access_type, storage_tier, object_events_enabled, freeform_tags, defined_tags, kms_key_id, is_bucket_key_enabled, versioning, auto_tiering, bucket_scope): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -482,10 +481,10 @@ def create_bucket(ctx, from_json, namespace_name, name, compartment_id, metadata @cli_util.wrap_exceptions def create_multipart_upload(ctx, from_json, namespace_name, bucket_name, object, content_type, content_language, content_encoding, content_disposition, cache_control, storage_tier, metadata, if_match, if_none_match, opc_sse_customer_algorithm, opc_sse_customer_key, opc_sse_customer_key_sha256, opc_sse_kms_key_id, opc_checksum_algorithm): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -554,10 +553,10 @@ def create_multipart_upload(ctx, from_json, namespace_name, bucket_name, object, @cli_util.wrap_exceptions def create_preauthenticated_request(ctx, from_json, namespace_name, bucket_name, name, access_type, time_expires, bucket_listing_action, object_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -611,7 +610,7 @@ def create_preauthenticated_request(ctx, from_json, namespace_name, bucket_name, @cli_util.wrap_exceptions def create_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, name, compartment_id, subnet_id, prefix, access_targets, additional_prefixes, private_endpoint_ip, nsg_ids, freeform_tags, defined_tags, security_attributes): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -691,10 +690,10 @@ def create_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def create_replication_policy(ctx, from_json, namespace_name, bucket_name, name, destination_region_name, destination_bucket_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -728,10 +727,10 @@ def create_replication_policy(ctx, from_json, namespace_name, bucket_name, name, @cli_util.wrap_exceptions def create_retention_rule(ctx, from_json, namespace_name, bucket_name, display_name, duration, time_rule_locked): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -770,10 +769,10 @@ def create_retention_rule(ctx, from_json, namespace_name, bucket_name, display_n @cli_util.wrap_exceptions def delete_bucket(ctx, from_json, namespace_name, bucket_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -803,13 +802,13 @@ def delete_bucket(ctx, from_json, namespace_name, bucket_name, if_match): @cli_util.wrap_exceptions def delete_object(ctx, from_json, namespace_name, bucket_name, object_name, if_match, version_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -840,10 +839,10 @@ def delete_object(ctx, from_json, namespace_name, bucket_name, object_name, if_m @cli_util.wrap_exceptions def delete_object_lifecycle_policy(ctx, from_json, namespace_name, bucket_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -871,13 +870,13 @@ def delete_object_lifecycle_policy(ctx, from_json, namespace_name, bucket_name, @cli_util.wrap_exceptions def delete_preauthenticated_request(ctx, from_json, namespace_name, bucket_name, par_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(par_id, six.string_types) and len(par_id.strip()) == 0: + if isinstance(par_id, str) and len(par_id.strip()) == 0: raise click.UsageError('Parameter --par-id cannot be whitespace or empty string') kwargs = {} @@ -907,10 +906,10 @@ def delete_preauthenticated_request(ctx, from_json, namespace_name, bucket_name, @cli_util.wrap_exceptions def delete_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, pe_name, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(pe_name, six.string_types) and len(pe_name.strip()) == 0: + if isinstance(pe_name, str) and len(pe_name.strip()) == 0: raise click.UsageError('Parameter --pe-name cannot be whitespace or empty string') kwargs = {} @@ -965,13 +964,13 @@ def delete_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_replication_policy(ctx, from_json, namespace_name, bucket_name, replication_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(replication_id, six.string_types) and len(replication_id.strip()) == 0: + if isinstance(replication_id, str) and len(replication_id.strip()) == 0: raise click.UsageError('Parameter --replication-id cannot be whitespace or empty string') kwargs = {} @@ -999,13 +998,13 @@ def delete_replication_policy(ctx, from_json, namespace_name, bucket_name, repli @cli_util.wrap_exceptions def delete_retention_rule(ctx, from_json, namespace_name, bucket_name, retention_rule_id, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(retention_rule_id, six.string_types) and len(retention_rule_id.strip()) == 0: + if isinstance(retention_rule_id, str) and len(retention_rule_id.strip()) == 0: raise click.UsageError('Parameter --retention-rule-id cannot be whitespace or empty string') kwargs = {} @@ -1035,10 +1034,10 @@ def delete_retention_rule(ctx, from_json, namespace_name, bucket_name, retention @cli_util.wrap_exceptions def get_bucket(ctx, from_json, namespace_name, bucket_name, if_match, if_none_match, fields): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -1091,7 +1090,7 @@ def get_namespace(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_namespace_metadata(ctx, from_json, namespace_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1129,13 +1128,13 @@ def get_namespace_metadata(ctx, from_json, namespace_name): @cli_util.wrap_exceptions def get_object(ctx, from_json, file, namespace_name, bucket_name, object_name, version_id, if_match, if_none_match, range, opc_sse_customer_algorithm, opc_sse_customer_key, opc_sse_customer_key_sha256, http_response_content_disposition, http_response_cache_control, http_response_content_type, http_response_content_language, http_response_content_encoding, http_response_expires): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -1208,10 +1207,10 @@ def get_object(ctx, from_json, file, namespace_name, bucket_name, object_name, v @cli_util.wrap_exceptions def get_object_lifecycle_policy(ctx, from_json, namespace_name, bucket_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -1236,13 +1235,13 @@ def get_object_lifecycle_policy(ctx, from_json, namespace_name, bucket_name): @cli_util.wrap_exceptions def get_preauthenticated_request(ctx, from_json, namespace_name, bucket_name, par_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(par_id, six.string_types) and len(par_id.strip()) == 0: + if isinstance(par_id, str) and len(par_id.strip()) == 0: raise click.UsageError('Parameter --par-id cannot be whitespace or empty string') kwargs = {} @@ -1269,10 +1268,10 @@ def get_preauthenticated_request(ctx, from_json, namespace_name, bucket_name, pa @cli_util.wrap_exceptions def get_private_endpoint(ctx, from_json, namespace_name, pe_name, if_match, if_none_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(pe_name, six.string_types) and len(pe_name.strip()) == 0: + if isinstance(pe_name, str) and len(pe_name.strip()) == 0: raise click.UsageError('Parameter --pe-name cannot be whitespace or empty string') kwargs = {} @@ -1301,13 +1300,13 @@ def get_private_endpoint(ctx, from_json, namespace_name, pe_name, if_match, if_n @cli_util.wrap_exceptions def get_replication_policy(ctx, from_json, namespace_name, bucket_name, replication_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(replication_id, six.string_types) and len(replication_id.strip()) == 0: + if isinstance(replication_id, str) and len(replication_id.strip()) == 0: raise click.UsageError('Parameter --replication-id cannot be whitespace or empty string') kwargs = {} @@ -1333,13 +1332,13 @@ def get_replication_policy(ctx, from_json, namespace_name, bucket_name, replicat @cli_util.wrap_exceptions def get_retention_rule(ctx, from_json, namespace_name, bucket_name, retention_rule_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(retention_rule_id, six.string_types) and len(retention_rule_id.strip()) == 0: + if isinstance(retention_rule_id, str) and len(retention_rule_id.strip()) == 0: raise click.UsageError('Parameter --retention-rule-id cannot be whitespace or empty string') kwargs = {} @@ -1363,7 +1362,7 @@ def get_retention_rule(ctx, from_json, namespace_name, bucket_name, retention_ru @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1388,10 +1387,10 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def head_bucket(ctx, from_json, namespace_name, bucket_name, if_match, if_none_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -1426,13 +1425,13 @@ def head_bucket(ctx, from_json, namespace_name, bucket_name, if_match, if_none_m @cli_util.wrap_exceptions def head_object(ctx, from_json, namespace_name, bucket_name, object_name, version_id, if_match, if_none_match, opc_sse_customer_algorithm, opc_sse_customer_key, opc_sse_customer_key_sha256): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -1481,7 +1480,7 @@ def list_buckets(ctx, from_json, all_pages, page_size, namespace_name, compartme if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1540,13 +1539,13 @@ def list_multipart_upload_parts(ctx, from_json, all_pages, page_size, namespace_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -1607,10 +1606,10 @@ def list_multipart_uploads(ctx, from_json, all_pages, page_size, namespace_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -1675,10 +1674,10 @@ def list_object_versions(ctx, from_json, all_pages, page_size, namespace_name, b if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -1750,10 +1749,10 @@ def list_object_versions(ctx, from_json, all_pages, page_size, namespace_name, b @cli_util.wrap_exceptions def list_objects(ctx, from_json, all_pages, namespace_name, bucket_name, prefix, start, end, limit, delimiter, fields, start_after): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -1799,10 +1798,10 @@ def list_preauthenticated_requests(ctx, from_json, all_pages, page_size, namespa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -1861,7 +1860,7 @@ def list_private_endpoints(ctx, from_json, all_pages, page_size, namespace_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -1920,10 +1919,10 @@ def list_replication_policies(ctx, from_json, all_pages, page_size, namespace_na if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -1978,10 +1977,10 @@ def list_replication_sources(ctx, from_json, all_pages, page_size, namespace_nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -2031,10 +2030,10 @@ def list_replication_sources(ctx, from_json, all_pages, page_size, namespace_nam @cli_util.wrap_exceptions def list_retention_rules(ctx, from_json, all_pages, namespace_name, bucket_name, page): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -2073,7 +2072,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2124,7 +2123,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2220,10 +2219,10 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pri @cli_util.wrap_exceptions def make_bucket_writable(ctx, from_json, namespace_name, bucket_name): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -2287,13 +2286,13 @@ def make_bucket_writable(ctx, from_json, namespace_name, bucket_name): @cli_util.wrap_exceptions def put_object(ctx, from_json, namespace_name, bucket_name, object_name, put_object_body, content_length, if_match, if_none_match, expect, content_md5, opc_checksum_algorithm, opc_content_crc32c, opc_content_sha256, opc_content_sha384, content_type, content_language, content_encoding, content_disposition, cache_control, opc_sse_customer_algorithm, opc_sse_customer_key, opc_sse_customer_key_sha256, opc_sse_kms_key_id, storage_tier, opc_meta_): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -2369,10 +2368,10 @@ def put_object(ctx, from_json, namespace_name, bucket_name, object_name, put_obj @cli_util.wrap_exceptions def put_object_lifecycle_policy(ctx, from_json, force, namespace_name, bucket_name, items, if_match, if_none_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') if not force: if items: @@ -2417,10 +2416,10 @@ def put_object_lifecycle_policy(ctx, from_json, force, namespace_name, bucket_na @cli_util.wrap_exceptions def reencrypt_bucket(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, bucket_name, is_reencrypt_bucket_key_only): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -2484,13 +2483,13 @@ def reencrypt_bucket(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def reencrypt_object(ctx, from_json, namespace_name, bucket_name, object_name, kms_key_id, sse_customer_key, source_sse_customer_key, version_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -2537,10 +2536,10 @@ def reencrypt_object(ctx, from_json, namespace_name, bucket_name, object_name, k @cli_util.wrap_exceptions def rename_object(ctx, from_json, namespace_name, bucket_name, source_name, new_name, src_obj_if_match_e_tag, new_obj_if_match_e_tag, new_obj_if_none_match_e_tag): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -2582,10 +2581,10 @@ def rename_object(ctx, from_json, namespace_name, bucket_name, source_name, new_ @cli_util.wrap_exceptions def restore_objects(ctx, from_json, namespace_name, bucket_name, object_name, hours, version_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -2638,10 +2637,10 @@ def restore_objects(ctx, from_json, namespace_name, bucket_name, object_name, ho @cli_util.wrap_exceptions def update_bucket(ctx, from_json, namespace_name, bucket_name, compartment_id, metadata, public_access_type, object_events_enabled, freeform_tags, defined_tags, kms_key_id, is_bucket_key_enabled, versioning, auto_tiering, bucket_scope, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -2710,7 +2709,7 @@ def update_bucket(ctx, from_json, namespace_name, bucket_name, compartment_id, m @cli_util.wrap_exceptions def update_namespace_metadata(ctx, from_json, namespace_name, default_s3_compartment_id, default_swift_compartment_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} @@ -2746,10 +2745,10 @@ def update_namespace_metadata(ctx, from_json, namespace_name, default_s3_compart @cli_util.wrap_exceptions def update_object_storage_tier(ctx, from_json, namespace_name, bucket_name, object_name, storage_tier, version_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -2800,10 +2799,10 @@ def update_object_storage_tier(ctx, from_json, namespace_name, bucket_name, obje @cli_util.wrap_exceptions def update_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace_name, pe_name, name, namespace, access_targets, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(pe_name, six.string_types) and len(pe_name.strip()) == 0: + if isinstance(pe_name, str) and len(pe_name.strip()) == 0: raise click.UsageError('Parameter --pe-name cannot be whitespace or empty string') kwargs = {} @@ -2884,13 +2883,13 @@ def update_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_retention_rule(ctx, from_json, force, namespace_name, bucket_name, retention_rule_id, display_name, duration, time_rule_locked, if_match): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(retention_rule_id, six.string_types) and len(retention_rule_id.strip()) == 0: + if isinstance(retention_rule_id, str) and len(retention_rule_id.strip()) == 0: raise click.UsageError('Parameter --retention-rule-id cannot be whitespace or empty string') if not force: if duration: @@ -2965,13 +2964,13 @@ def update_retention_rule(ctx, from_json, force, namespace_name, bucket_name, re @cli_util.wrap_exceptions def upload_part(ctx, from_json, namespace_name, bucket_name, object_name, upload_id, upload_part_num, upload_part_body, content_length, if_match, if_none_match, expect, content_md5, opc_checksum_algorithm, opc_content_crc32c, opc_content_sha256, opc_content_sha384, opc_sse_customer_algorithm, opc_sse_customer_key, opc_sse_customer_key_sha256, opc_sse_kms_key_id): - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} diff --git a/services/object_storage/src/oci_cli_object_storage/object_storage_transfer_manager/get_object_tasks.py b/services/object_storage/src/oci_cli_object_storage/object_storage_transfer_manager/get_object_tasks.py index 5836587ef..022f2e7d3 100644 --- a/services/object_storage/src/oci_cli_object_storage/object_storage_transfer_manager/get_object_tasks.py +++ b/services/object_storage/src/oci_cli_object_storage/object_storage_transfer_manager/get_object_tasks.py @@ -13,7 +13,6 @@ import heapq import oci import os -import six import threading import random import time @@ -132,7 +131,7 @@ def __init__(self, object_storage_client, callbacks_container, object_storage_re else: self.part_size = self.DEFAULT_MULTIPART_DOWNLOAD_SIZE - if isinstance(destination_file_handle, six.string_types): + if isinstance(destination_file_handle, str): # If it's a string, treat it like a file path. Also, since we open the file of our own volition, close it after we're # done. To constrast, if someone provided us something we assume is a file (or file-like) then don't auto-close because # they may want to do something with it after we've done our work @@ -283,7 +282,7 @@ def __init__(self, object_storage_client, callbacks_container, destination_file_ self.add_pending_write_lock = add_pending_write_lock self.retry_count = 0 if isinstance(self.object_storage_client.retry_strategy, oci.retry.NoneRetryStrategy) else DEFAULT_RETRY_COUNT self.destination_file_handle = destination_file_handle - self.downloaded_data = six.BytesIO() + self.downloaded_data = io.BytesIO() if 'chunk_written_callback' in self.kwargs: self.chunk_written_callback = self.kwargs['chunk_written_callback'] @@ -317,7 +316,7 @@ def do_work_hook(self): ) def _get_object(self): - downloaded_data = six.BytesIO() + downloaded_data = io.BytesIO() get_object_response = _make_retrying_get_call(self.object_storage_client, **self.kwargs) total_size = 0 for chunk in get_object_response.data.raw.stream(None, decode_content=False): diff --git a/services/object_storage/src/oci_cli_object_storage/objectstorage_cli_extended.py b/services/object_storage/src/oci_cli_object_storage/objectstorage_cli_extended.py index de6c24268..63b68a1dd 100644 --- a/services/object_storage/src/oci_cli_object_storage/objectstorage_cli_extended.py +++ b/services/object_storage/src/oci_cli_object_storage/objectstorage_cli_extended.py @@ -21,7 +21,6 @@ import click import dateutil.parser import pytz -import six # noqa: F401 from oci import exceptions from oci.object_storage import UploadManager, MultipartObjectAssembler from oci.object_storage.transfer import constants @@ -61,7 +60,7 @@ def validate_namespace_name(value): if value is None: return value - if isinstance(value, six.string_types): + if isinstance(value, str): if not value or value != value.strip() or not NAMESPACE_HOST_LABEL_PATTERN.match(value): raise click.BadParameter(NAMESPACE_VALIDATION_ERROR) @@ -331,10 +330,10 @@ def list_object_versions(ctx, from_json, all_pages, page_size, namespace_name, b elif not all_pages and limit is None: limit = 100 - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') kwargs = {} @@ -2695,13 +2694,13 @@ def update_retention_rule(ctx, **kwargs): bucket_name = kwargs['bucket_name'] retention_rule_id = kwargs['retention_rule_id'] - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') - if isinstance(bucket_name, six.string_types) and len(bucket_name.strip()) == 0: + if isinstance(bucket_name, str) and len(bucket_name.strip()) == 0: raise click.UsageError('Parameter --bucket-name cannot be whitespace or empty string') - if isinstance(retention_rule_id, six.string_types) and len(retention_rule_id.strip()) == 0: + if isinstance(retention_rule_id, str) and len(retention_rule_id.strip()) == 0: raise click.UsageError('Parameter --retention-rule-id cannot be whitespace or empty string') # Gather the values to be sent to the API as the body (UpdateRetentionRuleDetails) diff --git a/services/object_storage/tests/integ/test_object_storage_bulk_operations.py b/services/object_storage/tests/integ/test_object_storage_bulk_operations.py index 1f3dc1378..05f794621 100644 --- a/services/object_storage/tests/integ/test_object_storage_bulk_operations.py +++ b/services/object_storage/tests/integ/test_object_storage_bulk_operations.py @@ -15,7 +15,6 @@ import oci import pytest -import six from oci.object_storage.models import CreatePreauthenticatedRequestDetails, CreateReplicationPolicyDetails, \ CreateMultipartUploadDetails @@ -796,7 +795,7 @@ def test_bulk_put_get_delete_with_inclusions(object_storage_client): 'subfolder': ['blah.pdf', 'hello.txt', 'testfile3.png'], 'subfolder/subfolder2': ['xyz.jpg', 'blag.txt', 'byz.jpg', 'testfile4.png'] } - for folder, files in six.iteritems(folders_to_files): + for folder, files in folders_to_files.items(): folder_path = os.path.join(inclusion_test_folder, folder) if not os.path.exists(folder_path): os.makedirs(folder_path) @@ -942,7 +941,7 @@ def test_bulk_put_get_delete_with_exclusions(object_storage_client): 'subfolder': ['blah.pdf', 'hello.txt', 'testfile3.png'], 'subfolder/subfolder2': ['xyz.jpg', 'blag.txt', 'byz.jpg', 'testfile4.png'] } - for folder, files in six.iteritems(folders_to_files): + for folder, files in folders_to_files.items(): folder_path = os.path.join(exclusion_test_folder, folder) if not os.path.exists(folder_path): os.makedirs(folder_path) diff --git a/services/object_storage/tests/unit/test_get_object_tasks.py b/services/object_storage/tests/unit/test_get_object_tasks.py index 20a730655..1d46c8886 100644 --- a/services/object_storage/tests/unit/test_get_object_tasks.py +++ b/services/object_storage/tests/unit/test_get_object_tasks.py @@ -1,11 +1,6 @@ -# Copyright (c) 2016, 2026, Oracle and/or its affiliates. -# -# This software is dual-licensed to you under the Universal Permissive License -# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License -# 2.0 as shown at https://www.apache.org/licenses/LICENSE-2.0. You may choose # either license. -import six +import io import mock from services.object_storage.src.oci_cli_object_storage.object_storage_transfer_manager.get_object_tasks import ( @@ -52,7 +47,7 @@ def test_multipart_head_object_call_passes_version_id(): client, WorkPoolTaskCallbacksContainer(), request_pool, - six.BytesIO(), + io.BytesIO(), namespace='namespace', bucket_name='bucket', object_name='object', diff --git a/services/oce/src/oci_cli_oce_instance/generated/oceinstance_cli.py b/services/oce/src/oci_cli_oce_instance/generated/oceinstance_cli.py index da97ab2b9..a060b44ae 100644 --- a/services/oce/src/oci_cli_oce_instance/generated/oceinstance_cli.py +++ b/services/oce/src/oci_cli_oce_instance/generated/oceinstance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -66,7 +65,7 @@ def oce_instance_group(): @cli_util.wrap_exceptions def change_oce_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oce_instance_id, compartment_id, if_match): - if isinstance(oce_instance_id, six.string_types) and len(oce_instance_id.strip()) == 0: + if isinstance(oce_instance_id, str) and len(oce_instance_id.strip()) == 0: raise click.UsageError('Parameter --oce-instance-id cannot be whitespace or empty string') kwargs = {} @@ -236,7 +235,7 @@ def create_oce_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_oce_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oce_instance_id, if_match): - if isinstance(oce_instance_id, six.string_types) and len(oce_instance_id.strip()) == 0: + if isinstance(oce_instance_id, str) and len(oce_instance_id.strip()) == 0: raise click.UsageError('Parameter --oce-instance-id cannot be whitespace or empty string') kwargs = {} @@ -287,7 +286,7 @@ def delete_oce_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_oce_instance(ctx, from_json, oce_instance_id): - if isinstance(oce_instance_id, six.string_types) and len(oce_instance_id.strip()) == 0: + if isinstance(oce_instance_id, str) and len(oce_instance_id.strip()) == 0: raise click.UsageError('Parameter --oce-instance-id cannot be whitespace or empty string') kwargs = {} @@ -309,7 +308,7 @@ def get_oce_instance(ctx, from_json, oce_instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -403,7 +402,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -454,7 +453,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -563,7 +562,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def update_oce_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oce_instance_id, description, waf_primary_domain, instance_license_type, instance_usage_type, add_on_features, lifecycle_details, dr_region, freeform_tags, defined_tags, if_match): - if isinstance(oce_instance_id, six.string_types) and len(oce_instance_id.strip()) == 0: + if isinstance(oce_instance_id, str) and len(oce_instance_id.strip()) == 0: raise click.UsageError('Parameter --oce-instance-id cannot be whitespace or empty string') if not force: if add_on_features or freeform_tags or defined_tags: diff --git a/services/oci_control_center/src/oci_cli_occ_metrics/generated/occmetrics_cli.py b/services/oci_control_center/src/oci_cli_occ_metrics/generated/occmetrics_cli.py index 6715c1f8e..6ed8800b8 100644 --- a/services/oci_control_center/src/oci_cli_occ_metrics/generated/occmetrics_cli.py +++ b/services/oci_control_center/src/oci_cli_occ_metrics/generated/occmetrics_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -62,7 +61,7 @@ def list_metric_properties(ctx, from_json, all_pages, page_size, namespace_name, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(namespace_name, six.string_types) and len(namespace_name.strip()) == 0: + if isinstance(namespace_name, str) and len(namespace_name.strip()) == 0: raise click.UsageError('Parameter --namespace-name cannot be whitespace or empty string') kwargs = {} diff --git a/services/ocvp/src/oci_cli_byol/generated/byol_cli.py b/services/ocvp/src/oci_cli_byol/generated/byol_cli.py index 6f4c516d1..c460ff630 100644 --- a/services/ocvp/src/oci_cli_byol/generated/byol_cli.py +++ b/services/ocvp/src/oci_cli_byol/generated/byol_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -51,7 +50,7 @@ def byol_summary_group(): @cli_util.wrap_exceptions def change_byol_compartment(ctx, from_json, byol_id, compartment_id, if_match): - if isinstance(byol_id, six.string_types) and len(byol_id.strip()) == 0: + if isinstance(byol_id, str) and len(byol_id.strip()) == 0: raise click.UsageError('Parameter --byol-id cannot be whitespace or empty string') kwargs = {} @@ -174,7 +173,7 @@ def create_byol(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_byol(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, byol_id, if_match): - if isinstance(byol_id, six.string_types) and len(byol_id.strip()) == 0: + if isinstance(byol_id, str) and len(byol_id.strip()) == 0: raise click.UsageError('Parameter --byol-id cannot be whitespace or empty string') kwargs = {} @@ -225,7 +224,7 @@ def delete_byol(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def get_byol(ctx, from_json, byol_id): - if isinstance(byol_id, six.string_types) and len(byol_id.strip()) == 0: + if isinstance(byol_id, str) and len(byol_id.strip()) == 0: raise click.UsageError('Parameter --byol-id cannot be whitespace or empty string') kwargs = {} @@ -322,7 +321,7 @@ def list_byols(ctx, from_json, all_pages, page_size, compartment_id, byol_id, li @cli_util.wrap_exceptions def retrieve_byol_realm_allocations(ctx, from_json, byol_id, limit, page, sort_order, sort_by): - if isinstance(byol_id, six.string_types) and len(byol_id.strip()) == 0: + if isinstance(byol_id, str) and len(byol_id.strip()) == 0: raise click.UsageError('Parameter --byol-id cannot be whitespace or empty string') kwargs = {} @@ -373,7 +372,7 @@ def retrieve_byol_realm_allocations(ctx, from_json, byol_id, limit, page, sort_o @cli_util.wrap_exceptions def update_byol(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, byol_id, display_name, total_units, description, software_type, time_term_start, time_term_end, entitlement_key, site_id, freeform_tags, defined_tags, if_match): - if isinstance(byol_id, six.string_types) and len(byol_id.strip()) == 0: + if isinstance(byol_id, str) and len(byol_id.strip()) == 0: raise click.UsageError('Parameter --byol-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ocvp/src/oci_cli_byol_allocation/generated/byolallocation_cli.py b/services/ocvp/src/oci_cli_byol_allocation/generated/byolallocation_cli.py index 533a4feda..e66f86b5b 100644 --- a/services/ocvp/src/oci_cli_byol_allocation/generated/byolallocation_cli.py +++ b/services/ocvp/src/oci_cli_byol_allocation/generated/byolallocation_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -51,7 +50,7 @@ def byol_allocation_group(): @cli_util.wrap_exceptions def change_byol_allocation_compartment(ctx, from_json, byol_allocation_id, compartment_id, if_match): - if isinstance(byol_allocation_id, six.string_types) and len(byol_allocation_id.strip()) == 0: + if isinstance(byol_allocation_id, str) and len(byol_allocation_id.strip()) == 0: raise click.UsageError('Parameter --byol-allocation-id cannot be whitespace or empty string') kwargs = {} @@ -158,7 +157,7 @@ def create_byol_allocation(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_byol_allocation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, byol_allocation_id, if_match): - if isinstance(byol_allocation_id, six.string_types) and len(byol_allocation_id.strip()) == 0: + if isinstance(byol_allocation_id, str) and len(byol_allocation_id.strip()) == 0: raise click.UsageError('Parameter --byol-allocation-id cannot be whitespace or empty string') kwargs = {} @@ -209,7 +208,7 @@ def delete_byol_allocation(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def get_byol_allocation(ctx, from_json, byol_allocation_id): - if isinstance(byol_allocation_id, six.string_types) and len(byol_allocation_id.strip()) == 0: + if isinstance(byol_allocation_id, str) and len(byol_allocation_id.strip()) == 0: raise click.UsageError('Parameter --byol-allocation-id cannot be whitespace or empty string') kwargs = {} @@ -318,7 +317,7 @@ def list_byol_allocations(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def update_byol_allocation(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, byol_allocation_id, display_name, allocated_units, freeform_tags, defined_tags, if_match): - if isinstance(byol_allocation_id, six.string_types) and len(byol_allocation_id.strip()) == 0: + if isinstance(byol_allocation_id, str) and len(byol_allocation_id.strip()) == 0: raise click.UsageError('Parameter --byol-allocation-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ocvp/src/oci_cli_cluster/generated/cluster_cli.py b/services/ocvp/src/oci_cli_cluster/generated/cluster_cli.py index ac7552d7f..f0f78242b 100644 --- a/services/ocvp/src/oci_cli_cluster/generated/cluster_cli.py +++ b/services/ocvp/src/oci_cli_cluster/generated/cluster_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -195,7 +194,7 @@ def create_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -246,7 +245,7 @@ def delete_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def get_cluster(ctx, from_json, cluster_id): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs = {} @@ -350,7 +349,7 @@ def list_clusters(ctx, from_json, all_pages, page_size, sddc_id, display_name, l @cli_util.wrap_exceptions def update_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, cluster_id, display_name, network_configuration, vmware_software_version, esxi_software_version, cluster_byol_allocation_details, freeform_tags, defined_tags, if_match): - if isinstance(cluster_id, six.string_types) and len(cluster_id.strip()) == 0: + if isinstance(cluster_id, str) and len(cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') if not force: if network_configuration or cluster_byol_allocation_details or freeform_tags or defined_tags: diff --git a/services/ocvp/src/oci_cli_datastore/generated/datastore_cli.py b/services/ocvp/src/oci_cli_datastore/generated/datastore_cli.py index b44966168..3e5cbcfc2 100644 --- a/services/ocvp/src/oci_cli_datastore/generated/datastore_cli.py +++ b/services/ocvp/src/oci_cli_datastore/generated/datastore_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -49,7 +48,7 @@ def datastore_group(): @cli_util.wrap_exceptions def add_block_volume_to_datastore(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_id, block_volume_id, if_match): - if isinstance(datastore_id, six.string_types) and len(datastore_id.strip()) == 0: + if isinstance(datastore_id, str) and len(datastore_id.strip()) == 0: raise click.UsageError('Parameter --datastore-id cannot be whitespace or empty string') kwargs = {} @@ -107,7 +106,7 @@ def add_block_volume_to_datastore(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def change_datastore_compartment(ctx, from_json, datastore_id, compartment_id, if_match): - if isinstance(datastore_id, six.string_types) and len(datastore_id.strip()) == 0: + if isinstance(datastore_id, str) and len(datastore_id.strip()) == 0: raise click.UsageError('Parameter --datastore-id cannot be whitespace or empty string') kwargs = {} @@ -220,7 +219,7 @@ def create_datastore(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_datastore(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_id, if_match): - if isinstance(datastore_id, six.string_types) and len(datastore_id.strip()) == 0: + if isinstance(datastore_id, str) and len(datastore_id.strip()) == 0: raise click.UsageError('Parameter --datastore-id cannot be whitespace or empty string') kwargs = {} @@ -271,7 +270,7 @@ def delete_datastore(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_datastore(ctx, from_json, datastore_id): - if isinstance(datastore_id, six.string_types) and len(datastore_id.strip()) == 0: + if isinstance(datastore_id, str) and len(datastore_id.strip()) == 0: raise click.UsageError('Parameter --datastore-id cannot be whitespace or empty string') kwargs = {} @@ -375,7 +374,7 @@ def list_datastores(ctx, from_json, all_pages, page_size, compartment_id, displa @cli_util.wrap_exceptions def update_datastore(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(datastore_id, six.string_types) and len(datastore_id.strip()) == 0: + if isinstance(datastore_id, str) and len(datastore_id.strip()) == 0: raise click.UsageError('Parameter --datastore-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ocvp/src/oci_cli_datastore_cluster/generated/datastorecluster_cli.py b/services/ocvp/src/oci_cli_datastore_cluster/generated/datastorecluster_cli.py index e164c6e0b..725fc83f2 100644 --- a/services/ocvp/src/oci_cli_datastore_cluster/generated/datastorecluster_cli.py +++ b/services/ocvp/src/oci_cli_datastore_cluster/generated/datastorecluster_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -49,7 +48,7 @@ def datastore_cluster_group(): @cli_util.wrap_exceptions def add_datastore_to_datastore_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_cluster_id, datastore_ids, if_match): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -112,7 +111,7 @@ def add_datastore_to_datastore_cluster(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def attach_datastore_cluster_to_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_cluster_id, cluster_id, if_match): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -175,7 +174,7 @@ def attach_datastore_cluster_to_cluster(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def attach_datastore_cluster_to_esxi_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_cluster_id, esxi_host_id, if_match): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -233,7 +232,7 @@ def attach_datastore_cluster_to_esxi_host(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_datastore_cluster_compartment(ctx, from_json, datastore_cluster_id, compartment_id, if_match): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -342,7 +341,7 @@ def create_datastore_cluster(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_datastore_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_cluster_id, if_match): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -399,7 +398,7 @@ def delete_datastore_cluster(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def detach_datastore_cluster_from_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_cluster_id, if_match): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -457,7 +456,7 @@ def detach_datastore_cluster_from_cluster(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def detach_datastore_cluster_from_esxi_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_cluster_id, esxi_host_id, if_match): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -513,7 +512,7 @@ def detach_datastore_cluster_from_esxi_host(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def get_datastore_cluster(ctx, from_json, datastore_cluster_id): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -608,7 +607,7 @@ def list_datastore_clusters(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def remove_datastore_from_datastore_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_cluster_id, datastore_ids, if_match): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -678,7 +677,7 @@ def remove_datastore_from_datastore_cluster(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def update_datastore_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, datastore_cluster_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(datastore_cluster_id, six.string_types) and len(datastore_cluster_id.strip()) == 0: + if isinstance(datastore_cluster_id, str) and len(datastore_cluster_id.strip()) == 0: raise click.UsageError('Parameter --datastore-cluster-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ocvp/src/oci_cli_esxi_host/generated/esxihost_cli.py b/services/ocvp/src/oci_cli_esxi_host/generated/esxihost_cli.py index 90822bc2f..971eb7899 100644 --- a/services/ocvp/src/oci_cli_esxi_host/generated/esxihost_cli.py +++ b/services/ocvp/src/oci_cli_esxi_host/generated/esxihost_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -179,7 +178,7 @@ def create_esxi_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def delete_esxi_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, esxi_host_id, if_match): - if isinstance(esxi_host_id, six.string_types) and len(esxi_host_id.strip()) == 0: + if isinstance(esxi_host_id, str) and len(esxi_host_id.strip()) == 0: raise click.UsageError('Parameter --esxi-host-id cannot be whitespace or empty string') kwargs = {} @@ -230,7 +229,7 @@ def delete_esxi_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def get_esxi_host(ctx, from_json, esxi_host_id): - if isinstance(esxi_host_id, six.string_types) and len(esxi_host_id.strip()) == 0: + if isinstance(esxi_host_id, str) and len(esxi_host_id.strip()) == 0: raise click.UsageError('Parameter --esxi-host-id cannot be whitespace or empty string') kwargs = {} @@ -257,7 +256,7 @@ def get_esxi_host(ctx, from_json, esxi_host_id): @cli_util.wrap_exceptions def inplace_upgrade(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, esxi_host_id, vcf_byol_allocation_id, if_match): - if isinstance(esxi_host_id, six.string_types) and len(esxi_host_id.strip()) == 0: + if isinstance(esxi_host_id, str) and len(esxi_host_id.strip()) == 0: raise click.UsageError('Parameter --esxi-host-id cannot be whitespace or empty string') kwargs = {} @@ -399,7 +398,7 @@ def list_esxi_hosts(ctx, from_json, all_pages, page_size, sddc_id, cluster_id, c @cli_util.wrap_exceptions def replace_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, esxi_host_id, esxi_software_version, vcf_byol_allocation_id, if_match): - if isinstance(esxi_host_id, six.string_types) and len(esxi_host_id.strip()) == 0: + if isinstance(esxi_host_id, str) and len(esxi_host_id.strip()) == 0: raise click.UsageError('Parameter --esxi-host-id cannot be whitespace or empty string') kwargs = {} @@ -465,7 +464,7 @@ def replace_host(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def swap_billing(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, esxi_host_id, swap_billing_host_id, if_match): - if isinstance(esxi_host_id, six.string_types) and len(esxi_host_id.strip()) == 0: + if isinstance(esxi_host_id, str) and len(esxi_host_id.strip()) == 0: raise click.UsageError('Parameter --esxi-host-id cannot be whitespace or empty string') kwargs = {} @@ -537,7 +536,7 @@ def swap_billing(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def update_esxi_host(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, esxi_host_id, display_name, next_commitment, billing_donor_host_id, vcf_byol_allocation_id, is_vsan_byol_enabled, freeform_tags, defined_tags, if_match): - if isinstance(esxi_host_id, six.string_types) and len(esxi_host_id.strip()) == 0: + if isinstance(esxi_host_id, str) and len(esxi_host_id.strip()) == 0: raise click.UsageError('Parameter --esxi-host-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ocvp/src/oci_cli_management_appliance/generated/managementappliance_cli.py b/services/ocvp/src/oci_cli_management_appliance/generated/managementappliance_cli.py index 3a4f2bae1..69ace7e04 100644 --- a/services/ocvp/src/oci_cli_management_appliance/generated/managementappliance_cli.py +++ b/services/ocvp/src/oci_cli_management_appliance/generated/managementappliance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -122,7 +121,7 @@ def create_management_appliance(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_management_appliance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_appliance_id, if_match): - if isinstance(management_appliance_id, six.string_types) and len(management_appliance_id.strip()) == 0: + if isinstance(management_appliance_id, str) and len(management_appliance_id.strip()) == 0: raise click.UsageError('Parameter --management-appliance-id cannot be whitespace or empty string') kwargs = {} @@ -173,7 +172,7 @@ def delete_management_appliance(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def get_management_appliance(ctx, from_json, management_appliance_id): - if isinstance(management_appliance_id, six.string_types) and len(management_appliance_id.strip()) == 0: + if isinstance(management_appliance_id, str) and len(management_appliance_id.strip()) == 0: raise click.UsageError('Parameter --management-appliance-id cannot be whitespace or empty string') kwargs = {} @@ -279,7 +278,7 @@ def list_management_appliances(ctx, from_json, all_pages, page_size, compartment @cli_util.wrap_exceptions def update_management_appliance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, management_appliance_id, display_name, configuration, connections, freeform_tags, defined_tags, if_match): - if isinstance(management_appliance_id, six.string_types) and len(management_appliance_id.strip()) == 0: + if isinstance(management_appliance_id, str) and len(management_appliance_id.strip()) == 0: raise click.UsageError('Parameter --management-appliance-id cannot be whitespace or empty string') if not force: if configuration or connections or freeform_tags or defined_tags: diff --git a/services/ocvp/src/oci_cli_sddc/generated/sddc_cli.py b/services/ocvp/src/oci_cli_sddc/generated/sddc_cli.py index 22fe94a41..6a9662e95 100644 --- a/services/ocvp/src/oci_cli_sddc/generated/sddc_cli.py +++ b/services/ocvp/src/oci_cli_sddc/generated/sddc_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -76,7 +75,7 @@ def supported_commitment_summary_group(): @cli_util.wrap_exceptions def cancel_downgrade_hcx(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sddc_id, if_match): - if isinstance(sddc_id, six.string_types) and len(sddc_id.strip()) == 0: + if isinstance(sddc_id, str) and len(sddc_id.strip()) == 0: raise click.UsageError('Parameter --sddc-id cannot be whitespace or empty string') kwargs = {} @@ -129,7 +128,7 @@ def cancel_downgrade_hcx(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def change_sddc_compartment(ctx, from_json, sddc_id, compartment_id, if_match): - if isinstance(sddc_id, six.string_types) and len(sddc_id.strip()) == 0: + if isinstance(sddc_id, str) and len(sddc_id.strip()) == 0: raise click.UsageError('Parameter --sddc-id cannot be whitespace or empty string') kwargs = {} @@ -258,7 +257,7 @@ def create_sddc(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def delete_sddc(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sddc_id, if_match): - if isinstance(sddc_id, six.string_types) and len(sddc_id.strip()) == 0: + if isinstance(sddc_id, str) and len(sddc_id.strip()) == 0: raise click.UsageError('Parameter --sddc-id cannot be whitespace or empty string') kwargs = {} @@ -314,7 +313,7 @@ def delete_sddc(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def downgrade_hcx(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, reserving_hcx_on_premise_license_keys, sddc_id, if_match): - if isinstance(sddc_id, six.string_types) and len(sddc_id.strip()) == 0: + if isinstance(sddc_id, str) and len(sddc_id.strip()) == 0: raise click.UsageError('Parameter --sddc-id cannot be whitespace or empty string') kwargs = {} @@ -370,7 +369,7 @@ def downgrade_hcx(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def get_sddc(ctx, from_json, sddc_id): - if isinstance(sddc_id, six.string_types) and len(sddc_id.strip()) == 0: + if isinstance(sddc_id, str) and len(sddc_id.strip()) == 0: raise click.UsageError('Parameter --sddc-id cannot be whitespace or empty string') kwargs = {} @@ -628,7 +627,7 @@ def list_supported_vmware_software_versions(ctx, from_json, all_pages, page_size @cli_util.wrap_exceptions def refresh_hcx_license_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sddc_id, if_match): - if isinstance(sddc_id, six.string_types) and len(sddc_id.strip()) == 0: + if isinstance(sddc_id, str) and len(sddc_id.strip()) == 0: raise click.UsageError('Parameter --sddc-id cannot be whitespace or empty string') kwargs = {} @@ -681,7 +680,7 @@ def refresh_hcx_license_status(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def retrieve_password(ctx, from_json, sddc_id, type, if_match): - if isinstance(sddc_id, six.string_types) and len(sddc_id.strip()) == 0: + if isinstance(sddc_id, str) and len(sddc_id.strip()) == 0: raise click.UsageError('Parameter --sddc-id cannot be whitespace or empty string') kwargs = {} @@ -728,7 +727,7 @@ def retrieve_password(ctx, from_json, sddc_id, type, if_match): @cli_util.wrap_exceptions def update_sddc(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sddc_id, display_name, vmware_software_version, esxi_software_version, ssh_authorized_keys, sddc_byol_allocation_details, freeform_tags, defined_tags, if_match): - if isinstance(sddc_id, six.string_types) and len(sddc_id.strip()) == 0: + if isinstance(sddc_id, str) and len(sddc_id.strip()) == 0: raise click.UsageError('Parameter --sddc-id cannot be whitespace or empty string') if not force: if sddc_byol_allocation_details or freeform_tags or defined_tags: @@ -808,7 +807,7 @@ def update_sddc(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def upgrade_hcx(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sddc_id, if_match): - if isinstance(sddc_id, six.string_types) and len(sddc_id.strip()) == 0: + if isinstance(sddc_id, str) and len(sddc_id.strip()) == 0: raise click.UsageError('Parameter --sddc-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/ocvp/src/oci_cli_work_request/generated/workrequest_cli.py b/services/ocvp/src/oci_cli_work_request/generated/workrequest_cli.py index f8b12890e..c21fb0e3a 100644 --- a/services/ocvp/src/oci_cli_work_request/generated/workrequest_cli.py +++ b/services/ocvp/src/oci_cli_work_request/generated/workrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -56,7 +55,7 @@ def work_request_group(): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -85,7 +84,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -136,7 +135,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/oda/src/oci_cli_management/generated/management_cli.py b/services/oda/src/oci_cli_management/generated/management_cli.py index 8880d0ff8..dc305f90f 100644 --- a/services/oda/src/oci_cli_management/generated/management_cli.py +++ b/services/oda/src/oci_cli_management/generated/management_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -116,10 +115,10 @@ def channel_group(): @cli_util.wrap_exceptions def bulk_create_skill_entities(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, skill_id, items): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') kwargs = {} @@ -179,10 +178,10 @@ def bulk_create_skill_entities(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def cascading_delete_skill_custom_entities(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, skill_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') kwargs = {} @@ -241,7 +240,7 @@ def cascading_delete_skill_custom_entities(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def change_oda_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_private_endpoint_id, compartment_id, if_match): - if isinstance(oda_private_endpoint_id, six.string_types) and len(oda_private_endpoint_id.strip()) == 0: + if isinstance(oda_private_endpoint_id, str) and len(oda_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -298,7 +297,7 @@ def change_oda_private_endpoint_compartment(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def configure_digital_assistant_parameters(ctx, from_json, oda_instance_id, parameters): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -344,7 +343,7 @@ def configure_digital_assistant_parameters(ctx, from_json, oda_instance_id, para @cli_util.wrap_exceptions def create_authentication_provider(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, grant_type, identity_provider, name, token_endpoint_url, client_id, client_secret, scopes, authorization_endpoint_url, short_authorization_code_request_url, revoke_token_endpoint_url, subject_claim, refresh_token_retention_period_in_days, redirect_url, is_visible, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -433,7 +432,7 @@ def create_authentication_provider(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def create_channel(ctx, from_json, oda_instance_id, name, type, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -481,7 +480,7 @@ def create_channel(ctx, from_json, oda_instance_id, name, type, description, ses @cli_util.wrap_exceptions def create_channel_create_ms_teams_channel_details(ctx, from_json, oda_instance_id, name, msa_app_id, msa_app_password, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -540,7 +539,7 @@ def create_channel_create_ms_teams_channel_details(ctx, from_json, oda_instance_ @cli_util.wrap_exceptions def create_channel_create_web_channel_details(ctx, from_json, oda_instance_id, name, is_client_authentication_enabled, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, max_token_expiration_time_in_minutes, allowed_domains, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -599,7 +598,7 @@ def create_channel_create_web_channel_details(ctx, from_json, oda_instance_id, n @cli_util.wrap_exceptions def create_channel_create_facebook_channel_details(ctx, from_json, oda_instance_id, name, app_secret, page_access_token, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -652,7 +651,7 @@ def create_channel_create_facebook_channel_details(ctx, from_json, oda_instance_ @cli_util.wrap_exceptions def create_channel_create_application_channel_details(ctx, from_json, oda_instance_id, name, is_authenticated_user_id, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, outbound_url): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -715,7 +714,7 @@ def create_channel_create_application_channel_details(ctx, from_json, oda_instan @cli_util.wrap_exceptions def create_channel_create_service_cloud_channel_details(ctx, from_json, oda_instance_id, name, domain_name, host_name_prefix, user_name, password, client_type, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -772,7 +771,7 @@ def create_channel_create_service_cloud_channel_details(ctx, from_json, oda_inst @cli_util.wrap_exceptions def create_channel_create_slack_channel_details(ctx, from_json, oda_instance_id, name, client_id, signing_secret, client_secret, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, auth_success_url, auth_error_url, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -842,7 +841,7 @@ def create_channel_create_slack_channel_details(ctx, from_json, oda_instance_id, @cli_util.wrap_exceptions def create_channel_create_osvc_channel_details(ctx, from_json, oda_instance_id, name, host, port, user_name, password, total_session_count, authentication_provider_name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, channel_service, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -902,7 +901,7 @@ def create_channel_create_osvc_channel_details(ctx, from_json, oda_instance_id, @cli_util.wrap_exceptions def create_channel_create_app_event_channel_details(ctx, from_json, oda_instance_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, outbound_url, event_sink_bot_ids): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -964,7 +963,7 @@ def create_channel_create_app_event_channel_details(ctx, from_json, oda_instance @cli_util.wrap_exceptions def create_channel_create_oss_channel_details(ctx, from_json, oda_instance_id, name, inbound_message_topic, outbound_message_topic, bootstrap_servers, security_protocol, sasl_mechanism, tenancy_name, user_name, stream_pool_id, auth_token, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, event_sink_bot_ids): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1025,7 +1024,7 @@ def create_channel_create_oss_channel_details(ctx, from_json, oda_instance_id, n @cli_util.wrap_exceptions def create_channel_create_cortana_channel_details(ctx, from_json, oda_instance_id, name, msa_app_id, msa_app_password, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1079,7 +1078,7 @@ def create_channel_create_cortana_channel_details(ctx, from_json, oda_instance_i @cli_util.wrap_exceptions def create_channel_create_android_channel_details(ctx, from_json, oda_instance_id, name, is_client_authentication_enabled, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, max_token_expiration_time_in_minutes, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1138,7 +1137,7 @@ def create_channel_create_android_channel_details(ctx, from_json, oda_instance_i @cli_util.wrap_exceptions def create_channel_create_twilio_channel_details(ctx, from_json, oda_instance_id, name, account_sid, phone_number, auth_token, is_mms_enabled, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, original_connectors_url, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1197,7 +1196,7 @@ def create_channel_create_twilio_channel_details(ctx, from_json, oda_instance_id @cli_util.wrap_exceptions def create_channel_create_webhook_channel_details(ctx, from_json, oda_instance_id, name, outbound_url, payload_version, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1251,7 +1250,7 @@ def create_channel_create_webhook_channel_details(ctx, from_json, oda_instance_i @cli_util.wrap_exceptions def create_channel_create_ios_channel_details(ctx, from_json, oda_instance_id, name, is_client_authentication_enabled, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, max_token_expiration_time_in_minutes, bot_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1310,7 +1309,7 @@ def create_channel_create_ios_channel_details(ctx, from_json, oda_instance_id, n @cli_util.wrap_exceptions def create_digital_assistant(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, kind, category, description, platform_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1397,7 +1396,7 @@ def create_digital_assistant(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def create_digital_assistant_create_digital_assistant_version_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, id, version_parameterconflict, category, description, platform_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1489,7 +1488,7 @@ def create_digital_assistant_create_digital_assistant_version_details(ctx, from_ @cli_util.wrap_exceptions def create_digital_assistant_clone_digital_assistant_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, id, name, display_name, category, description, platform_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags, version_parameterconflict): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1585,7 +1584,7 @@ def create_digital_assistant_clone_digital_assistant_details(ctx, from_json, wai @cli_util.wrap_exceptions def create_digital_assistant_create_new_digital_assistant_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, name, display_name, category, description, platform_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags, version_parameterconflict, native_language_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1683,7 +1682,7 @@ def create_digital_assistant_create_new_digital_assistant_details(ctx, from_json @cli_util.wrap_exceptions def create_digital_assistant_extend_digital_assistant_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, id, name, display_name, category, description, platform_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags, version_parameterconflict): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1911,7 +1910,7 @@ def create_oda_private_endpoint_attachment(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def create_oda_private_endpoint_scan_proxy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scan_listener_type, protocol, scan_listener_infos, oda_private_endpoint_id): - if isinstance(oda_private_endpoint_id, six.string_types) and len(oda_private_endpoint_id.strip()) == 0: + if isinstance(oda_private_endpoint_id, str) and len(oda_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -1979,7 +1978,7 @@ def create_oda_private_endpoint_scan_proxy(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def create_skill(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, kind, category, description, platform_version, dialog_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2072,7 +2071,7 @@ def create_skill(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def create_skill_clone_skill_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, id, name, display_name, category, description, platform_version, dialog_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags, version_parameterconflict): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2172,7 +2171,7 @@ def create_skill_clone_skill_details(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def create_skill_create_new_skill_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, name, display_name, version_parameterconflict, category, description, platform_version, dialog_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags, native_language_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2270,7 +2269,7 @@ def create_skill_create_new_skill_details(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def create_skill_create_skill_version_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, id, version_parameterconflict, category, description, platform_version, dialog_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2366,7 +2365,7 @@ def create_skill_create_skill_version_details(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def create_skill_extend_skill_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, id, name, display_name, category, description, platform_version, dialog_version, multilingual_mode, primary_language_tag, freeform_tags, defined_tags, version_parameterconflict): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2460,10 +2459,10 @@ def create_skill_extend_skill_details(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def create_skill_parameter(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, skill_id, name, display_name, type, value, description): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') kwargs = {} @@ -2529,7 +2528,7 @@ def create_skill_parameter(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def create_translator(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, type, base_url, auth_token, properties, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2593,10 +2592,10 @@ def create_translator(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_authentication_provider(ctx, from_json, oda_instance_id, authentication_provider_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(authentication_provider_id, six.string_types) and len(authentication_provider_id.strip()) == 0: + if isinstance(authentication_provider_id, str) and len(authentication_provider_id.strip()) == 0: raise click.UsageError('Parameter --authentication-provider-id cannot be whitespace or empty string') kwargs = {} @@ -2624,10 +2623,10 @@ def delete_authentication_provider(ctx, from_json, oda_instance_id, authenticati @cli_util.wrap_exceptions def delete_channel(ctx, from_json, oda_instance_id, channel_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -2655,10 +2654,10 @@ def delete_channel(ctx, from_json, oda_instance_id, channel_id, if_match): @cli_util.wrap_exceptions def delete_digital_assistant(ctx, from_json, oda_instance_id, digital_assistant_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(digital_assistant_id, six.string_types) and len(digital_assistant_id.strip()) == 0: + if isinstance(digital_assistant_id, str) and len(digital_assistant_id.strip()) == 0: raise click.UsageError('Parameter --digital-assistant-id cannot be whitespace or empty string') kwargs = {} @@ -2688,7 +2687,7 @@ def delete_digital_assistant(ctx, from_json, oda_instance_id, digital_assistant_ @cli_util.wrap_exceptions def delete_oda_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_private_endpoint_id, if_match): - if isinstance(oda_private_endpoint_id, six.string_types) and len(oda_private_endpoint_id.strip()) == 0: + if isinstance(oda_private_endpoint_id, str) and len(oda_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2744,7 +2743,7 @@ def delete_oda_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_oda_private_endpoint_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_private_endpoint_attachment_id, if_match): - if isinstance(oda_private_endpoint_attachment_id, six.string_types) and len(oda_private_endpoint_attachment_id.strip()) == 0: + if isinstance(oda_private_endpoint_attachment_id, str) and len(oda_private_endpoint_attachment_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -2801,10 +2800,10 @@ def delete_oda_private_endpoint_attachment(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_oda_private_endpoint_scan_proxy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_private_endpoint_scan_proxy_id, oda_private_endpoint_id, if_match): - if isinstance(oda_private_endpoint_scan_proxy_id, six.string_types) and len(oda_private_endpoint_scan_proxy_id.strip()) == 0: + if isinstance(oda_private_endpoint_scan_proxy_id, str) and len(oda_private_endpoint_scan_proxy_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-scan-proxy-id cannot be whitespace or empty string') - if isinstance(oda_private_endpoint_id, six.string_types) and len(oda_private_endpoint_id.strip()) == 0: + if isinstance(oda_private_endpoint_id, str) and len(oda_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2859,10 +2858,10 @@ def delete_oda_private_endpoint_scan_proxy(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def delete_skill(ctx, from_json, oda_instance_id, skill_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') kwargs = {} @@ -2891,13 +2890,13 @@ def delete_skill(ctx, from_json, oda_instance_id, skill_id, if_match): @cli_util.wrap_exceptions def delete_skill_parameter(ctx, from_json, oda_instance_id, skill_id, parameter_name, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') - if isinstance(parameter_name, six.string_types) and len(parameter_name.strip()) == 0: + if isinstance(parameter_name, str) and len(parameter_name.strip()) == 0: raise click.UsageError('Parameter --parameter-name cannot be whitespace or empty string') kwargs = {} @@ -2926,10 +2925,10 @@ def delete_skill_parameter(ctx, from_json, oda_instance_id, skill_id, parameter_ @cli_util.wrap_exceptions def delete_translator(ctx, from_json, oda_instance_id, translator_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(translator_id, six.string_types) and len(translator_id.strip()) == 0: + if isinstance(translator_id, str) and len(translator_id.strip()) == 0: raise click.UsageError('Parameter --translator-id cannot be whitespace or empty string') kwargs = {} @@ -2959,10 +2958,10 @@ def delete_translator(ctx, from_json, oda_instance_id, translator_id, if_match): @cli_util.wrap_exceptions def export_digital_assistant(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, digital_assistant_id, target): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(digital_assistant_id, six.string_types) and len(digital_assistant_id.strip()) == 0: + if isinstance(digital_assistant_id, str) and len(digital_assistant_id.strip()) == 0: raise click.UsageError('Parameter --digital-assistant-id cannot be whitespace or empty string') kwargs = {} @@ -3022,10 +3021,10 @@ def export_digital_assistant(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def export_skill(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, skill_id, target): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') kwargs = {} @@ -3082,10 +3081,10 @@ def export_skill(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def get_authentication_provider(ctx, from_json, oda_instance_id, authentication_provider_id, if_none_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(authentication_provider_id, six.string_types) and len(authentication_provider_id.strip()) == 0: + if isinstance(authentication_provider_id, str) and len(authentication_provider_id.strip()) == 0: raise click.UsageError('Parameter --authentication-provider-id cannot be whitespace or empty string') kwargs = {} @@ -3112,10 +3111,10 @@ def get_authentication_provider(ctx, from_json, oda_instance_id, authentication_ @cli_util.wrap_exceptions def get_channel(ctx, from_json, oda_instance_id, channel_id, if_none_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -3142,10 +3141,10 @@ def get_channel(ctx, from_json, oda_instance_id, channel_id, if_none_match): @cli_util.wrap_exceptions def get_digital_assistant(ctx, from_json, oda_instance_id, digital_assistant_id, if_none_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(digital_assistant_id, six.string_types) and len(digital_assistant_id.strip()) == 0: + if isinstance(digital_assistant_id, str) and len(digital_assistant_id.strip()) == 0: raise click.UsageError('Parameter --digital-assistant-id cannot be whitespace or empty string') kwargs = {} @@ -3173,13 +3172,13 @@ def get_digital_assistant(ctx, from_json, oda_instance_id, digital_assistant_id, @cli_util.wrap_exceptions def get_digital_assistant_parameter(ctx, from_json, oda_instance_id, digital_assistant_id, parameter_name, if_none_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(digital_assistant_id, six.string_types) and len(digital_assistant_id.strip()) == 0: + if isinstance(digital_assistant_id, str) and len(digital_assistant_id.strip()) == 0: raise click.UsageError('Parameter --digital-assistant-id cannot be whitespace or empty string') - if isinstance(parameter_name, six.string_types) and len(parameter_name.strip()) == 0: + if isinstance(parameter_name, str) and len(parameter_name.strip()) == 0: raise click.UsageError('Parameter --parameter-name cannot be whitespace or empty string') kwargs = {} @@ -3205,7 +3204,7 @@ def get_digital_assistant_parameter(ctx, from_json, oda_instance_id, digital_ass @cli_util.wrap_exceptions def get_oda_private_endpoint(ctx, from_json, oda_private_endpoint_id): - if isinstance(oda_private_endpoint_id, six.string_types) and len(oda_private_endpoint_id.strip()) == 0: + if isinstance(oda_private_endpoint_id, str) and len(oda_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3227,7 +3226,7 @@ def get_oda_private_endpoint(ctx, from_json, oda_private_endpoint_id): @cli_util.wrap_exceptions def get_oda_private_endpoint_attachment(ctx, from_json, oda_private_endpoint_attachment_id): - if isinstance(oda_private_endpoint_attachment_id, six.string_types) and len(oda_private_endpoint_attachment_id.strip()) == 0: + if isinstance(oda_private_endpoint_attachment_id, str) and len(oda_private_endpoint_attachment_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -3250,10 +3249,10 @@ def get_oda_private_endpoint_attachment(ctx, from_json, oda_private_endpoint_att @cli_util.wrap_exceptions def get_oda_private_endpoint_scan_proxy(ctx, from_json, oda_private_endpoint_scan_proxy_id, oda_private_endpoint_id): - if isinstance(oda_private_endpoint_scan_proxy_id, six.string_types) and len(oda_private_endpoint_scan_proxy_id.strip()) == 0: + if isinstance(oda_private_endpoint_scan_proxy_id, str) and len(oda_private_endpoint_scan_proxy_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-scan-proxy-id cannot be whitespace or empty string') - if isinstance(oda_private_endpoint_id, six.string_types) and len(oda_private_endpoint_id.strip()) == 0: + if isinstance(oda_private_endpoint_id, str) and len(oda_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3278,10 +3277,10 @@ def get_oda_private_endpoint_scan_proxy(ctx, from_json, oda_private_endpoint_sca @cli_util.wrap_exceptions def get_skill(ctx, from_json, oda_instance_id, skill_id, if_none_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') kwargs = {} @@ -3309,13 +3308,13 @@ def get_skill(ctx, from_json, oda_instance_id, skill_id, if_none_match): @cli_util.wrap_exceptions def get_skill_parameter(ctx, from_json, oda_instance_id, skill_id, parameter_name, if_none_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') - if isinstance(parameter_name, six.string_types) and len(parameter_name.strip()) == 0: + if isinstance(parameter_name, str) and len(parameter_name.strip()) == 0: raise click.UsageError('Parameter --parameter-name cannot be whitespace or empty string') kwargs = {} @@ -3343,10 +3342,10 @@ def get_skill_parameter(ctx, from_json, oda_instance_id, skill_id, parameter_nam @cli_util.wrap_exceptions def get_translator(ctx, from_json, oda_instance_id, translator_id, if_none_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(translator_id, six.string_types) and len(translator_id.strip()) == 0: + if isinstance(translator_id, str) and len(translator_id.strip()) == 0: raise click.UsageError('Parameter --translator-id cannot be whitespace or empty string') kwargs = {} @@ -3375,7 +3374,7 @@ def get_translator(ctx, from_json, oda_instance_id, translator_id, if_none_match @cli_util.wrap_exceptions def import_bot(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, source): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -3452,7 +3451,7 @@ def list_authentication_providers(ctx, from_json, all_pages, page_size, oda_inst if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -3532,7 +3531,7 @@ def list_channels(ctx, from_json, all_pages, page_size, oda_instance_id, id, nam if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -3610,10 +3609,10 @@ def list_digital_assistant_parameters(ctx, from_json, all_pages, page_size, oda_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(digital_assistant_id, six.string_types) and len(digital_assistant_id.strip()) == 0: + if isinstance(digital_assistant_id, str) and len(digital_assistant_id.strip()) == 0: raise click.UsageError('Parameter --digital-assistant-id cannot be whitespace or empty string') kwargs = {} @@ -3699,7 +3698,7 @@ def list_digital_assistants(ctx, from_json, all_pages, page_size, oda_instance_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -3850,7 +3849,7 @@ def list_oda_private_endpoint_scan_proxies(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_private_endpoint_id, six.string_types) and len(oda_private_endpoint_id.strip()) == 0: + if isinstance(oda_private_endpoint_id, str) and len(oda_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3990,10 +3989,10 @@ def list_skill_parameters(ctx, from_json, all_pages, page_size, oda_instance_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') kwargs = {} @@ -4079,7 +4078,7 @@ def list_skills(ctx, from_json, all_pages, page_size, oda_instance_id, id, categ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4166,7 +4165,7 @@ def list_translators(ctx, from_json, all_pages, page_size, oda_instance_id, id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -4227,10 +4226,10 @@ def list_translators(ctx, from_json, all_pages, page_size, oda_instance_id, id, @cli_util.wrap_exceptions def publish_digital_assistant(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, digital_assistant_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(digital_assistant_id, six.string_types) and len(digital_assistant_id.strip()) == 0: + if isinstance(digital_assistant_id, str) and len(digital_assistant_id.strip()) == 0: raise click.UsageError('Parameter --digital-assistant-id cannot be whitespace or empty string') kwargs = {} @@ -4283,10 +4282,10 @@ def publish_digital_assistant(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def publish_skill(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, skill_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') kwargs = {} @@ -4336,10 +4335,10 @@ def publish_skill(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def rotate_channel_keys(ctx, from_json, oda_instance_id, channel_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -4369,10 +4368,10 @@ def rotate_channel_keys(ctx, from_json, oda_instance_id, channel_id, if_match): @cli_util.wrap_exceptions def start_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -4425,10 +4424,10 @@ def start_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def stop_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') kwargs = {} @@ -4482,10 +4481,10 @@ def stop_channel(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def train_skill(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, skill_id, items, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') kwargs = {} @@ -4560,10 +4559,10 @@ def train_skill(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def update_authentication_provider(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, authentication_provider_id, token_endpoint_url, authorization_endpoint_url, short_authorization_code_request_url, revoke_token_endpoint_url, client_id, client_secret, scopes, subject_claim, refresh_token_retention_period_in_days, redirect_url, freeform_tags, defined_tags, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(authentication_provider_id, six.string_types) and len(authentication_provider_id.strip()) == 0: + if isinstance(authentication_provider_id, str) and len(authentication_provider_id.strip()) == 0: raise click.UsageError('Parameter --authentication-provider-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4667,10 +4666,10 @@ def update_authentication_provider(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_channel(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, type, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4765,10 +4764,10 @@ def update_channel(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_channel_update_osvc_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, host, port, user_name, password, total_session_count, channel_service, authentication_provider_name, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4886,10 +4885,10 @@ def update_channel_update_osvc_channel_details(ctx, from_json, force, wait_for_s @cli_util.wrap_exceptions def update_channel_update_oss_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, event_sink_bot_ids, inbound_message_topic, outbound_message_topic, bootstrap_servers, security_protocol, sasl_mechanism, tenancy_name, user_name, stream_pool_id, auth_token, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or event_sink_bot_ids: @@ -5006,10 +5005,10 @@ def update_channel_update_oss_channel_details(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_channel_update_android_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, max_token_expiration_time_in_minutes, is_client_authentication_enabled, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5105,10 +5104,10 @@ def update_channel_update_android_channel_details(ctx, from_json, force, wait_fo @cli_util.wrap_exceptions def update_channel_update_ms_teams_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, msa_app_id, msa_app_password, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5203,10 +5202,10 @@ def update_channel_update_ms_teams_channel_details(ctx, from_json, force, wait_f @cli_util.wrap_exceptions def update_channel_update_app_event_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, outbound_url, event_sink_bot_ids, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or event_sink_bot_ids: @@ -5304,10 +5303,10 @@ def update_channel_update_app_event_channel_details(ctx, from_json, force, wait_ @cli_util.wrap_exceptions def update_channel_update_web_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, max_token_expiration_time_in_minutes, is_client_authentication_enabled, allowed_domains, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5406,10 +5405,10 @@ def update_channel_update_web_channel_details(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_channel_update_ios_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, max_token_expiration_time_in_minutes, is_client_authentication_enabled, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5508,10 +5507,10 @@ def update_channel_update_ios_channel_details(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_channel_update_slack_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, client_id, auth_success_url, auth_error_url, signing_secret, client_secret, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5626,10 +5625,10 @@ def update_channel_update_slack_channel_details(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_channel_update_service_cloud_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, domain_name, host_name_prefix, user_name, password, client_type, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5734,10 +5733,10 @@ def update_channel_update_service_cloud_channel_details(ctx, from_json, force, w @cli_util.wrap_exceptions def update_channel_update_twilio_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, account_sid, phone_number, auth_token, is_mms_enabled, original_connectors_url, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5842,10 +5841,10 @@ def update_channel_update_twilio_channel_details(ctx, from_json, force, wait_for @cli_util.wrap_exceptions def update_channel_update_webhook_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, outbound_url, payload_version, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -5940,10 +5939,10 @@ def update_channel_update_webhook_channel_details(ctx, from_json, force, wait_fo @cli_util.wrap_exceptions def update_channel_update_application_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, outbound_url, is_authenticated_user_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6036,10 +6035,10 @@ def update_channel_update_application_channel_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_channel_update_facebook_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, app_secret, page_access_token, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6135,10 +6134,10 @@ def update_channel_update_facebook_channel_details(ctx, from_json, force, wait_f @cli_util.wrap_exceptions def update_channel_update_cortana_channel_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, channel_id, name, description, session_expiry_duration_in_milliseconds, freeform_tags, defined_tags, msa_app_id, msa_app_password, bot_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(channel_id, six.string_types) and len(channel_id.strip()) == 0: + if isinstance(channel_id, str) and len(channel_id.strip()) == 0: raise click.UsageError('Parameter --channel-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6230,10 +6229,10 @@ def update_channel_update_cortana_channel_details(ctx, from_json, force, wait_fo @cli_util.wrap_exceptions def update_digital_assistant(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, digital_assistant_id, category, description, freeform_tags, defined_tags, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(digital_assistant_id, six.string_types) and len(digital_assistant_id.strip()) == 0: + if isinstance(digital_assistant_id, str) and len(digital_assistant_id.strip()) == 0: raise click.UsageError('Parameter --digital-assistant-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6308,13 +6307,13 @@ def update_digital_assistant(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_digital_assistant_parameter(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, digital_assistant_id, parameter_name, value, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(digital_assistant_id, six.string_types) and len(digital_assistant_id.strip()) == 0: + if isinstance(digital_assistant_id, str) and len(digital_assistant_id.strip()) == 0: raise click.UsageError('Parameter --digital-assistant-id cannot be whitespace or empty string') - if isinstance(parameter_name, six.string_types) and len(parameter_name.strip()) == 0: + if isinstance(parameter_name, str) and len(parameter_name.strip()) == 0: raise click.UsageError('Parameter --parameter-name cannot be whitespace or empty string') kwargs = {} @@ -6379,7 +6378,7 @@ def update_digital_assistant_parameter(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_oda_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_private_endpoint_id, display_name, description, nsg_ids, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(oda_private_endpoint_id, six.string_types) and len(oda_private_endpoint_id.strip()) == 0: + if isinstance(oda_private_endpoint_id, str) and len(oda_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --oda-private-endpoint-id cannot be whitespace or empty string') if not force: if nsg_ids or freeform_tags or defined_tags or security_attributes: @@ -6466,10 +6465,10 @@ def update_oda_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_skill(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, skill_id, category, description, freeform_tags, defined_tags, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6546,13 +6545,13 @@ def update_skill(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_skill_parameter(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, skill_id, parameter_name, display_name, description, value, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(skill_id, six.string_types) and len(skill_id.strip()) == 0: + if isinstance(skill_id, str) and len(skill_id.strip()) == 0: raise click.UsageError('Parameter --skill-id cannot be whitespace or empty string') - if isinstance(parameter_name, six.string_types) and len(parameter_name.strip()) == 0: + if isinstance(parameter_name, str) and len(parameter_name.strip()) == 0: raise click.UsageError('Parameter --parameter-name cannot be whitespace or empty string') kwargs = {} @@ -6625,10 +6624,10 @@ def update_skill_parameter(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_translator(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, translator_id, base_url, auth_token, properties, freeform_tags, defined_tags, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(translator_id, six.string_types) and len(translator_id.strip()) == 0: + if isinstance(translator_id, str) and len(translator_id.strip()) == 0: raise click.UsageError('Parameter --translator-id cannot be whitespace or empty string') if not force: if properties or freeform_tags or defined_tags: diff --git a/services/oda/src/oci_cli_oda/generated/oda_cli.py b/services/oda/src/oci_cli_oda/generated/oda_cli.py index 45fbf5fb4..f84bae183 100644 --- a/services/oda/src/oci_cli_oda/generated/oda_cli.py +++ b/services/oda/src/oci_cli_oda/generated/oda_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -89,7 +88,7 @@ def work_request_group(): @cli_util.wrap_exceptions def change_oda_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, compartment_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -240,7 +239,7 @@ def create_oda_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def create_oda_instance_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, attach_to_id, attachment_type, owner, attachment_metadata, restricted_operations, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -314,7 +313,7 @@ def create_oda_instance_attachment(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_oda_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, retention_time, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -373,10 +372,10 @@ def delete_oda_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_oda_instance_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, attachment_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(attachment_id, six.string_types) and len(attachment_id.strip()) == 0: + if isinstance(attachment_id, str) and len(attachment_id.strip()) == 0: raise click.UsageError('Parameter --attachment-id cannot be whitespace or empty string') kwargs = {} @@ -428,7 +427,7 @@ def delete_oda_instance_attachment(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def get_oda_instance(ctx, from_json, oda_instance_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -452,10 +451,10 @@ def get_oda_instance(ctx, from_json, oda_instance_id): @cli_util.wrap_exceptions def get_oda_instance_attachment(ctx, from_json, oda_instance_id, attachment_id, include_owner_metadata): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(attachment_id, six.string_types) and len(attachment_id.strip()) == 0: + if isinstance(attachment_id, str) and len(attachment_id.strip()) == 0: raise click.UsageError('Parameter --attachment-id cannot be whitespace or empty string') kwargs = {} @@ -482,7 +481,7 @@ def get_oda_instance_attachment(ctx, from_json, oda_instance_id, attachment_id, @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -519,7 +518,7 @@ def list_oda_instance_attachments(ctx, from_json, all_pages, page_size, oda_inst if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -658,7 +657,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -723,7 +722,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -843,7 +842,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, oda @cli_util.wrap_exceptions def start_oda_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -898,7 +897,7 @@ def start_oda_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def stop_oda_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -958,7 +957,7 @@ def stop_oda_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_oda_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1036,10 +1035,10 @@ def update_oda_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_oda_instance_attachment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, attachment_id, attachment_metadata, restricted_operations, owner, freeform_tags, defined_tags, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(attachment_id, six.string_types) and len(attachment_id.strip()) == 0: + if isinstance(attachment_id, str) and len(attachment_id.strip()) == 0: raise click.UsageError('Parameter --attachment-id cannot be whitespace or empty string') if not force: if restricted_operations or owner or freeform_tags or defined_tags: diff --git a/services/oda/src/oci_cli_odapackage/generated/odapackage_cli.py b/services/oda/src/oci_cli_odapackage/generated/odapackage_cli.py index 16611ece9..4bc1e6c4a 100644 --- a/services/oda/src/oci_cli_odapackage/generated/odapackage_cli.py +++ b/services/oda/src/oci_cli_odapackage/generated/odapackage_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def imported_package_group(): @cli_util.wrap_exceptions def create_imported_package(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, current_package_id, oda_instance_id, parameter_values, freeform_tags, defined_tags): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -128,10 +127,10 @@ def create_imported_package(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_imported_package(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oda_instance_id, package_id, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(package_id, six.string_types) and len(package_id.strip()) == 0: + if isinstance(package_id, str) and len(package_id.strip()) == 0: raise click.UsageError('Parameter --package-id cannot be whitespace or empty string') kwargs = {} @@ -184,10 +183,10 @@ def delete_imported_package(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def get_imported_package(ctx, from_json, oda_instance_id, package_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(package_id, six.string_types) and len(package_id.strip()) == 0: + if isinstance(package_id, str) and len(package_id.strip()) == 0: raise click.UsageError('Parameter --package-id cannot be whitespace or empty string') kwargs = {} @@ -211,10 +210,10 @@ def get_imported_package(ctx, from_json, oda_instance_id, package_id): @cli_util.wrap_exceptions def get_package(ctx, from_json, oda_instance_id, package_id): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(package_id, six.string_types) and len(package_id.strip()) == 0: + if isinstance(package_id, str) and len(package_id.strip()) == 0: raise click.UsageError('Parameter --package-id cannot be whitespace or empty string') kwargs = {} @@ -255,7 +254,7 @@ def list_imported_packages(ctx, from_json, all_pages, page_size, oda_instance_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') kwargs = {} @@ -398,10 +397,10 @@ def list_packages(ctx, from_json, all_pages, page_size, oda_instance_id, resourc @cli_util.wrap_exceptions def update_imported_package(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, current_package_id, parameter_values, oda_instance_id, package_id, freeform_tags, defined_tags, is_replace_skills, if_match): - if isinstance(oda_instance_id, six.string_types) and len(oda_instance_id.strip()) == 0: + if isinstance(oda_instance_id, str) and len(oda_instance_id.strip()) == 0: raise click.UsageError('Parameter --oda-instance-id cannot be whitespace or empty string') - if isinstance(package_id, six.string_types) and len(package_id.strip()) == 0: + if isinstance(package_id, str) and len(package_id.strip()) == 0: raise click.UsageError('Parameter --package-id cannot be whitespace or empty string') if not force: if parameter_values or freeform_tags or defined_tags: diff --git a/services/onesubscription/src/oci_cli_billing_schedule/generated/billingschedule_cli.py b/services/onesubscription/src/oci_cli_billing_schedule/generated/billingschedule_cli.py index 3fd61afab..ae31e56ff 100644 --- a/services/onesubscription/src/oci_cli_billing_schedule/generated/billingschedule_cli.py +++ b/services/onesubscription/src/oci_cli_billing_schedule/generated/billingschedule_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/onesubscription/src/oci_cli_commitment/generated/commitment_cli.py b/services/onesubscription/src/oci_cli_commitment/generated/commitment_cli.py index 756a3e50f..c3530747d 100644 --- a/services/onesubscription/src/oci_cli_commitment/generated/commitment_cli.py +++ b/services/onesubscription/src/oci_cli_commitment/generated/commitment_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -41,7 +40,7 @@ def commitment_group(): @cli_util.wrap_exceptions def get_commitment(ctx, from_json, commitment_id): - if isinstance(commitment_id, six.string_types) and len(commitment_id.strip()) == 0: + if isinstance(commitment_id, str) and len(commitment_id.strip()) == 0: raise click.UsageError('Parameter --commitment-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/onesubscription/src/oci_cli_computed_usage/generated/computedusage_cli.py b/services/onesubscription/src/oci_cli_computed_usage/generated/computedusage_cli.py index f3999b810..8310db075 100644 --- a/services/onesubscription/src/oci_cli_computed_usage/generated/computedusage_cli.py +++ b/services/onesubscription/src/oci_cli_computed_usage/generated/computedusage_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -50,7 +49,7 @@ def computed_usage_group(): @cli_util.wrap_exceptions def get_computed_usage(ctx, from_json, computed_usage_id, compartment_id, fields): - if isinstance(computed_usage_id, six.string_types) and len(computed_usage_id.strip()) == 0: + if isinstance(computed_usage_id, str) and len(computed_usage_id.strip()) == 0: raise click.UsageError('Parameter --computed-usage-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/onesubscription/src/oci_cli_invoice_summary/generated/invoicesummary_cli.py b/services/onesubscription/src/oci_cli_invoice_summary/generated/invoicesummary_cli.py index f243b8a08..ec3480e0e 100644 --- a/services/onesubscription/src/oci_cli_invoice_summary/generated/invoicesummary_cli.py +++ b/services/onesubscription/src/oci_cli_invoice_summary/generated/invoicesummary_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/onesubscription/src/oci_cli_organization_subscription/generated/organizationsubscription_cli.py b/services/onesubscription/src/oci_cli_organization_subscription/generated/organizationsubscription_cli.py index 06cbf7dc3..f3f060dc9 100644 --- a/services/onesubscription/src/oci_cli_organization_subscription/generated/organizationsubscription_cli.py +++ b/services/onesubscription/src/oci_cli_organization_subscription/generated/organizationsubscription_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/onesubscription/src/oci_cli_ratecard/generated/ratecard_cli.py b/services/onesubscription/src/oci_cli_ratecard/generated/ratecard_cli.py index 74608a9e8..06d372204 100644 --- a/services/onesubscription/src/oci_cli_ratecard/generated/ratecard_cli.py +++ b/services/onesubscription/src/oci_cli_ratecard/generated/ratecard_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/onesubscription/src/oci_cli_subscribed_service/generated/subscribedservice_cli.py b/services/onesubscription/src/oci_cli_subscribed_service/generated/subscribedservice_cli.py index 3a5318054..02af4128e 100644 --- a/services/onesubscription/src/oci_cli_subscribed_service/generated/subscribedservice_cli.py +++ b/services/onesubscription/src/oci_cli_subscribed_service/generated/subscribedservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -42,7 +41,7 @@ def subscribed_service_group(): @cli_util.wrap_exceptions def get_subscribed_service(ctx, from_json, subscribed_service_id, fields): - if isinstance(subscribed_service_id, six.string_types) and len(subscribed_service_id.strip()) == 0: + if isinstance(subscribed_service_id, str) and len(subscribed_service_id.strip()) == 0: raise click.UsageError('Parameter --subscribed-service-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/onesubscription/src/oci_cli_subscription/generated/subscription_cli.py b/services/onesubscription/src/oci_cli_subscription/generated/subscription_cli.py index c1bbef9c3..c758cadf7 100644 --- a/services/onesubscription/src/oci_cli_subscription/generated/subscription_cli.py +++ b/services/onesubscription/src/oci_cli_subscription/generated/subscription_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/ons/src/oci_cli_notification_control_plane/generated/notificationcontrolplane_cli.py b/services/ons/src/oci_cli_notification_control_plane/generated/notificationcontrolplane_cli.py index 5184c6f2a..c832eac32 100644 --- a/services/ons/src/oci_cli_notification_control_plane/generated/notificationcontrolplane_cli.py +++ b/services/ons/src/oci_cli_notification_control_plane/generated/notificationcontrolplane_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -46,7 +45,7 @@ def notification_topic_group(): @cli_util.wrap_exceptions def change_topic_compartment(ctx, from_json, topic_id, compartment_id, if_match): - if isinstance(topic_id, six.string_types) and len(topic_id.strip()) == 0: + if isinstance(topic_id, str) and len(topic_id.strip()) == 0: raise click.UsageError('Parameter --topic-id cannot be whitespace or empty string') kwargs = {} @@ -128,7 +127,7 @@ def create_topic(ctx, from_json, name, compartment_id, description, freeform_tag @cli_util.wrap_exceptions def delete_topic(ctx, from_json, topic_id, if_match): - if isinstance(topic_id, six.string_types) and len(topic_id.strip()) == 0: + if isinstance(topic_id, str) and len(topic_id.strip()) == 0: raise click.UsageError('Parameter --topic-id cannot be whitespace or empty string') kwargs = {} @@ -154,7 +153,7 @@ def delete_topic(ctx, from_json, topic_id, if_match): @cli_util.wrap_exceptions def get_topic(ctx, from_json, topic_id): - if isinstance(topic_id, six.string_types) and len(topic_id.strip()) == 0: + if isinstance(topic_id, str) and len(topic_id.strip()) == 0: raise click.UsageError('Parameter --topic-id cannot be whitespace or empty string') kwargs = {} @@ -252,7 +251,7 @@ def list_topics(ctx, from_json, all_pages, page_size, compartment_id, id, name, @cli_util.wrap_exceptions def update_topic(ctx, from_json, force, topic_id, description, freeform_tags, defined_tags, if_match): - if isinstance(topic_id, six.string_types) and len(topic_id.strip()) == 0: + if isinstance(topic_id, str) and len(topic_id.strip()) == 0: raise click.UsageError('Parameter --topic-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/ons/src/oci_cli_notification_data_plane/generated/notificationdataplane_cli.py b/services/ons/src/oci_cli_notification_data_plane/generated/notificationdataplane_cli.py index 44f05e945..87a384d55 100644 --- a/services/ons/src/oci_cli_notification_data_plane/generated/notificationdataplane_cli.py +++ b/services/ons/src/oci_cli_notification_data_plane/generated/notificationdataplane_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,7 +52,7 @@ def notification_topic_group(): @cli_util.wrap_exceptions def change_subscription_compartment(ctx, from_json, subscription_id, compartment_id, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -168,7 +167,7 @@ def create_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_id, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -235,7 +234,7 @@ def delete_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_confirm_subscription(ctx, from_json, id, token, protocol): - if isinstance(id, six.string_types) and len(id.strip()) == 0: + if isinstance(id, str) and len(id.strip()) == 0: raise click.UsageError('Parameter --id cannot be whitespace or empty string') kwargs = {} @@ -261,7 +260,7 @@ def get_confirm_subscription(ctx, from_json, id, token, protocol): @cli_util.wrap_exceptions def get_subscription(ctx, from_json, subscription_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -291,7 +290,7 @@ def get_subscription(ctx, from_json, subscription_id): @cli_util.wrap_exceptions def get_unsubscription(ctx, from_json, id, token, protocol): - if isinstance(id, six.string_types) and len(id.strip()) == 0: + if isinstance(id, str) and len(id.strip()) == 0: raise click.UsageError('Parameter --id cannot be whitespace or empty string') kwargs = {} @@ -385,7 +384,7 @@ def list_subscriptions(ctx, from_json, all_pages, page_size, compartment_id, top @cli_util.wrap_exceptions def publish_message(ctx, from_json, topic_id, body, title, message_type): - if isinstance(topic_id, six.string_types) and len(topic_id.strip()) == 0: + if isinstance(topic_id, str) and len(topic_id.strip()) == 0: raise click.UsageError('Parameter --topic-id cannot be whitespace or empty string') kwargs = {} @@ -419,7 +418,7 @@ def publish_message(ctx, from_json, topic_id, body, title, message_type): @cli_util.wrap_exceptions def resend_subscription_confirmation(ctx, from_json, id): - if isinstance(id, six.string_types) and len(id.strip()) == 0: + if isinstance(id, str) and len(id.strip()) == 0: raise click.UsageError('Parameter --id cannot be whitespace or empty string') kwargs = {} @@ -452,7 +451,7 @@ def resend_subscription_confirmation(ctx, from_json, id): @cli_util.wrap_exceptions def update_subscription(ctx, from_json, force, subscription_id, delivery_policy, freeform_tags, defined_tags, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') if not force: if delivery_policy or freeform_tags or defined_tags: diff --git a/services/opa/src/oci_cli_opa_instance/generated/opainstance_cli.py b/services/opa/src/oci_cli_opa_instance/generated/opainstance_cli.py index f0ad176ac..dea10a8a1 100644 --- a/services/opa/src/oci_cli_opa_instance/generated/opainstance_cli.py +++ b/services/opa/src/oci_cli_opa_instance/generated/opainstance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -70,7 +69,7 @@ def opa_instance_collection_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -99,7 +98,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_opa_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opa_instance_id, compartment_id, if_match): - if isinstance(opa_instance_id, six.string_types) and len(opa_instance_id.strip()) == 0: + if isinstance(opa_instance_id, str) and len(opa_instance_id.strip()) == 0: raise click.UsageError('Parameter --opa-instance-id cannot be whitespace or empty string') kwargs = {} @@ -245,7 +244,7 @@ def create_opa_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_opa_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opa_instance_id, if_match): - if isinstance(opa_instance_id, six.string_types) and len(opa_instance_id.strip()) == 0: + if isinstance(opa_instance_id, str) and len(opa_instance_id.strip()) == 0: raise click.UsageError('Parameter --opa-instance-id cannot be whitespace or empty string') kwargs = {} @@ -296,7 +295,7 @@ def delete_opa_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_opa_instance(ctx, from_json, opa_instance_id): - if isinstance(opa_instance_id, six.string_types) and len(opa_instance_id.strip()) == 0: + if isinstance(opa_instance_id, str) and len(opa_instance_id.strip()) == 0: raise click.UsageError('Parameter --opa-instance-id cannot be whitespace or empty string') kwargs = {} @@ -318,7 +317,7 @@ def get_opa_instance(ctx, from_json, opa_instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -411,7 +410,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -468,7 +467,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -582,7 +581,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def start_opa_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opa_instance_id, if_match): - if isinstance(opa_instance_id, six.string_types) and len(opa_instance_id.strip()) == 0: + if isinstance(opa_instance_id, str) and len(opa_instance_id.strip()) == 0: raise click.UsageError('Parameter --opa-instance-id cannot be whitespace or empty string') kwargs = {} @@ -637,7 +636,7 @@ def start_opa_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def stop_opa_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opa_instance_id, if_match): - if isinstance(opa_instance_id, six.string_types) and len(opa_instance_id.strip()) == 0: + if isinstance(opa_instance_id, str) and len(opa_instance_id.strip()) == 0: raise click.UsageError('Parameter --opa-instance-id cannot be whitespace or empty string') kwargs = {} @@ -697,7 +696,7 @@ def stop_opa_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_opa_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, opa_instance_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(opa_instance_id, six.string_types) and len(opa_instance_id.strip()) == 0: + if isinstance(opa_instance_id, str) and len(opa_instance_id.strip()) == 0: raise click.UsageError('Parameter --opa-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/opensearch/src/oci_cli_opensearch_cluster/generated/opensearchcluster_cli.py b/services/opensearch/src/oci_cli_opensearch_cluster/generated/opensearchcluster_cli.py index 3b8d97793..003f87835 100644 --- a/services/opensearch/src/oci_cli_opensearch_cluster/generated/opensearchcluster_cli.py +++ b/services/opensearch/src/oci_cli_opensearch_cluster/generated/opensearchcluster_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -96,7 +95,7 @@ def work_request_log_entry_collection_group(): @cli_util.wrap_exceptions def backup_opensearch_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_id, compartment_id, display_name, if_match): - if isinstance(opensearch_cluster_id, six.string_types) and len(opensearch_cluster_id.strip()) == 0: + if isinstance(opensearch_cluster_id, str) and len(opensearch_cluster_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -158,7 +157,7 @@ def backup_opensearch_cluster(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def configure_outbound_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_id, inbound_cluster_ids, if_match): - if isinstance(opensearch_cluster_id, six.string_types) and len(opensearch_cluster_id.strip()) == 0: + if isinstance(opensearch_cluster_id, str) and len(opensearch_cluster_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -462,7 +461,7 @@ def create_opensearch_cluster(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_opensearch_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_id, if_match): - if isinstance(opensearch_cluster_id, six.string_types) and len(opensearch_cluster_id.strip()) == 0: + if isinstance(opensearch_cluster_id, str) and len(opensearch_cluster_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -513,7 +512,7 @@ def delete_opensearch_cluster(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_opensearch_cluster(ctx, from_json, opensearch_cluster_id): - if isinstance(opensearch_cluster_id, six.string_types) and len(opensearch_cluster_id.strip()) == 0: + if isinstance(opensearch_cluster_id, str) and len(opensearch_cluster_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -535,7 +534,7 @@ def get_opensearch_cluster(ctx, from_json, opensearch_cluster_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -693,7 +692,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -744,7 +743,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -849,7 +848,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def opensearch_cluster_restore(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_id, opensearch_cluster_backup_id, compartment_id, prefix, if_match): - if isinstance(opensearch_cluster_id, six.string_types) and len(opensearch_cluster_id.strip()) == 0: + if isinstance(opensearch_cluster_id, str) and len(opensearch_cluster_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -921,7 +920,7 @@ def opensearch_cluster_restore(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def resize_opensearch_cluster_horizontal(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_id, master_node_count, data_node_count, opendashboard_node_count, search_node_count, coordinator_node_count, ml_node_count, freeform_tags, defined_tags, if_match): - if isinstance(opensearch_cluster_id, six.string_types) and len(opensearch_cluster_id.strip()) == 0: + if isinstance(opensearch_cluster_id, str) and len(opensearch_cluster_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1027,7 +1026,7 @@ def resize_opensearch_cluster_horizontal(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def resize_opensearch_cluster_vertical(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_id, master_node_host_ocpu_count, master_node_host_memory_gb, master_node_host_shape, data_node_host_ocpu_count, data_node_host_memory_gb, data_node_storage_gb, data_node_host_shape, opendashboard_node_host_ocpu_count, opendashboard_node_host_memory_gb, opendashboard_node_host_shape, search_node_host_shape, search_node_host_ocpu_count, search_node_host_memory_gb, search_node_storage_gb, coordinator_node_host_shape, coordinator_node_host_ocpu_count, coordinator_node_host_memory_gb, ml_node_host_shape, ml_node_host_ocpu_count, ml_node_host_memory_gb, ml_node_storage_gb, freeform_tags, defined_tags, if_match): - if isinstance(opensearch_cluster_id, six.string_types) and len(opensearch_cluster_id.strip()) == 0: + if isinstance(opensearch_cluster_id, str) and len(opensearch_cluster_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -1174,7 +1173,7 @@ def resize_opensearch_cluster_vertical(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_opensearch_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_id, display_name, software_version, security_mode, security_master_user_name, security_master_user_password_hash, security_saml_config, backup_policy, nsg_id, reverse_connection_endpoint_customer_ips, outbound_cluster_config, maintenance_details, load_balancer_config, certificate_config, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(opensearch_cluster_id, six.string_types) and len(opensearch_cluster_id.strip()) == 0: + if isinstance(opensearch_cluster_id, str) and len(opensearch_cluster_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-id cannot be whitespace or empty string') if not force: if security_saml_config or backup_policy or reverse_connection_endpoint_customer_ips or outbound_cluster_config or maintenance_details or load_balancer_config or certificate_config or freeform_tags or defined_tags or security_attributes: @@ -1293,7 +1292,7 @@ def update_opensearch_cluster(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def upgrade_open_search_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_id, original_cluster_display_name, desired_software_version, upgrade_type, is_clone, freeform_tags, defined_tags, system_tags, security_attributes, if_match): - if isinstance(opensearch_cluster_id, six.string_types) and len(opensearch_cluster_id.strip()) == 0: + if isinstance(opensearch_cluster_id, str) and len(opensearch_cluster_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/opensearch/src/oci_cli_opensearch_cluster_backup/generated/opensearchclusterbackup_cli.py b/services/opensearch/src/oci_cli_opensearch_cluster_backup/generated/opensearchclusterbackup_cli.py index 2d01ff377..30ccf5d27 100644 --- a/services/opensearch/src/oci_cli_opensearch_cluster_backup/generated/opensearchclusterbackup_cli.py +++ b/services/opensearch/src/oci_cli_opensearch_cluster_backup/generated/opensearchclusterbackup_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,7 +52,7 @@ def opensearch_cluster_backup_collection_group(): @cli_util.wrap_exceptions def delete_opensearch_cluster_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_backup_id, if_match): - if isinstance(opensearch_cluster_backup_id, six.string_types) and len(opensearch_cluster_backup_id.strip()) == 0: + if isinstance(opensearch_cluster_backup_id, str) and len(opensearch_cluster_backup_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-backup-id cannot be whitespace or empty string') kwargs = {} @@ -104,7 +103,7 @@ def delete_opensearch_cluster_backup(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def get_opensearch_cluster_backup(ctx, from_json, opensearch_cluster_backup_id): - if isinstance(opensearch_cluster_backup_id, six.string_types) and len(opensearch_cluster_backup_id.strip()) == 0: + if isinstance(opensearch_cluster_backup_id, str) and len(opensearch_cluster_backup_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-backup-id cannot be whitespace or empty string') kwargs = {} @@ -200,7 +199,7 @@ def list_opensearch_cluster_backups(ctx, from_json, all_pages, page_size, compar @cli_util.wrap_exceptions def update_opensearch_cluster_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_backup_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(opensearch_cluster_backup_id, six.string_types) and len(opensearch_cluster_backup_id.strip()) == 0: + if isinstance(opensearch_cluster_backup_id, str) and len(opensearch_cluster_backup_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-backup-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/opensearch/src/oci_cli_opensearch_cluster_pipeline/generated/opensearchclusterpipeline_cli.py b/services/opensearch/src/oci_cli_opensearch_cluster_pipeline/generated/opensearchclusterpipeline_cli.py index 18e16bdf2..aa9edcf27 100644 --- a/services/opensearch/src/oci_cli_opensearch_cluster_pipeline/generated/opensearchclusterpipeline_cli.py +++ b/services/opensearch/src/oci_cli_opensearch_cluster_pipeline/generated/opensearchclusterpipeline_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -159,7 +158,7 @@ def create_opensearch_cluster_pipeline(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_opensearch_cluster_pipeline(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_pipeline_id, if_match): - if isinstance(opensearch_cluster_pipeline_id, six.string_types) and len(opensearch_cluster_pipeline_id.strip()) == 0: + if isinstance(opensearch_cluster_pipeline_id, str) and len(opensearch_cluster_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -210,7 +209,7 @@ def delete_opensearch_cluster_pipeline(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def get_opensearch_cluster_pipeline(ctx, from_json, opensearch_cluster_pipeline_id): - if isinstance(opensearch_cluster_pipeline_id, six.string_types) and len(opensearch_cluster_pipeline_id.strip()) == 0: + if isinstance(opensearch_cluster_pipeline_id, str) and len(opensearch_cluster_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-pipeline-id cannot be whitespace or empty string') kwargs = {} @@ -321,7 +320,7 @@ def list_opensearch_cluster_pipelines(ctx, from_json, all_pages, page_size, comp @cli_util.wrap_exceptions def update_opensearch_cluster_pipeline(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, opensearch_cluster_pipeline_id, display_name, ocpu_count, memory_gb, node_count, node_shape, pipeline_configuration_body, data_prepper_configuration_body, vcn_id, subnet_id, vcn_compartment_id, subnet_compartment_id, nsg_id, reverse_connection_endpoints, freeform_tags, defined_tags, if_match, opc_dry_run): - if isinstance(opensearch_cluster_pipeline_id, six.string_types) and len(opensearch_cluster_pipeline_id.strip()) == 0: + if isinstance(opensearch_cluster_pipeline_id, str) and len(opensearch_cluster_pipeline_id.strip()) == 0: raise click.UsageError('Parameter --opensearch-cluster-pipeline-id cannot be whitespace or empty string') if not force: if reverse_connection_endpoints or freeform_tags or defined_tags: diff --git a/services/operator_access_control/src/oci_cli_access_requests/generated/accessrequests_cli.py b/services/operator_access_control/src/oci_cli_access_requests/generated/accessrequests_cli.py index e9d51fb91..20c1ed801 100644 --- a/services/operator_access_control/src/oci_cli_access_requests/generated/accessrequests_cli.py +++ b/services/operator_access_control/src/oci_cli_access_requests/generated/accessrequests_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -56,7 +55,7 @@ def access_request_group(): @cli_util.wrap_exceptions def approve_access_request(ctx, from_json, access_request_id, approver_comment, audit_type, additional_message, time_of_user_creation, if_match): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -96,7 +95,7 @@ def approve_access_request(ctx, from_json, access_request_id, approver_comment, @cli_util.wrap_exceptions def get_access_request(ctx, from_json, access_request_id): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -119,7 +118,7 @@ def get_access_request(ctx, from_json, access_request_id): @cli_util.wrap_exceptions def get_audit_log_report(ctx, from_json, access_request_id, enable_process_tree): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -148,7 +147,7 @@ def get_audit_log_report(ctx, from_json, access_request_id, enable_process_tree) @cli_util.wrap_exceptions def interaction_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, access_request_id, more_info_details, if_match): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -209,7 +208,7 @@ def list_access_request_histories(ctx, from_json, all_pages, page_size, access_r if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -332,7 +331,7 @@ def list_interactions(ctx, from_json, all_pages, page_size, access_request_id, l if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -378,7 +377,7 @@ def list_interactions(ctx, from_json, all_pages, page_size, access_request_id, l @cli_util.wrap_exceptions def reject_access_request(ctx, from_json, access_request_id, approver_comment, if_match): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -414,7 +413,7 @@ def reject_access_request(ctx, from_json, access_request_id, approver_comment, i @cli_util.wrap_exceptions def review_access_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, access_request_id, approver_comment, if_match): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} @@ -470,7 +469,7 @@ def review_access_request(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def revoke_access_request(ctx, from_json, access_request_id, approver_comment, if_match): - if isinstance(access_request_id, six.string_types) and len(access_request_id.strip()) == 0: + if isinstance(access_request_id, str) and len(access_request_id.strip()) == 0: raise click.UsageError('Parameter --access-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/operator_access_control/src/oci_cli_operator_actions/generated/operatoractions_cli.py b/services/operator_access_control/src/oci_cli_operator_actions/generated/operatoractions_cli.py index 9e0d40e27..f0052cedb 100644 --- a/services/operator_access_control/src/oci_cli_operator_actions/generated/operatoractions_cli.py +++ b/services/operator_access_control/src/oci_cli_operator_actions/generated/operatoractions_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -46,7 +45,7 @@ def operator_action_group(): @cli_util.wrap_exceptions def get_operator_action(ctx, from_json, operator_action_id): - if isinstance(operator_action_id, six.string_types) and len(operator_action_id.strip()) == 0: + if isinstance(operator_action_id, str) and len(operator_action_id.strip()) == 0: raise click.UsageError('Parameter --operator-action-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/operator_access_control/src/oci_cli_operator_control/generated/operatorcontrol_cli.py b/services/operator_access_control/src/oci_cli_operator_control/generated/operatorcontrol_cli.py index ae43ce72b..cdd8e9704 100644 --- a/services/operator_access_control/src/oci_cli_operator_control/generated/operatorcontrol_cli.py +++ b/services/operator_access_control/src/oci_cli_operator_control/generated/operatorcontrol_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -44,7 +43,7 @@ def operator_control_group(): @cli_util.wrap_exceptions def change_operator_control_compartment(ctx, from_json, operator_control_id, compartment_id, if_match): - if isinstance(operator_control_id, six.string_types) and len(operator_control_id.strip()) == 0: + if isinstance(operator_control_id, str) and len(operator_control_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-id cannot be whitespace or empty string') kwargs = {} @@ -174,7 +173,7 @@ def create_operator_control(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_operator_control(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, operator_control_id, description, if_match): - if isinstance(operator_control_id, six.string_types) and len(operator_control_id.strip()) == 0: + if isinstance(operator_control_id, str) and len(operator_control_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-id cannot be whitespace or empty string') kwargs = {} @@ -235,7 +234,7 @@ def delete_operator_control(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def get_operator_control(ctx, from_json, operator_control_id): - if isinstance(operator_control_id, six.string_types) and len(operator_control_id.strip()) == 0: + if isinstance(operator_control_id, str) and len(operator_control_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-id cannot be whitespace or empty string') kwargs = {} @@ -337,7 +336,7 @@ def list_operator_controls(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def update_operator_control(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, operator_control_id, operator_control_name, approver_groups_list, is_fully_pre_approved, description, approvers_list, pre_approved_op_action_list, notification_topic_id, email_id_list, number_of_approvers, system_message, freeform_tags, defined_tags, if_match): - if isinstance(operator_control_id, six.string_types) and len(operator_control_id.strip()) == 0: + if isinstance(operator_control_id, str) and len(operator_control_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-id cannot be whitespace or empty string') if not force: if approvers_list or approver_groups_list or pre_approved_op_action_list or email_id_list or freeform_tags or defined_tags: diff --git a/services/operator_access_control/src/oci_cli_operator_control_assignment/generated/operatorcontrolassignment_cli.py b/services/operator_access_control/src/oci_cli_operator_control_assignment/generated/operatorcontrolassignment_cli.py index 53a54a2d3..ea3c84543 100644 --- a/services/operator_access_control/src/oci_cli_operator_control_assignment/generated/operatorcontrolassignment_cli.py +++ b/services/operator_access_control/src/oci_cli_operator_control_assignment/generated/operatorcontrolassignment_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -44,7 +43,7 @@ def operator_control_assignment_group(): @cli_util.wrap_exceptions def change_operator_control_assignment_compartment(ctx, from_json, operator_control_assignment_id, compartment_id, if_match): - if isinstance(operator_control_assignment_id, six.string_types) and len(operator_control_assignment_id.strip()) == 0: + if isinstance(operator_control_assignment_id, str) and len(operator_control_assignment_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -186,7 +185,7 @@ def create_operator_control_assignment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_operator_control_assignment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, operator_control_assignment_id, description, if_match): - if isinstance(operator_control_assignment_id, six.string_types) and len(operator_control_assignment_id.strip()) == 0: + if isinstance(operator_control_assignment_id, str) and len(operator_control_assignment_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -247,7 +246,7 @@ def delete_operator_control_assignment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def get_assignment_validation_status(ctx, from_json, operator_control_assignment_id): - if isinstance(operator_control_assignment_id, six.string_types) and len(operator_control_assignment_id.strip()) == 0: + if isinstance(operator_control_assignment_id, str) and len(operator_control_assignment_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -269,7 +268,7 @@ def get_assignment_validation_status(ctx, from_json, operator_control_assignment @cli_util.wrap_exceptions def get_operator_control_assignment(ctx, from_json, operator_control_assignment_id): - if isinstance(operator_control_assignment_id, six.string_types) and len(operator_control_assignment_id.strip()) == 0: + if isinstance(operator_control_assignment_id, str) and len(operator_control_assignment_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-assignment-id cannot be whitespace or empty string') kwargs = {} @@ -374,7 +373,7 @@ def list_operator_control_assignments(ctx, from_json, all_pages, page_size, comp @cli_util.wrap_exceptions def update_operator_control_assignment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, operator_control_assignment_id, is_enforced_always, time_assignment_from, time_assignment_to, comment, is_log_forwarded, remote_syslog_server_address, remote_syslog_server_port, remote_syslog_server_ca_cert, is_hypervisor_log_forwarded, is_auto_approve_during_maintenance, freeform_tags, defined_tags, if_match): - if isinstance(operator_control_assignment_id, six.string_types) and len(operator_control_assignment_id.strip()) == 0: + if isinstance(operator_control_assignment_id, str) and len(operator_control_assignment_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-assignment-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -465,7 +464,7 @@ def update_operator_control_assignment(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def validate_operator_assignment(ctx, from_json, operator_control_assignment_id, action_name, if_match): - if isinstance(operator_control_assignment_id, six.string_types) and len(operator_control_assignment_id.strip()) == 0: + if isinstance(operator_control_assignment_id, str) and len(operator_control_assignment_id.strip()) == 0: raise click.UsageError('Parameter --operator-control-assignment-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/opsi/src/oci_cli_operations_insights/generated/operationsinsights_cli.py b/services/opsi/src/oci_cli_operations_insights/generated/operationsinsights_cli.py index 857531b5b..94e423f22 100644 --- a/services/opsi/src/oci_cli_operations_insights/generated/operationsinsights_cli.py +++ b/services/opsi/src/oci_cli_operations_insights/generated/operationsinsights_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -156,7 +155,7 @@ def work_requests_group(): @cli_util.wrap_exceptions def add_exadata_insight_members(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, entity_source, exadata_insight_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -219,7 +218,7 @@ def add_exadata_insight_members(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def add_exadata_insight_members_add_pe_comanaged_exadata_insight_members_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, member_entity_details, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -286,7 +285,7 @@ def add_exadata_insight_members_add_pe_comanaged_exadata_insight_members_details @cli_util.wrap_exceptions def add_exadata_insight_members_add_em_managed_external_exadata_insight_members_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, member_entity_details, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -353,7 +352,7 @@ def add_exadata_insight_members_add_em_managed_external_exadata_insight_members_ @cli_util.wrap_exceptions def add_exadata_insight_members_add_macs_managed_cloud_exadata_insight_members_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, member_entity_details, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -420,7 +419,7 @@ def add_exadata_insight_members_add_macs_managed_cloud_exadata_insight_members_d @cli_util.wrap_exceptions def change_autonomous_database_insight_advanced_features(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, credential_details, database_insight_id, opsi_private_endpoint_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -488,7 +487,7 @@ def change_autonomous_database_insight_advanced_features(ctx, from_json, wait_fo @cli_util.wrap_exceptions def change_autonomous_database_insight_advanced_features_credential_by_named_credentials(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, database_insight_id, opsi_private_endpoint_id, if_match, credential_details_credential_source_name, credential_details_named_credential_id): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -563,7 +562,7 @@ def change_autonomous_database_insight_advanced_features_credential_by_named_cre @cli_util.wrap_exceptions def change_autonomous_database_insight_advanced_features_credentials_by_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, database_insight_id, opsi_private_endpoint_id, if_match, credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -639,7 +638,7 @@ def change_autonomous_database_insight_advanced_features_credentials_by_source(c @cli_util.wrap_exceptions def change_autonomous_database_insight_advanced_features_credential_by_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, database_insight_id, opsi_private_endpoint_id, if_match, credential_details_credential_source_name, credential_details_user_name, credential_details_password_secret_id, credential_details_wallet_secret_id, credential_details_role): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -723,7 +722,7 @@ def change_autonomous_database_insight_advanced_features_credential_by_vault(ctx @cli_util.wrap_exceptions def change_autonomous_database_insight_advanced_features_credential_by_iam(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, database_insight_id, opsi_private_endpoint_id, if_match, credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -793,7 +792,7 @@ def change_autonomous_database_insight_advanced_features_credential_by_iam(ctx, @cli_util.wrap_exceptions def change_awr_hub_source_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, awr_hub_source_id, compartment_id, if_match): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') kwargs = {} @@ -854,7 +853,7 @@ def change_awr_hub_source_compartment(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def change_chargeback_plan_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, chargebackplan_id, compartment_id, if_match): - if isinstance(chargebackplan_id, six.string_types) and len(chargebackplan_id.strip()) == 0: + if isinstance(chargebackplan_id, str) and len(chargebackplan_id.strip()) == 0: raise click.UsageError('Parameter --chargebackplan-id cannot be whitespace or empty string') kwargs = {} @@ -915,7 +914,7 @@ def change_chargeback_plan_compartment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def change_database_insight_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, compartment_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -976,7 +975,7 @@ def change_database_insight_compartment(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def change_enterprise_manager_bridge_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, enterprise_manager_bridge_id, compartment_id, if_match): - if isinstance(enterprise_manager_bridge_id, six.string_types) and len(enterprise_manager_bridge_id.strip()) == 0: + if isinstance(enterprise_manager_bridge_id, str) and len(enterprise_manager_bridge_id.strip()) == 0: raise click.UsageError('Parameter --enterprise-manager-bridge-id cannot be whitespace or empty string') kwargs = {} @@ -1037,7 +1036,7 @@ def change_enterprise_manager_bridge_compartment(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_exadata_insight_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, compartment_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1098,7 +1097,7 @@ def change_exadata_insight_compartment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def change_external_mysql_database_insight_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, database_connector_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1159,7 +1158,7 @@ def change_external_mysql_database_insight_connection(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def change_host_insight_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, compartment_id, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1222,7 +1221,7 @@ def change_host_insight_compartment(ctx, from_json, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def change_macs_managed_autonomous_database_insight_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, connection_credential_details, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1288,7 +1287,7 @@ def change_macs_managed_autonomous_database_insight_connection(ctx, from_json, w @cli_util.wrap_exceptions def change_macs_managed_autonomous_database_insight_connection_credential_by_named_credentials(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, if_match, connection_credential_details_credential_source_name, connection_credential_details_named_credential_id): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1361,7 +1360,7 @@ def change_macs_managed_autonomous_database_insight_connection_credential_by_nam @cli_util.wrap_exceptions def change_macs_managed_autonomous_database_insight_connection_credentials_by_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, if_match, connection_credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1435,7 +1434,7 @@ def change_macs_managed_autonomous_database_insight_connection_credentials_by_so @cli_util.wrap_exceptions def change_macs_managed_autonomous_database_insight_connection_credential_by_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, if_match, connection_credential_details_credential_source_name, connection_credential_details_user_name, connection_credential_details_password_secret_id, connection_credential_details_wallet_secret_id, connection_credential_details_role): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1517,7 +1516,7 @@ def change_macs_managed_autonomous_database_insight_connection_credential_by_vau @cli_util.wrap_exceptions def change_macs_managed_autonomous_database_insight_connection_credential_by_iam(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, if_match, connection_credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1587,7 +1586,7 @@ def change_macs_managed_autonomous_database_insight_connection_credential_by_iam @cli_util.wrap_exceptions def change_macs_managed_cloud_database_insight_connection(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, connection_credential_details, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1653,7 +1652,7 @@ def change_macs_managed_cloud_database_insight_connection(ctx, from_json, wait_f @cli_util.wrap_exceptions def change_macs_managed_cloud_database_insight_connection_credential_by_named_credentials(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, if_match, connection_credential_details_credential_source_name, connection_credential_details_named_credential_id): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1726,7 +1725,7 @@ def change_macs_managed_cloud_database_insight_connection_credential_by_named_cr @cli_util.wrap_exceptions def change_macs_managed_cloud_database_insight_connection_credentials_by_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, if_match, connection_credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1800,7 +1799,7 @@ def change_macs_managed_cloud_database_insight_connection_credentials_by_source( @cli_util.wrap_exceptions def change_macs_managed_cloud_database_insight_connection_credential_by_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, if_match, connection_credential_details_credential_source_name, connection_credential_details_user_name, connection_credential_details_password_secret_id, connection_credential_details_wallet_secret_id, connection_credential_details_role): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1882,7 +1881,7 @@ def change_macs_managed_cloud_database_insight_connection_credential_by_vault(ct @cli_util.wrap_exceptions def change_macs_managed_cloud_database_insight_connection_credential_by_iam(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, management_agent_id, connection_details, if_match, connection_credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -1950,7 +1949,7 @@ def change_macs_managed_cloud_database_insight_connection_credential_by_iam(ctx, @cli_util.wrap_exceptions def change_news_report_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, news_report_id, compartment_id, if_match): - if isinstance(news_report_id, six.string_types) and len(news_report_id.strip()) == 0: + if isinstance(news_report_id, str) and len(news_report_id.strip()) == 0: raise click.UsageError('Parameter --news-report-id cannot be whitespace or empty string') kwargs = {} @@ -2011,7 +2010,7 @@ def change_news_report_compartment(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def change_operations_insights_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, operations_insights_private_endpoint_id, compartment_id, if_match): - if isinstance(operations_insights_private_endpoint_id, six.string_types) and len(operations_insights_private_endpoint_id.strip()) == 0: + if isinstance(operations_insights_private_endpoint_id, str) and len(operations_insights_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2074,7 +2073,7 @@ def change_operations_insights_private_endpoint_compartment(ctx, from_json, wait @cli_util.wrap_exceptions def change_operations_insights_warehouse_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, operations_insights_warehouse_id, compartment_id, if_match): - if isinstance(operations_insights_warehouse_id, six.string_types) and len(operations_insights_warehouse_id.strip()) == 0: + if isinstance(operations_insights_warehouse_id, str) and len(operations_insights_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -2135,7 +2134,7 @@ def change_operations_insights_warehouse_compartment(ctx, from_json, wait_for_st @cli_util.wrap_exceptions def change_opsi_configuration_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opsi_configuration_id, compartment_id, if_match): - if isinstance(opsi_configuration_id, six.string_types) and len(opsi_configuration_id.strip()) == 0: + if isinstance(opsi_configuration_id, str) and len(opsi_configuration_id.strip()) == 0: raise click.UsageError('Parameter --opsi-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -2199,7 +2198,7 @@ def change_opsi_configuration_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_pe_comanaged_database_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, service_name, credential_details, opsi_private_endpoint_id, connection_details, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -2269,7 +2268,7 @@ def change_pe_comanaged_database_insight(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def change_pe_comanaged_database_insight_credential_by_named_credentials(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, service_name, opsi_private_endpoint_id, connection_details, if_match, credential_details_credential_source_name, credential_details_named_credential_id): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -2346,7 +2345,7 @@ def change_pe_comanaged_database_insight_credential_by_named_credentials(ctx, fr @cli_util.wrap_exceptions def change_pe_comanaged_database_insight_credentials_by_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, service_name, opsi_private_endpoint_id, connection_details, if_match, credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -2424,7 +2423,7 @@ def change_pe_comanaged_database_insight_credentials_by_source(ctx, from_json, w @cli_util.wrap_exceptions def change_pe_comanaged_database_insight_credential_by_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, service_name, opsi_private_endpoint_id, connection_details, if_match, credential_details_credential_source_name, credential_details_user_name, credential_details_password_secret_id, credential_details_wallet_secret_id, credential_details_role): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -2510,7 +2509,7 @@ def change_pe_comanaged_database_insight_credential_by_vault(ctx, from_json, wai @cli_util.wrap_exceptions def change_pe_comanaged_database_insight_credential_by_iam(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, service_name, opsi_private_endpoint_id, connection_details, if_match, credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -4676,7 +4675,7 @@ def create_opsi_configuration_create_opsi_ux_configuration_details(ctx, from_jso @cli_util.wrap_exceptions def delete_awr_hub(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, awr_hub_id, if_match): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -4730,10 +4729,10 @@ def delete_awr_hub(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_awr_hub_object(ctx, from_json, awr_hub_source_id, object_name, if_match): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -4763,7 +4762,7 @@ def delete_awr_hub_object(ctx, from_json, awr_hub_source_id, object_name, if_mat @cli_util.wrap_exceptions def delete_awr_hub_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, awr_hub_source_id, if_match): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') kwargs = {} @@ -4819,7 +4818,7 @@ def delete_awr_hub_source(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_chargeback_plan(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, chargebackplan_id, if_match): - if isinstance(chargebackplan_id, six.string_types) and len(chargebackplan_id.strip()) == 0: + if isinstance(chargebackplan_id, str) and len(chargebackplan_id.strip()) == 0: raise click.UsageError('Parameter --chargebackplan-id cannot be whitespace or empty string') kwargs = {} @@ -4877,7 +4876,7 @@ def delete_chargeback_plan(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_chargeback_plan_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, chargeback_plan_report_id, id, resource_type, if_match): - if isinstance(chargeback_plan_report_id, six.string_types) and len(chargeback_plan_report_id.strip()) == 0: + if isinstance(chargeback_plan_report_id, str) and len(chargeback_plan_report_id.strip()) == 0: raise click.UsageError('Parameter --chargeback-plan-report-id cannot be whitespace or empty string') kwargs = {} @@ -4935,7 +4934,7 @@ def delete_chargeback_plan_report(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_database_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -4991,7 +4990,7 @@ def delete_database_insight(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_enterprise_manager_bridge(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, enterprise_manager_bridge_id, if_match): - if isinstance(enterprise_manager_bridge_id, six.string_types) and len(enterprise_manager_bridge_id.strip()) == 0: + if isinstance(enterprise_manager_bridge_id, str) and len(enterprise_manager_bridge_id.strip()) == 0: raise click.UsageError('Parameter --enterprise-manager-bridge-id cannot be whitespace or empty string') kwargs = {} @@ -5047,7 +5046,7 @@ def delete_enterprise_manager_bridge(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def delete_exadata_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -5103,7 +5102,7 @@ def delete_exadata_insight(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_host_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') kwargs = {} @@ -5159,7 +5158,7 @@ def delete_host_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_news_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, news_report_id, if_match): - if isinstance(news_report_id, six.string_types) and len(news_report_id.strip()) == 0: + if isinstance(news_report_id, str) and len(news_report_id.strip()) == 0: raise click.UsageError('Parameter --news-report-id cannot be whitespace or empty string') kwargs = {} @@ -5215,7 +5214,7 @@ def delete_news_report(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_operations_insights_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, operations_insights_private_endpoint_id, if_match): - if isinstance(operations_insights_private_endpoint_id, six.string_types) and len(operations_insights_private_endpoint_id.strip()) == 0: + if isinstance(operations_insights_private_endpoint_id, str) and len(operations_insights_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -5271,7 +5270,7 @@ def delete_operations_insights_private_endpoint(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def delete_operations_insights_warehouse(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, operations_insights_warehouse_id, if_match): - if isinstance(operations_insights_warehouse_id, six.string_types) and len(operations_insights_warehouse_id.strip()) == 0: + if isinstance(operations_insights_warehouse_id, str) and len(operations_insights_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -5327,7 +5326,7 @@ def delete_operations_insights_warehouse(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def delete_operations_insights_warehouse_user(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, operations_insights_warehouse_user_id, if_match): - if isinstance(operations_insights_warehouse_user_id, six.string_types) and len(operations_insights_warehouse_user_id.strip()) == 0: + if isinstance(operations_insights_warehouse_user_id, str) and len(operations_insights_warehouse_user_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-user-id cannot be whitespace or empty string') kwargs = {} @@ -5383,7 +5382,7 @@ def delete_operations_insights_warehouse_user(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def delete_opsi_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, opsi_configuration_id, if_match): - if isinstance(opsi_configuration_id, six.string_types) and len(opsi_configuration_id.strip()) == 0: + if isinstance(opsi_configuration_id, str) and len(opsi_configuration_id.strip()) == 0: raise click.UsageError('Parameter --opsi-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -5438,7 +5437,7 @@ def delete_opsi_configuration(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def disable_autonomous_database_insight_advanced_features(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -5493,7 +5492,7 @@ def disable_autonomous_database_insight_advanced_features(ctx, from_json, wait_f @cli_util.wrap_exceptions def disable_awr_hub_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, awr_hub_source_id, if_match): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') kwargs = {} @@ -5548,7 +5547,7 @@ def disable_awr_hub_source(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def disable_database_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -5603,7 +5602,7 @@ def disable_database_insight(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def disable_exadata_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -5658,7 +5657,7 @@ def disable_exadata_insight(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def disable_host_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') kwargs = {} @@ -5713,7 +5712,7 @@ def disable_host_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def disable_plan_exadata_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -5766,7 +5765,7 @@ def disable_plan_exadata_insight(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def download_operations_insights_warehouse_wallet(ctx, from_json, file, operations_insights_warehouse_id, operations_insights_warehouse_wallet_password): - if isinstance(operations_insights_warehouse_id, six.string_types) and len(operations_insights_warehouse_id.strip()) == 0: + if isinstance(operations_insights_warehouse_id, str) and len(operations_insights_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -5822,7 +5821,7 @@ def download_operations_insights_warehouse_wallet(ctx, from_json, file, operatio @cli_util.wrap_exceptions def enable_autonomous_database_insight_advanced_features(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, credential_details, database_insight_id, opsi_private_endpoint_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -5890,7 +5889,7 @@ def enable_autonomous_database_insight_advanced_features(ctx, from_json, wait_fo @cli_util.wrap_exceptions def enable_autonomous_database_insight_advanced_features_credential_by_named_credentials(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, database_insight_id, opsi_private_endpoint_id, if_match, credential_details_credential_source_name, credential_details_named_credential_id): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -5965,7 +5964,7 @@ def enable_autonomous_database_insight_advanced_features_credential_by_named_cre @cli_util.wrap_exceptions def enable_autonomous_database_insight_advanced_features_credentials_by_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, database_insight_id, opsi_private_endpoint_id, if_match, credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6041,7 +6040,7 @@ def enable_autonomous_database_insight_advanced_features_credentials_by_source(c @cli_util.wrap_exceptions def enable_autonomous_database_insight_advanced_features_credential_by_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, database_insight_id, opsi_private_endpoint_id, if_match, credential_details_credential_source_name, credential_details_user_name, credential_details_password_secret_id, credential_details_wallet_secret_id, credential_details_role): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6125,7 +6124,7 @@ def enable_autonomous_database_insight_advanced_features_credential_by_vault(ctx @cli_util.wrap_exceptions def enable_autonomous_database_insight_advanced_features_credential_by_iam(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connection_details, database_insight_id, opsi_private_endpoint_id, if_match, credential_details_credential_source_name): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6194,7 +6193,7 @@ def enable_autonomous_database_insight_advanced_features_credential_by_iam(ctx, @cli_util.wrap_exceptions def enable_awr_hub_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, awr_hub_source_id, if_match): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') kwargs = {} @@ -6250,7 +6249,7 @@ def enable_awr_hub_source(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def enable_database_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, entity_source, database_insight_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6310,7 +6309,7 @@ def enable_database_insight(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def enable_database_insight_enable_em_managed_external_database_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6371,7 +6370,7 @@ def enable_database_insight_enable_em_managed_external_database_insight_details( @cli_util.wrap_exceptions def enable_database_insight_enable_mds_my_sql_database_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6439,7 +6438,7 @@ def enable_database_insight_enable_mds_my_sql_database_insight_details(ctx, from @cli_util.wrap_exceptions def enable_database_insight_enable_macs_managed_autonomous_database_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, management_agent_id, connection_details, connection_credential_details, database_insight_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6514,7 +6513,7 @@ def enable_database_insight_enable_macs_managed_autonomous_database_insight_deta @cli_util.wrap_exceptions def enable_database_insight_enable_external_mysql_database_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, database_connector_id, database_insight_id, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6584,7 +6583,7 @@ def enable_database_insight_enable_external_mysql_database_insight_details(ctx, @cli_util.wrap_exceptions def enable_database_insight_enable_autonomous_database_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, is_advanced_features_enabled, database_insight_id, database_resource_type, connection_details, credential_details, opsi_private_endpoint_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6674,7 +6673,7 @@ def enable_database_insight_enable_autonomous_database_insight_details(ctx, from @cli_util.wrap_exceptions def enable_database_insight_enable_macs_managed_cloud_database_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, management_agent_id, connection_details, connection_credential_details, database_insight_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6756,7 +6755,7 @@ def enable_database_insight_enable_macs_managed_cloud_database_insight_details(c @cli_util.wrap_exceptions def enable_database_insight_enable_pe_comanaged_database_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, opsi_private_endpoint_id, service_name, credential_details, database_insight_id, connection_details, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6834,7 +6833,7 @@ def enable_database_insight_enable_pe_comanaged_database_insight_details(ctx, fr @cli_util.wrap_exceptions def enable_exadata_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, entity_source, exadata_insight_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6894,7 +6893,7 @@ def enable_exadata_insight(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def enable_exadata_insight_enable_macs_managed_cloud_exadata_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -6955,7 +6954,7 @@ def enable_exadata_insight_enable_macs_managed_cloud_exadata_insight_details(ctx @cli_util.wrap_exceptions def enable_exadata_insight_enable_pe_comanaged_exadata_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7016,7 +7015,7 @@ def enable_exadata_insight_enable_pe_comanaged_exadata_insight_details(ctx, from @cli_util.wrap_exceptions def enable_exadata_insight_enable_em_managed_external_exadata_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7078,7 +7077,7 @@ def enable_exadata_insight_enable_em_managed_external_exadata_insight_details(ct @cli_util.wrap_exceptions def enable_host_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, entity_source, host_insight_id, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7138,7 +7137,7 @@ def enable_host_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def enable_host_insight_enable_macs_managed_external_host_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7199,7 +7198,7 @@ def enable_host_insight_enable_macs_managed_external_host_insight_details(ctx, f @cli_util.wrap_exceptions def enable_host_insight_enable_macs_managed_cloud_host_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7260,7 +7259,7 @@ def enable_host_insight_enable_macs_managed_cloud_host_insight_details(ctx, from @cli_util.wrap_exceptions def enable_host_insight_enable_em_managed_external_host_insight_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7322,7 +7321,7 @@ def enable_host_insight_enable_em_managed_external_host_insight_details(ctx, fro @cli_util.wrap_exceptions def enable_plan_exadata_insight(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, plan_id, exadata_insight_id, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7386,7 +7385,7 @@ def enable_plan_exadata_insight(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def get_awr_database_report(ctx, from_json, awr_hub_id, awr_source_database_identifier, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, report_type, report_format): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -7431,7 +7430,7 @@ def get_awr_database_report(ctx, from_json, awr_hub_id, awr_source_database_iden @cli_util.wrap_exceptions def get_awr_database_sql_report(ctx, from_json, awr_hub_id, awr_source_database_identifier, sql_id, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, report_format): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -7467,7 +7466,7 @@ def get_awr_database_sql_report(ctx, from_json, awr_hub_id, awr_source_database_ @cli_util.wrap_exceptions def get_awr_hub(ctx, from_json, awr_hub_id): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -7491,10 +7490,10 @@ def get_awr_hub(ctx, from_json, awr_hub_id): @cli_util.wrap_exceptions def get_awr_hub_object(ctx, from_json, file, awr_hub_source_id, object_name): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -7539,7 +7538,7 @@ def get_awr_hub_object(ctx, from_json, file, awr_hub_source_id, object_name): @cli_util.wrap_exceptions def get_awr_hub_source(ctx, from_json, awr_hub_source_id): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') kwargs = {} @@ -7568,7 +7567,7 @@ def get_awr_hub_source(ctx, from_json, awr_hub_source_id): @cli_util.wrap_exceptions def get_awr_report(ctx, from_json, awr_hub_id, awr_source_database_identifier, report_format, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -7603,7 +7602,7 @@ def get_awr_report(ctx, from_json, awr_hub_id, awr_source_database_identifier, r @cli_util.wrap_exceptions def get_chargeback_plan(ctx, from_json, chargebackplan_id): - if isinstance(chargebackplan_id, six.string_types) and len(chargebackplan_id.strip()) == 0: + if isinstance(chargebackplan_id, str) and len(chargebackplan_id.strip()) == 0: raise click.UsageError('Parameter --chargebackplan-id cannot be whitespace or empty string') kwargs = {} @@ -7627,7 +7626,7 @@ def get_chargeback_plan(ctx, from_json, chargebackplan_id): @cli_util.wrap_exceptions def get_chargeback_plan_report(ctx, from_json, chargeback_plan_report_id, id, resource_type): - if isinstance(chargeback_plan_report_id, six.string_types) and len(chargeback_plan_report_id.strip()) == 0: + if isinstance(chargeback_plan_report_id, str) and len(chargeback_plan_report_id.strip()) == 0: raise click.UsageError('Parameter --chargeback-plan-report-id cannot be whitespace or empty string') kwargs = {} @@ -7657,7 +7656,7 @@ def get_chargeback_plan_report(ctx, from_json, chargeback_plan_report_id, id, re @cli_util.wrap_exceptions def get_chargeback_plan_report_content(ctx, from_json, file, chargeback_plan_report_id, id, resource_type, time_interval_start, time_interval_end, relative_time_interval): - if isinstance(chargeback_plan_report_id, six.string_types) and len(chargeback_plan_report_id.strip()) == 0: + if isinstance(chargeback_plan_report_id, str) and len(chargeback_plan_report_id.strip()) == 0: raise click.UsageError('Parameter --chargeback-plan-report-id cannot be whitespace or empty string') kwargs = {} @@ -7709,7 +7708,7 @@ def get_chargeback_plan_report_content(ctx, from_json, file, chargeback_plan_rep @cli_util.wrap_exceptions def get_database_insight(ctx, from_json, database_insight_id): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7731,7 +7730,7 @@ def get_database_insight(ctx, from_json, database_insight_id): @cli_util.wrap_exceptions def get_enterprise_manager_bridge(ctx, from_json, enterprise_manager_bridge_id): - if isinstance(enterprise_manager_bridge_id, six.string_types) and len(enterprise_manager_bridge_id.strip()) == 0: + if isinstance(enterprise_manager_bridge_id, str) and len(enterprise_manager_bridge_id.strip()) == 0: raise click.UsageError('Parameter --enterprise-manager-bridge-id cannot be whitespace or empty string') kwargs = {} @@ -7753,7 +7752,7 @@ def get_enterprise_manager_bridge(ctx, from_json, enterprise_manager_bridge_id): @cli_util.wrap_exceptions def get_exadata_insight(ctx, from_json, exadata_insight_id): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7775,7 +7774,7 @@ def get_exadata_insight(ctx, from_json, exadata_insight_id): @cli_util.wrap_exceptions def get_host_insight(ctx, from_json, host_insight_id): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') kwargs = {} @@ -7797,7 +7796,7 @@ def get_host_insight(ctx, from_json, host_insight_id): @cli_util.wrap_exceptions def get_news_report(ctx, from_json, news_report_id): - if isinstance(news_report_id, six.string_types) and len(news_report_id.strip()) == 0: + if isinstance(news_report_id, str) and len(news_report_id.strip()) == 0: raise click.UsageError('Parameter --news-report-id cannot be whitespace or empty string') kwargs = {} @@ -7819,7 +7818,7 @@ def get_news_report(ctx, from_json, news_report_id): @cli_util.wrap_exceptions def get_operations_insights_private_endpoint(ctx, from_json, operations_insights_private_endpoint_id): - if isinstance(operations_insights_private_endpoint_id, six.string_types) and len(operations_insights_private_endpoint_id.strip()) == 0: + if isinstance(operations_insights_private_endpoint_id, str) and len(operations_insights_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -7841,7 +7840,7 @@ def get_operations_insights_private_endpoint(ctx, from_json, operations_insights @cli_util.wrap_exceptions def get_operations_insights_warehouse(ctx, from_json, operations_insights_warehouse_id): - if isinstance(operations_insights_warehouse_id, six.string_types) and len(operations_insights_warehouse_id.strip()) == 0: + if isinstance(operations_insights_warehouse_id, str) and len(operations_insights_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -7863,7 +7862,7 @@ def get_operations_insights_warehouse(ctx, from_json, operations_insights_wareho @cli_util.wrap_exceptions def get_operations_insights_warehouse_user(ctx, from_json, operations_insights_warehouse_user_id): - if isinstance(operations_insights_warehouse_user_id, six.string_types) and len(operations_insights_warehouse_user_id.strip()) == 0: + if isinstance(operations_insights_warehouse_user_id, str) and len(operations_insights_warehouse_user_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-user-id cannot be whitespace or empty string') kwargs = {} @@ -7889,7 +7888,7 @@ def get_operations_insights_warehouse_user(ctx, from_json, operations_insights_w @cli_util.wrap_exceptions def get_opsi_configuration(ctx, from_json, opsi_configuration_id, opsi_config_field, config_item_custom_status, config_items_applicable_context, config_item_field): - if isinstance(opsi_configuration_id, six.string_types) and len(opsi_configuration_id.strip()) == 0: + if isinstance(opsi_configuration_id, str) and len(opsi_configuration_id.strip()) == 0: raise click.UsageError('Parameter --opsi-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -7920,7 +7919,7 @@ def get_opsi_configuration(ctx, from_json, opsi_configuration_id, opsi_config_fi @cli_util.wrap_exceptions def get_opsi_data_object(ctx, from_json, compartment_id, opsi_data_object_identifier): - if isinstance(opsi_data_object_identifier, six.string_types) and len(opsi_data_object_identifier.strip()) == 0: + if isinstance(opsi_data_object_identifier, str) and len(opsi_data_object_identifier.strip()) == 0: raise click.UsageError('Parameter --opsi-data-object-identifier cannot be whitespace or empty string') kwargs = {} @@ -7943,7 +7942,7 @@ def get_opsi_data_object(ctx, from_json, compartment_id, opsi_data_object_identi @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -7966,10 +7965,10 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def head_awr_hub_object(ctx, from_json, awr_hub_source_id, object_name): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -8847,7 +8846,7 @@ def list_awr_database_snapshots(ctx, from_json, all_pages, page_size, awr_hub_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -8920,7 +8919,7 @@ def list_awr_databases(ctx, from_json, all_pages, page_size, awr_hub_id, name, t if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -8987,7 +8986,7 @@ def list_awr_hub_objects(ctx, from_json, all_pages, page_size, awr_hub_source_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') kwargs = {} @@ -9193,7 +9192,7 @@ def list_awr_snapshots(ctx, from_json, all_pages, page_size, awr_hub_id, awr_sou if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -10119,7 +10118,7 @@ def list_importable_enterprise_manager_entities(ctx, from_json, all_pages, page_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(enterprise_manager_bridge_id, six.string_types) and len(enterprise_manager_bridge_id.strip()) == 0: + if isinstance(enterprise_manager_bridge_id, str) and len(enterprise_manager_bridge_id.strip()) == 0: raise click.UsageError('Parameter --enterprise-manager-bridge-id cannot be whitespace or empty string') kwargs = {} @@ -10729,10 +10728,10 @@ def list_warehouse_data_objects(ctx, from_json, all_pages, page_size, warehouse_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(warehouse_type, six.string_types) and len(warehouse_type.strip()) == 0: + if isinstance(warehouse_type, str) and len(warehouse_type.strip()) == 0: raise click.UsageError('Parameter --warehouse-type cannot be whitespace or empty string') - if isinstance(warehouse_id, six.string_types) and len(warehouse_id.strip()) == 0: + if isinstance(warehouse_id, str) and len(warehouse_id.strip()) == 0: raise click.UsageError('Parameter --warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -10800,7 +10799,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -10857,7 +10856,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -10973,10 +10972,10 @@ def list_work_requests(ctx, from_json, all_pages, page_size, page, limit, compar @cli_util.wrap_exceptions def put_awr_hub_object(ctx, from_json, put_awr_hub_object_body, awr_hub_source_id, object_name, if_match): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') - if isinstance(object_name, six.string_types) and len(object_name.strip()) == 0: + if isinstance(object_name, str) and len(object_name.strip()) == 0: raise click.UsageError('Parameter --object-name cannot be whitespace or empty string') kwargs = {} @@ -11203,10 +11202,10 @@ def query_opsi_data_object_data_data_object_templatized_query(ctx, from_json, co @cli_util.wrap_exceptions def query_warehouse_data_object_data(ctx, from_json, warehouse_type, warehouse_id, query_parameterconflict, limit, page): - if isinstance(warehouse_type, six.string_types) and len(warehouse_type.strip()) == 0: + if isinstance(warehouse_type, str) and len(warehouse_type.strip()) == 0: raise click.UsageError('Parameter --warehouse-type cannot be whitespace or empty string') - if isinstance(warehouse_id, six.string_types) and len(warehouse_id.strip()) == 0: + if isinstance(warehouse_id, str) and len(warehouse_id.strip()) == 0: raise click.UsageError('Parameter --warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -11247,10 +11246,10 @@ def query_warehouse_data_object_data(ctx, from_json, warehouse_type, warehouse_i @cli_util.wrap_exceptions def query_warehouse_data_object_data_data_object_standard_query(ctx, from_json, warehouse_type, warehouse_id, limit, page, query_bind_params, query_query_execution_timeout_in_seconds, query_statement, query_time_filters): - if isinstance(warehouse_type, six.string_types) and len(warehouse_type.strip()) == 0: + if isinstance(warehouse_type, str) and len(warehouse_type.strip()) == 0: raise click.UsageError('Parameter --warehouse-type cannot be whitespace or empty string') - if isinstance(warehouse_id, six.string_types) and len(warehouse_id.strip()) == 0: + if isinstance(warehouse_id, str) and len(warehouse_id.strip()) == 0: raise click.UsageError('Parameter --warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -11310,10 +11309,10 @@ def query_warehouse_data_object_data_data_object_standard_query(ctx, from_json, @cli_util.wrap_exceptions def query_warehouse_data_object_data_data_object_templatized_query(ctx, from_json, warehouse_type, warehouse_id, limit, page, query_bind_params, query_query_execution_timeout_in_seconds, query_select_list, query_from_clause, query_where_conditions_list, query_group_by_list, query_having_conditions_list, query_order_by_list, query_time_filters): - if isinstance(warehouse_type, six.string_types) and len(warehouse_type.strip()) == 0: + if isinstance(warehouse_type, str) and len(warehouse_type.strip()) == 0: raise click.UsageError('Parameter --warehouse-type cannot be whitespace or empty string') - if isinstance(warehouse_id, six.string_types) and len(warehouse_id.strip()) == 0: + if isinstance(warehouse_id, str) and len(warehouse_id.strip()) == 0: raise click.UsageError('Parameter --warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -11378,7 +11377,7 @@ def query_warehouse_data_object_data_data_object_templatized_query(ctx, from_jso @cli_util.wrap_exceptions def rotate_operations_insights_warehouse_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, operations_insights_warehouse_id, if_match): - if isinstance(operations_insights_warehouse_id, six.string_types) and len(operations_insights_warehouse_id.strip()) == 0: + if isinstance(operations_insights_warehouse_id, str) and len(operations_insights_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -11833,7 +11832,7 @@ def summarize_addm_db_sql_statements(ctx, from_json, compartment_id, sql_identif @cli_util.wrap_exceptions def summarize_awr_database_cpu_usages(ctx, from_json, awr_hub_id, awr_source_database_identifier, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, session_type, page, limit, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -11887,7 +11886,7 @@ def summarize_awr_database_cpu_usages(ctx, from_json, awr_hub_id, awr_source_dat @cli_util.wrap_exceptions def summarize_awr_database_metrics(ctx, from_json, awr_hub_id, awr_source_database_identifier, name, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, page, limit, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -11940,7 +11939,7 @@ def summarize_awr_database_metrics(ctx, from_json, awr_hub_id, awr_source_databa @cli_util.wrap_exceptions def summarize_awr_database_parameter_changes(ctx, from_json, awr_hub_id, awr_source_database_identifier, name, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, page, limit, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -12001,7 +12000,7 @@ def summarize_awr_database_parameter_changes(ctx, from_json, awr_hub_id, awr_sou @cli_util.wrap_exceptions def summarize_awr_database_parameters(ctx, from_json, awr_hub_id, awr_source_database_identifier, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, name, name_contains, value_changed, value_default, value_modified, page, limit, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -12059,7 +12058,7 @@ def summarize_awr_database_parameters(ctx, from_json, awr_hub_id, awr_source_dat @cli_util.wrap_exceptions def summarize_awr_database_snapshot_ranges(ctx, from_json, awr_hub_id, name, time_greater_than_or_equal_to, time_less_than_or_equal_to, page, limit, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -12106,7 +12105,7 @@ def summarize_awr_database_snapshot_ranges(ctx, from_json, awr_hub_id, name, tim @cli_util.wrap_exceptions def summarize_awr_database_sysstats(ctx, from_json, awr_hub_id, awr_source_database_identifier, name, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, page, limit, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -12158,7 +12157,7 @@ def summarize_awr_database_sysstats(ctx, from_json, awr_hub_id, awr_source_datab @cli_util.wrap_exceptions def summarize_awr_database_top_wait_events(ctx, from_json, awr_hub_id, awr_source_database_identifier, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, session_type, top_n, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -12213,7 +12212,7 @@ def summarize_awr_database_top_wait_events(ctx, from_json, awr_hub_id, awr_sourc @cli_util.wrap_exceptions def summarize_awr_database_wait_event_buckets(ctx, from_json, awr_hub_id, awr_source_database_identifier, name, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, num_bucket, min_value, max_value, page, limit, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -12273,7 +12272,7 @@ def summarize_awr_database_wait_event_buckets(ctx, from_json, awr_hub_id, awr_so @cli_util.wrap_exceptions def summarize_awr_database_wait_events(ctx, from_json, awr_hub_id, awr_source_database_identifier, instance_number, begin_snapshot_identifier_greater_than_or_equal_to, end_snapshot_identifier_less_than_or_equal_to, time_greater_than_or_equal_to, time_less_than_or_equal_to, name, session_type, page, limit, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -12324,7 +12323,7 @@ def summarize_awr_database_wait_events(ctx, from_json, awr_hub_id, awr_source_da @cli_util.wrap_exceptions def summarize_awr_sources_summaries(ctx, from_json, awr_hub_id, compartment_id, name, limit, page, sort_by, sort_order): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') kwargs = {} @@ -14313,7 +14312,7 @@ def summarize_host_insight_top_processes_usage_trend(ctx, from_json, compartment @cli_util.wrap_exceptions def summarize_operations_insights_warehouse_resource_usage(ctx, from_json, operations_insights_warehouse_id): - if isinstance(operations_insights_warehouse_id, six.string_types) and len(operations_insights_warehouse_id.strip()) == 0: + if isinstance(operations_insights_warehouse_id, str) and len(operations_insights_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-id cannot be whitespace or empty string') kwargs = {} @@ -15459,7 +15458,7 @@ def test_macs_managed_cloud_database_insight_connection_credential_by_iam(ctx, f @cli_util.wrap_exceptions def update_awr_hub(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, awr_hub_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(awr_hub_id, six.string_types) and len(awr_hub_id.strip()) == 0: + if isinstance(awr_hub_id, str) and len(awr_hub_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15535,7 +15534,7 @@ def update_awr_hub(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_awr_hub_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, awr_hub_source_id, type, freeform_tags, defined_tags, if_match): - if isinstance(awr_hub_source_id, six.string_types) and len(awr_hub_source_id.strip()) == 0: + if isinstance(awr_hub_source_id, str) and len(awr_hub_source_id.strip()) == 0: raise click.UsageError('Parameter --awr-hub-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15615,7 +15614,7 @@ def update_awr_hub_source(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_chargeback_plan(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, chargebackplan_id, plan_description, plan_name, freeform_tags, defined_tags, plan_custom_items, if_match): - if isinstance(chargebackplan_id, six.string_types) and len(chargebackplan_id.strip()) == 0: + if isinstance(chargebackplan_id, str) and len(chargebackplan_id.strip()) == 0: raise click.UsageError('Parameter --chargebackplan-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or plan_custom_items: @@ -15698,7 +15697,7 @@ def update_chargeback_plan(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_chargeback_plan_report(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, chargeback_plan_report_id, id, resource_type, report_name, report_properties, if_match): - if isinstance(chargeback_plan_report_id, six.string_types) and len(chargeback_plan_report_id.strip()) == 0: + if isinstance(chargeback_plan_report_id, str) and len(chargeback_plan_report_id.strip()) == 0: raise click.UsageError('Parameter --chargeback-plan-report-id cannot be whitespace or empty string') if not force: if report_properties: @@ -15769,7 +15768,7 @@ def update_chargeback_plan_report(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_database_insight(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, entity_source, freeform_tags, defined_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15842,7 +15841,7 @@ def update_database_insight(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_database_insight_update_macs_managed_external_database_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15916,7 +15915,7 @@ def update_database_insight_update_macs_managed_external_database_insight_detail @cli_util.wrap_exceptions def update_database_insight_update_em_managed_external_database_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -15990,7 +15989,7 @@ def update_database_insight_update_em_managed_external_database_insight_details( @cli_util.wrap_exceptions def update_database_insight_update_pe_comanaged_database_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16064,7 +16063,7 @@ def update_database_insight_update_pe_comanaged_database_insight_details(ctx, fr @cli_util.wrap_exceptions def update_database_insight_update_autonomous_database_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16138,7 +16137,7 @@ def update_database_insight_update_autonomous_database_insight_details(ctx, from @cli_util.wrap_exceptions def update_database_insight_update_mds_my_sql_database_insight(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16212,7 +16211,7 @@ def update_database_insight_update_mds_my_sql_database_insight(ctx, from_json, f @cli_util.wrap_exceptions def update_database_insight_update_macs_managed_cloud_database_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16286,7 +16285,7 @@ def update_database_insight_update_macs_managed_cloud_database_insight_details(c @cli_util.wrap_exceptions def update_database_insight_update_external_mysql_database_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16360,7 +16359,7 @@ def update_database_insight_update_external_mysql_database_insight_details(ctx, @cli_util.wrap_exceptions def update_database_insight_update_macs_managed_autonomous_database_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, database_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(database_insight_id, six.string_types) and len(database_insight_id.strip()) == 0: + if isinstance(database_insight_id, str) and len(database_insight_id.strip()) == 0: raise click.UsageError('Parameter --database-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16436,7 +16435,7 @@ def update_database_insight_update_macs_managed_autonomous_database_insight_deta @cli_util.wrap_exceptions def update_enterprise_manager_bridge(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, enterprise_manager_bridge_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(enterprise_manager_bridge_id, six.string_types) and len(enterprise_manager_bridge_id.strip()) == 0: + if isinstance(enterprise_manager_bridge_id, str) and len(enterprise_manager_bridge_id.strip()) == 0: raise click.UsageError('Parameter --enterprise-manager-bridge-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16515,7 +16514,7 @@ def update_enterprise_manager_bridge(ctx, from_json, force, wait_for_state, max_ @cli_util.wrap_exceptions def update_exadata_insight(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, entity_source, freeform_tags, defined_tags, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16588,7 +16587,7 @@ def update_exadata_insight(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_exadata_insight_update_pe_comanaged_exadata_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16662,7 +16661,7 @@ def update_exadata_insight_update_pe_comanaged_exadata_insight_details(ctx, from @cli_util.wrap_exceptions def update_exadata_insight_update_macs_managed_cloud_exadata_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16737,7 +16736,7 @@ def update_exadata_insight_update_macs_managed_cloud_exadata_insight_details(ctx @cli_util.wrap_exceptions def update_exadata_insight_update_em_managed_external_exadata_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, exadata_insight_id, freeform_tags, defined_tags, is_auto_sync_enabled, if_match): - if isinstance(exadata_insight_id, six.string_types) and len(exadata_insight_id.strip()) == 0: + if isinstance(exadata_insight_id, str) and len(exadata_insight_id.strip()) == 0: raise click.UsageError('Parameter --exadata-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16815,7 +16814,7 @@ def update_exadata_insight_update_em_managed_external_exadata_insight_details(ct @cli_util.wrap_exceptions def update_host_insight(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, entity_source, freeform_tags, defined_tags, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16888,7 +16887,7 @@ def update_host_insight(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_host_insight_update_macs_managed_cloud_database_host_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -16962,7 +16961,7 @@ def update_host_insight_update_macs_managed_cloud_database_host_insight_details( @cli_util.wrap_exceptions def update_host_insight_update_em_managed_external_host_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -17036,7 +17035,7 @@ def update_host_insight_update_em_managed_external_host_insight_details(ctx, fro @cli_util.wrap_exceptions def update_host_insight_update_macs_managed_external_host_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -17110,7 +17109,7 @@ def update_host_insight_update_macs_managed_external_host_insight_details(ctx, f @cli_util.wrap_exceptions def update_host_insight_update_macs_managed_cloud_host_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -17184,7 +17183,7 @@ def update_host_insight_update_macs_managed_cloud_host_insight_details(ctx, from @cli_util.wrap_exceptions def update_host_insight_update_pe_comanaged_host_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, host_insight_id, freeform_tags, defined_tags, if_match): - if isinstance(host_insight_id, six.string_types) and len(host_insight_id.strip()) == 0: + if isinstance(host_insight_id, str) and len(host_insight_id.strip()) == 0: raise click.UsageError('Parameter --host-insight-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -17269,7 +17268,7 @@ def update_host_insight_update_pe_comanaged_host_insight_details(ctx, from_json, @cli_util.wrap_exceptions def update_news_report(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, news_report_id, status, news_frequency, locale, content_types, ons_topic_id, freeform_tags, defined_tags, name, description, day_of_week, are_child_compartments_included, tag_filters, match_rule, if_match): - if isinstance(news_report_id, six.string_types) and len(news_report_id.strip()) == 0: + if isinstance(news_report_id, str) and len(news_report_id.strip()) == 0: raise click.UsageError('Parameter --news-report-id cannot be whitespace or empty string') if not force: if content_types or freeform_tags or defined_tags or tag_filters: @@ -17380,7 +17379,7 @@ def update_news_report(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_operations_insights_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, operations_insights_private_endpoint_id, display_name, description, nsg_ids, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(operations_insights_private_endpoint_id, six.string_types) and len(operations_insights_private_endpoint_id.strip()) == 0: + if isinstance(operations_insights_private_endpoint_id, str) and len(operations_insights_private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-private-endpoint-id cannot be whitespace or empty string') if not force: if nsg_ids or freeform_tags or defined_tags or security_attributes: @@ -17468,7 +17467,7 @@ def update_operations_insights_private_endpoint(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_operations_insights_warehouse(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, operations_insights_warehouse_id, display_name, cpu_allocated, compute_model, storage_allocated_in_gbs, freeform_tags, defined_tags, if_match): - if isinstance(operations_insights_warehouse_id, six.string_types) and len(operations_insights_warehouse_id.strip()) == 0: + if isinstance(operations_insights_warehouse_id, str) and len(operations_insights_warehouse_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -17556,7 +17555,7 @@ def update_operations_insights_warehouse(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_operations_insights_warehouse_user(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, operations_insights_warehouse_user_id, connection_password, is_awr_data_access, is_em_data_access, is_opsi_data_access, freeform_tags, defined_tags, if_match): - if isinstance(operations_insights_warehouse_user_id, six.string_types) and len(operations_insights_warehouse_user_id.strip()) == 0: + if isinstance(operations_insights_warehouse_user_id, str) and len(operations_insights_warehouse_user_id.strip()) == 0: raise click.UsageError('Parameter --operations-insights-warehouse-user-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -17647,7 +17646,7 @@ def update_operations_insights_warehouse_user(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_opsi_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, opsi_configuration_id, opsi_config_type, display_name, description, freeform_tags, defined_tags, system_tags, config_items, if_match): - if isinstance(opsi_configuration_id, six.string_types) and len(opsi_configuration_id.strip()) == 0: + if isinstance(opsi_configuration_id, str) and len(opsi_configuration_id.strip()) == 0: raise click.UsageError('Parameter --opsi-configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags or config_items: @@ -17738,7 +17737,7 @@ def update_opsi_configuration(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_opsi_configuration_update_opsi_ux_configuration_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, opsi_configuration_id, display_name, description, freeform_tags, defined_tags, system_tags, config_items, if_match): - if isinstance(opsi_configuration_id, six.string_types) and len(opsi_configuration_id.strip()) == 0: + if isinstance(opsi_configuration_id, str) and len(opsi_configuration_id.strip()) == 0: raise click.UsageError('Parameter --opsi-configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags or config_items: diff --git a/services/optimizer/src/oci_cli_optimizer/generated/optimizer_cli.py b/services/optimizer/src/oci_cli_optimizer/generated/optimizer_cli.py index 8142347c4..9b04cbfc2 100644 --- a/services/optimizer/src/oci_cli_optimizer/generated/optimizer_cli.py +++ b/services/optimizer/src/oci_cli_optimizer/generated/optimizer_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -167,7 +166,7 @@ def resource_action_summary_group(): @cli_util.wrap_exceptions def bulk_apply_recommendations(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, recommendation_id, status, resource_action_ids, actions, time_status_end): - if isinstance(recommendation_id, six.string_types) and len(recommendation_id.strip()) == 0: + if isinstance(recommendation_id, str) and len(recommendation_id.strip()) == 0: raise click.UsageError('Parameter --recommendation-id cannot be whitespace or empty string') kwargs = {} @@ -318,7 +317,7 @@ def create_profile(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def delete_profile(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, profile_id, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -439,7 +438,7 @@ def filter_resource_actions(ctx, from_json, compartment_id, compartment_id_in_su @cli_util.wrap_exceptions def get_category(ctx, from_json, category_id): - if isinstance(category_id, six.string_types) and len(category_id.strip()) == 0: + if isinstance(category_id, str) and len(category_id.strip()) == 0: raise click.UsageError('Parameter --category-id cannot be whitespace or empty string') kwargs = {} @@ -461,7 +460,7 @@ def get_category(ctx, from_json, category_id): @cli_util.wrap_exceptions def get_enrollment_status(ctx, from_json, enrollment_status_id): - if isinstance(enrollment_status_id, six.string_types) and len(enrollment_status_id.strip()) == 0: + if isinstance(enrollment_status_id, str) and len(enrollment_status_id.strip()) == 0: raise click.UsageError('Parameter --enrollment-status-id cannot be whitespace or empty string') kwargs = {} @@ -483,7 +482,7 @@ def get_enrollment_status(ctx, from_json, enrollment_status_id): @cli_util.wrap_exceptions def get_profile(ctx, from_json, profile_id): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -505,7 +504,7 @@ def get_profile(ctx, from_json, profile_id): @cli_util.wrap_exceptions def get_recommendation(ctx, from_json, recommendation_id): - if isinstance(recommendation_id, six.string_types) and len(recommendation_id.strip()) == 0: + if isinstance(recommendation_id, str) and len(recommendation_id.strip()) == 0: raise click.UsageError('Parameter --recommendation-id cannot be whitespace or empty string') kwargs = {} @@ -528,7 +527,7 @@ def get_recommendation(ctx, from_json, recommendation_id): @cli_util.wrap_exceptions def get_resource_action(ctx, from_json, resource_action_id, include_resource_metadata): - if isinstance(resource_action_id, six.string_types) and len(resource_action_id.strip()) == 0: + if isinstance(resource_action_id, str) and len(resource_action_id.strip()) == 0: raise click.UsageError('Parameter --resource-action-id cannot be whitespace or empty string') kwargs = {} @@ -552,7 +551,7 @@ def get_resource_action(ctx, from_json, resource_action_id, include_resource_met @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1238,7 +1237,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1289,7 +1288,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1386,7 +1385,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def update_enrollment_status(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, enrollment_status_id, status, if_match): - if isinstance(enrollment_status_id, six.string_types) and len(enrollment_status_id.strip()) == 0: + if isinstance(enrollment_status_id, str) and len(enrollment_status_id.strip()) == 0: raise click.UsageError('Parameter --enrollment-status-id cannot be whitespace or empty string') kwargs = {} @@ -1456,7 +1455,7 @@ def update_enrollment_status(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_profile(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, profile_id, description, aggregation_interval_in_days, defined_tags, freeform_tags, system_tags, levels_configuration, target_compartments, target_tags, name, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or system_tags or levels_configuration or target_compartments or target_tags: @@ -1548,7 +1547,7 @@ def update_profile(ctx, from_json, force, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_recommendation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, recommendation_id, status, time_status_end, if_match): - if isinstance(recommendation_id, six.string_types) and len(recommendation_id.strip()) == 0: + if isinstance(recommendation_id, str) and len(recommendation_id.strip()) == 0: raise click.UsageError('Parameter --recommendation-id cannot be whitespace or empty string') kwargs = {} @@ -1613,7 +1612,7 @@ def update_recommendation(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def update_resource_action(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resource_action_id, status, time_status_end, if_match): - if isinstance(resource_action_id, six.string_types) and len(resource_action_id.strip()) == 0: + if isinstance(resource_action_id, str) and len(resource_action_id.strip()) == 0: raise click.UsageError('Parameter --resource-action-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/os_management_hub/src/oci_cli_dynamic_set/generated/dynamicset_cli.py b/services/os_management_hub/src/oci_cli_dynamic_set/generated/dynamicset_cli.py index 3e351b8dd..2a03ef0c3 100644 --- a/services/os_management_hub/src/oci_cli_dynamic_set/generated/dynamicset_cli.py +++ b/services/os_management_hub/src/oci_cli_dynamic_set/generated/dynamicset_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -44,7 +43,7 @@ def dynamic_set_group(): @cli_util.wrap_exceptions def change_dynamic_set_compartment(ctx, from_json, compartment_id, dynamic_set_id, if_match): - if isinstance(dynamic_set_id, six.string_types) and len(dynamic_set_id.strip()) == 0: + if isinstance(dynamic_set_id, str) and len(dynamic_set_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-set-id cannot be whitespace or empty string') kwargs = {} @@ -149,7 +148,7 @@ def create_dynamic_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_dynamic_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dynamic_set_id, if_match): - if isinstance(dynamic_set_id, six.string_types) and len(dynamic_set_id.strip()) == 0: + if isinstance(dynamic_set_id, str) and len(dynamic_set_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-set-id cannot be whitespace or empty string') kwargs = {} @@ -208,7 +207,7 @@ def delete_dynamic_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_dynamic_set(ctx, from_json, dynamic_set_id): - if isinstance(dynamic_set_id, six.string_types) and len(dynamic_set_id.strip()) == 0: + if isinstance(dynamic_set_id, str) and len(dynamic_set_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-set-id cannot be whitespace or empty string') kwargs = {} @@ -237,7 +236,7 @@ def get_dynamic_set(ctx, from_json, dynamic_set_id): @cli_util.wrap_exceptions def install_packages_on_dynamic_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dynamic_set_id, package_names, managed_instances, work_request_details, if_match): - if isinstance(dynamic_set_id, six.string_types) and len(dynamic_set_id.strip()) == 0: + if isinstance(dynamic_set_id, str) and len(dynamic_set_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-set-id cannot be whitespace or empty string') kwargs = {} @@ -382,7 +381,7 @@ def list_managed_instances_in_dynamic_set(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(dynamic_set_id, six.string_types) and len(dynamic_set_id.strip()) == 0: + if isinstance(dynamic_set_id, str) and len(dynamic_set_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-set-id cannot be whitespace or empty string') kwargs = {} @@ -511,7 +510,7 @@ def preview_managed_instances(ctx, from_json, target_compartments, match_type, m @cli_util.wrap_exceptions def reboot_dynamic_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dynamic_set_id, reboot_timeout_in_mins, managed_instances, work_request_details, if_match): - if isinstance(dynamic_set_id, six.string_types) and len(dynamic_set_id.strip()) == 0: + if isinstance(dynamic_set_id, str) and len(dynamic_set_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-set-id cannot be whitespace or empty string') kwargs = {} @@ -582,7 +581,7 @@ def reboot_dynamic_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def remove_packages_from_dynamic_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dynamic_set_id, package_names, managed_instances, work_request_details, if_match): - if isinstance(dynamic_set_id, six.string_types) and len(dynamic_set_id.strip()) == 0: + if isinstance(dynamic_set_id, str) and len(dynamic_set_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-set-id cannot be whitespace or empty string') kwargs = {} @@ -658,7 +657,7 @@ def remove_packages_from_dynamic_set(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_dynamic_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, dynamic_set_id, display_name, description, target_compartments, match_type, matching_rule, freeform_tags, defined_tags, if_match): - if isinstance(dynamic_set_id, six.string_types) and len(dynamic_set_id.strip()) == 0: + if isinstance(dynamic_set_id, str) and len(dynamic_set_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-set-id cannot be whitespace or empty string') if not force: if target_compartments or matching_rule or freeform_tags or defined_tags: @@ -741,7 +740,7 @@ def update_dynamic_set(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_packages_on_dynamic_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, dynamic_set_id, update_types, managed_instances, work_request_details, if_match): - if isinstance(dynamic_set_id, six.string_types) and len(dynamic_set_id.strip()) == 0: + if isinstance(dynamic_set_id, str) and len(dynamic_set_id.strip()) == 0: raise click.UsageError('Parameter --dynamic-set-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/os_management_hub/src/oci_cli_event/generated/event_cli.py b/services/os_management_hub/src/oci_cli_event/generated/event_cli.py index 3f46ca273..6da2a5ade 100644 --- a/services/os_management_hub/src/oci_cli_event/generated/event_cli.py +++ b/services/os_management_hub/src/oci_cli_event/generated/event_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -51,7 +50,7 @@ def event_group(): @cli_util.wrap_exceptions def change_event_compartment(ctx, from_json, compartment_id, event_id, if_match): - if isinstance(event_id, six.string_types) and len(event_id.strip()) == 0: + if isinstance(event_id, str) and len(event_id.strip()) == 0: raise click.UsageError('Parameter --event-id cannot be whitespace or empty string') kwargs = {} @@ -85,7 +84,7 @@ def change_event_compartment(ctx, from_json, compartment_id, event_id, if_match) @cli_util.wrap_exceptions def delete_event(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, event_id, if_match): - if isinstance(event_id, six.string_types) and len(event_id.strip()) == 0: + if isinstance(event_id, str) and len(event_id.strip()) == 0: raise click.UsageError('Parameter --event-id cannot be whitespace or empty string') kwargs = {} @@ -138,7 +137,7 @@ def delete_event(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_event_content(ctx, from_json, event_id, if_match): - if isinstance(event_id, six.string_types) and len(event_id.strip()) == 0: + if isinstance(event_id, str) and len(event_id.strip()) == 0: raise click.UsageError('Parameter --event-id cannot be whitespace or empty string') kwargs = {} @@ -162,7 +161,7 @@ def delete_event_content(ctx, from_json, event_id, if_match): @cli_util.wrap_exceptions def get_event(ctx, from_json, event_id): - if isinstance(event_id, six.string_types) and len(event_id.strip()) == 0: + if isinstance(event_id, str) and len(event_id.strip()) == 0: raise click.UsageError('Parameter --event-id cannot be whitespace or empty string') kwargs = {} @@ -185,7 +184,7 @@ def get_event(ctx, from_json, event_id): @cli_util.wrap_exceptions def get_event_content(ctx, from_json, file, event_id): - if isinstance(event_id, six.string_types) and len(event_id.strip()) == 0: + if isinstance(event_id, str) and len(event_id.strip()) == 0: raise click.UsageError('Parameter --event-id cannot be whitespace or empty string') kwargs = {} @@ -233,7 +232,7 @@ def get_event_content(ctx, from_json, file, event_id): @cli_util.wrap_exceptions def import_event_content(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, event_id, if_match): - if isinstance(event_id, six.string_types) and len(event_id.strip()) == 0: + if isinstance(event_id, str) and len(event_id.strip()) == 0: raise click.UsageError('Parameter --event-id cannot be whitespace or empty string') kwargs = {} @@ -378,7 +377,7 @@ def list_events(ctx, from_json, all_pages, page_size, event_summary, event_summa @cli_util.wrap_exceptions def update_event(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, event_id, freeform_tags, defined_tags, if_match): - if isinstance(event_id, six.string_types) and len(event_id.strip()) == 0: + if isinstance(event_id, str) and len(event_id.strip()) == 0: raise click.UsageError('Parameter --event-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/os_management_hub/src/oci_cli_lifecycle_environment/generated/lifecycleenvironment_cli.py b/services/os_management_hub/src/oci_cli_lifecycle_environment/generated/lifecycleenvironment_cli.py index 261cece69..06fe0bbac 100644 --- a/services/os_management_hub/src/oci_cli_lifecycle_environment/generated/lifecycleenvironment_cli.py +++ b/services/os_management_hub/src/oci_cli_lifecycle_environment/generated/lifecycleenvironment_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -54,7 +53,7 @@ def lifecycle_environment_group(): @cli_util.wrap_exceptions def attach_managed_instances_to_lifecycle_stage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, lifecycle_stage_id, managed_instance_details, if_match): - if isinstance(lifecycle_stage_id, six.string_types) and len(lifecycle_stage_id.strip()) == 0: + if isinstance(lifecycle_stage_id, str) and len(lifecycle_stage_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-stage-id cannot be whitespace or empty string') kwargs = {} @@ -112,7 +111,7 @@ def attach_managed_instances_to_lifecycle_stage(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def change_lifecycle_environment_compartment(ctx, from_json, lifecycle_environment_id, compartment_id, if_match): - if isinstance(lifecycle_environment_id, six.string_types) and len(lifecycle_environment_id.strip()) == 0: + if isinstance(lifecycle_environment_id, str) and len(lifecycle_environment_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-environment-id cannot be whitespace or empty string') kwargs = {} @@ -223,7 +222,7 @@ def create_lifecycle_environment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_lifecycle_environment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, lifecycle_environment_id, if_match): - if isinstance(lifecycle_environment_id, six.string_types) and len(lifecycle_environment_id.strip()) == 0: + if isinstance(lifecycle_environment_id, str) and len(lifecycle_environment_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-environment-id cannot be whitespace or empty string') kwargs = {} @@ -287,7 +286,7 @@ def delete_lifecycle_environment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def detach_managed_instances_from_lifecycle_stage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, lifecycle_stage_id, managed_instance_details, if_match): - if isinstance(lifecycle_stage_id, six.string_types) and len(lifecycle_stage_id.strip()) == 0: + if isinstance(lifecycle_stage_id, str) and len(lifecycle_stage_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-stage-id cannot be whitespace or empty string') kwargs = {} @@ -343,7 +342,7 @@ def detach_managed_instances_from_lifecycle_stage(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def get_lifecycle_environment(ctx, from_json, lifecycle_environment_id): - if isinstance(lifecycle_environment_id, six.string_types) and len(lifecycle_environment_id.strip()) == 0: + if isinstance(lifecycle_environment_id, str) and len(lifecycle_environment_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-environment-id cannot be whitespace or empty string') kwargs = {} @@ -365,7 +364,7 @@ def get_lifecycle_environment(ctx, from_json, lifecycle_environment_id): @cli_util.wrap_exceptions def get_lifecycle_stage(ctx, from_json, lifecycle_stage_id): - if isinstance(lifecycle_stage_id, six.string_types) and len(lifecycle_stage_id.strip()) == 0: + if isinstance(lifecycle_stage_id, str) and len(lifecycle_stage_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-stage-id cannot be whitespace or empty string') kwargs = {} @@ -485,7 +484,7 @@ def list_lifecycle_stage_installed_packages(ctx, from_json, all_pages, page_size if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(lifecycle_stage_id, six.string_types) and len(lifecycle_stage_id.strip()) == 0: + if isinstance(lifecycle_stage_id, str) and len(lifecycle_stage_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-stage-id cannot be whitespace or empty string') kwargs = {} @@ -631,7 +630,7 @@ def list_lifecycle_stages(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def promote_software_source_to_lifecycle_stage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, lifecycle_stage_id, work_request_details, software_source_id, if_match): - if isinstance(lifecycle_stage_id, six.string_types) and len(lifecycle_stage_id.strip()) == 0: + if isinstance(lifecycle_stage_id, str) and len(lifecycle_stage_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-stage-id cannot be whitespace or empty string') kwargs = {} @@ -697,7 +696,7 @@ def promote_software_source_to_lifecycle_stage(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def reboot_lifecycle_stage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, lifecycle_stage_id, reboot_timeout_in_mins, work_request_details, if_match): - if isinstance(lifecycle_stage_id, six.string_types) and len(lifecycle_stage_id.strip()) == 0: + if isinstance(lifecycle_stage_id, str) and len(lifecycle_stage_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-stage-id cannot be whitespace or empty string') kwargs = {} @@ -770,7 +769,7 @@ def reboot_lifecycle_stage(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_lifecycle_environment(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, lifecycle_environment_id, display_name, description, stages, freeform_tags, defined_tags, if_match): - if isinstance(lifecycle_environment_id, six.string_types) and len(lifecycle_environment_id.strip()) == 0: + if isinstance(lifecycle_environment_id, str) and len(lifecycle_environment_id.strip()) == 0: raise click.UsageError('Parameter --lifecycle-environment-id cannot be whitespace or empty string') if not force: if stages or freeform_tags or defined_tags: diff --git a/services/os_management_hub/src/oci_cli_managed_instance/generated/managedinstance_cli.py b/services/os_management_hub/src/oci_cli_managed_instance/generated/managedinstance_cli.py index 70be3b2d1..765d891b2 100644 --- a/services/os_management_hub/src/oci_cli_managed_instance/generated/managedinstance_cli.py +++ b/services/os_management_hub/src/oci_cli_managed_instance/generated/managedinstance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -62,7 +61,7 @@ def windows_update_group(): @cli_util.wrap_exceptions def associate_managed_instances_with_management_station(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_station_id, managed_instances, work_request_details, if_match): - if isinstance(management_station_id, six.string_types) and len(management_station_id.strip()) == 0: + if isinstance(management_station_id, str) and len(management_station_id.strip()) == 0: raise click.UsageError('Parameter --management-station-id cannot be whitespace or empty string') kwargs = {} @@ -123,7 +122,7 @@ def associate_managed_instances_with_management_station(ctx, from_json, wait_for @cli_util.wrap_exceptions def attach_profile_to_managed_instance(ctx, from_json, managed_instance_id, profile_id, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -158,7 +157,7 @@ def attach_profile_to_managed_instance(ctx, from_json, managed_instance_id, prof @cli_util.wrap_exceptions def attach_software_sources_to_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, software_sources, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -222,7 +221,7 @@ def attach_software_sources_to_managed_instance(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def delete_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -274,7 +273,7 @@ def delete_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def detach_profile_from_managed_instance(ctx, from_json, managed_instance_id, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -304,7 +303,7 @@ def detach_profile_from_managed_instance(ctx, from_json, managed_instance_id, if @cli_util.wrap_exceptions def detach_software_sources_from_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, software_sources, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -370,7 +369,7 @@ def detach_software_sources_from_managed_instance(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def disable_module_stream_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, module_name, stream_name, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -439,7 +438,7 @@ def disable_module_stream_on_managed_instance(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def enable_module_stream_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, module_name, stream_name, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -501,7 +500,7 @@ def enable_module_stream_on_managed_instance(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def get_managed_instance(ctx, from_json, managed_instance_id): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -523,7 +522,7 @@ def get_managed_instance(ctx, from_json, managed_instance_id): @cli_util.wrap_exceptions def get_windows_update(ctx, from_json, windows_update_id): - if isinstance(windows_update_id, six.string_types) and len(windows_update_id.strip()) == 0: + if isinstance(windows_update_id, str) and len(windows_update_id.strip()) == 0: raise click.UsageError('Parameter --windows-update-id cannot be whitespace or empty string') kwargs = {} @@ -617,7 +616,7 @@ def install_all_windows_updates_on_managed_instances_in_compartment(ctx, from_js @cli_util.wrap_exceptions def install_module_stream_profile_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, module_name, stream_name, profile_name, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -688,7 +687,7 @@ def install_module_stream_profile_on_managed_instance(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def install_packages_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, package_names, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -755,7 +754,7 @@ def install_packages_on_managed_instance(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def install_snaps_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, snap_details, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -823,7 +822,7 @@ def install_snaps_on_managed_instance(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def install_windows_updates_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, windows_update_name, windows_update_types, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -901,7 +900,7 @@ def list_managed_instance_available_packages(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -971,7 +970,7 @@ def list_managed_instance_available_software_sources(ctx, from_json, all_pages, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1044,7 +1043,7 @@ def list_managed_instance_available_windows_updates(ctx, from_json, all_pages, p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1123,7 +1122,7 @@ def list_managed_instance_errata(ctx, from_json, all_pages, page_size, managed_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1201,7 +1200,7 @@ def list_managed_instance_installed_packages(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1276,7 +1275,7 @@ def list_managed_instance_installed_windows_updates(ctx, from_json, all_pages, p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1351,7 +1350,7 @@ def list_managed_instance_modules(ctx, from_json, all_pages, page_size, wait_for if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1451,7 +1450,7 @@ def list_managed_instance_snaps(ctx, from_json, all_pages, page_size, wait_for_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1553,7 +1552,7 @@ def list_managed_instance_updatable_packages(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1835,7 +1834,7 @@ def list_windows_updates(ctx, from_json, all_pages, page_size, compartment_id, c @cli_util.wrap_exceptions def manage_module_streams_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, is_dry_run, enable, disable, install, remove, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1914,7 +1913,7 @@ def manage_module_streams_on_managed_instance(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def reboot_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, reboot_timeout_in_mins, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1979,7 +1978,7 @@ def reboot_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def refresh_software_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2038,7 +2037,7 @@ def refresh_software_on_managed_instance(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def remove_module_stream_profile_from_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, module_name, stream_name, profile_name, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2109,7 +2108,7 @@ def remove_module_stream_profile_from_managed_instance(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def remove_packages_from_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, package_names, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2174,7 +2173,7 @@ def remove_packages_from_managed_instance(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def remove_snaps_from_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, snap_details, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2241,7 +2240,7 @@ def remove_snaps_from_managed_instance(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def switch_module_stream_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, module_name, stream_name, work_request_details, software_source_id, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2310,7 +2309,7 @@ def switch_module_stream_on_managed_instance(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def switch_snap_channel_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, snap_details, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -2442,7 +2441,7 @@ def update_all_packages_on_managed_instances_in_compartment(ctx, from_json, wait @cli_util.wrap_exceptions def update_managed_instance(ctx, from_json, force, managed_instance_id, description, primary_management_station_id, secondary_management_station_id, notification_topic_id, autonomous_settings, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') if not force: if autonomous_settings: @@ -2496,7 +2495,7 @@ def update_managed_instance(ctx, from_json, force, managed_instance_id, descript @cli_util.wrap_exceptions def update_packages_on_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, package_names, update_types, work_request_details, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/os_management_hub/src/oci_cli_managed_instance_group/generated/managedinstancegroup_cli.py b/services/os_management_hub/src/oci_cli_managed_instance_group/generated/managedinstancegroup_cli.py index 10b5d0b8d..d9b240efe 100644 --- a/services/os_management_hub/src/oci_cli_managed_instance_group/generated/managedinstancegroup_cli.py +++ b/services/os_management_hub/src/oci_cli_managed_instance_group/generated/managedinstancegroup_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -48,7 +47,7 @@ def managed_instance_group_group(): @cli_util.wrap_exceptions def attach_managed_instances_to_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, managed_instances, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -113,7 +112,7 @@ def attach_managed_instances_to_managed_instance_group(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def attach_software_sources_to_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, software_sources, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -174,7 +173,7 @@ def attach_software_sources_to_managed_instance_group(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def change_managed_instance_group_compartment(ctx, from_json, managed_instance_group_id, compartment_id, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -297,7 +296,7 @@ def create_managed_instance_group(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -358,7 +357,7 @@ def delete_managed_instance_group(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def detach_managed_instances_from_managed_instance_group(ctx, from_json, managed_instance_group_id, managed_instances, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -390,7 +389,7 @@ def detach_managed_instances_from_managed_instance_group(ctx, from_json, managed @cli_util.wrap_exceptions def detach_software_sources_from_managed_instance_group(ctx, from_json, managed_instance_group_id, software_sources, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -430,7 +429,7 @@ def detach_software_sources_from_managed_instance_group(ctx, from_json, managed_ @cli_util.wrap_exceptions def disable_module_stream_on_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, module_name, stream_name, software_source_id, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -503,7 +502,7 @@ def disable_module_stream_on_managed_instance_group(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def enable_module_stream_on_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, module_name, stream_name, software_source_id, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -568,7 +567,7 @@ def enable_module_stream_on_managed_instance_group(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def get_managed_instance_group(ctx, from_json, managed_instance_group_id): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -599,7 +598,7 @@ def get_managed_instance_group(ctx, from_json, managed_instance_group_id): @cli_util.wrap_exceptions def install_module_stream_profile_on_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, module_name, stream_name, profile_name, software_source_id, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -674,7 +673,7 @@ def install_module_stream_profile_on_managed_instance_group(ctx, from_json, wait @cli_util.wrap_exceptions def install_packages_on_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, package_names, work_request_details, is_latest, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -742,7 +741,7 @@ def install_packages_on_managed_instance_group(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def install_windows_updates_on_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, windows_update_types, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -817,7 +816,7 @@ def list_managed_instance_group_available_modules(ctx, from_json, all_pages, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -888,7 +887,7 @@ def list_managed_instance_group_available_packages(ctx, from_json, all_pages, pa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -960,7 +959,7 @@ def list_managed_instance_group_available_software_sources(ctx, from_json, all_p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1036,7 +1035,7 @@ def list_managed_instance_group_installed_packages(ctx, from_json, all_pages, pa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1112,7 +1111,7 @@ def list_managed_instance_group_managed_instances(ctx, from_json, all_pages, pag if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1196,7 +1195,7 @@ def list_managed_instance_group_modules(ctx, from_json, all_pages, page_size, wa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1384,7 +1383,7 @@ def list_managed_instance_groups(ctx, from_json, all_pages, page_size, compartme @cli_util.wrap_exceptions def manage_module_streams_on_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, is_dry_run, enable, disable, install, remove, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1463,7 +1462,7 @@ def manage_module_streams_on_managed_instance_group(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def reboot_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, reboot_timeout_in_mins, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1528,7 +1527,7 @@ def reboot_managed_instance_group(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def refresh_software_on_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1588,7 +1587,7 @@ def refresh_software_on_managed_instance_group(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def remove_module_stream_profile_from_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, module_name, stream_name, profile_name, software_source_id, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1662,7 +1661,7 @@ def remove_module_stream_profile_from_managed_instance_group(ctx, from_json, wai @cli_util.wrap_exceptions def remove_packages_from_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, package_names, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1729,7 +1728,7 @@ def remove_packages_from_managed_instance_group(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def switch_module_stream_on_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, module_name, stream_name, software_source_id, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1798,7 +1797,7 @@ def switch_module_stream_on_managed_instance_group(ctx, from_json, wait_for_stat @cli_util.wrap_exceptions def update_all_packages_on_managed_instance_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, update_types, work_request_details, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') kwargs = {} @@ -1870,7 +1869,7 @@ def update_all_packages_on_managed_instance_group(ctx, from_json, wait_for_state @cli_util.wrap_exceptions def update_managed_instance_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_group_id, display_name, description, notification_topic_id, autonomous_settings, freeform_tags, defined_tags, if_match): - if isinstance(managed_instance_group_id, six.string_types) and len(managed_instance_group_id.strip()) == 0: + if isinstance(managed_instance_group_id, str) and len(managed_instance_group_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-group-id cannot be whitespace or empty string') if not force: if autonomous_settings or freeform_tags or defined_tags: diff --git a/services/os_management_hub/src/oci_cli_management_station/generated/managementstation_cli.py b/services/os_management_hub/src/oci_cli_management_station/generated/managementstation_cli.py index a94b109bd..a11c6bf61 100644 --- a/services/os_management_hub/src/oci_cli_management_station/generated/managementstation_cli.py +++ b/services/os_management_hub/src/oci_cli_management_station/generated/managementstation_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -51,7 +50,7 @@ def management_station_group(): @cli_util.wrap_exceptions def change_management_station_compartment(ctx, from_json, management_station_id, compartment_id, if_match): - if isinstance(management_station_id, six.string_types) and len(management_station_id.strip()) == 0: + if isinstance(management_station_id, str) and len(management_station_id.strip()) == 0: raise click.UsageError('Parameter --management-station-id cannot be whitespace or empty string') kwargs = {} @@ -166,7 +165,7 @@ def create_management_station(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_management_station(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_station_id, if_match): - if isinstance(management_station_id, six.string_types) and len(management_station_id.strip()) == 0: + if isinstance(management_station_id, str) and len(management_station_id.strip()) == 0: raise click.UsageError('Parameter --management-station-id cannot be whitespace or empty string') kwargs = {} @@ -225,7 +224,7 @@ def delete_management_station(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_management_station(ctx, from_json, management_station_id): - if isinstance(management_station_id, six.string_types) and len(management_station_id.strip()) == 0: + if isinstance(management_station_id, str) and len(management_station_id.strip()) == 0: raise click.UsageError('Parameter --management-station-id cannot be whitespace or empty string') kwargs = {} @@ -344,7 +343,7 @@ def list_mirrors(ctx, from_json, all_pages, page_size, management_station_id, di if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(management_station_id, six.string_types) and len(management_station_id.strip()) == 0: + if isinstance(management_station_id, str) and len(management_station_id.strip()) == 0: raise click.UsageError('Parameter --management-station-id cannot be whitespace or empty string') kwargs = {} @@ -402,7 +401,7 @@ def list_mirrors(ctx, from_json, all_pages, page_size, management_station_id, di @cli_util.wrap_exceptions def refresh_management_station_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_station_id, if_match): - if isinstance(management_station_id, six.string_types) and len(management_station_id.strip()) == 0: + if isinstance(management_station_id, str) and len(management_station_id.strip()) == 0: raise click.UsageError('Parameter --management-station-id cannot be whitespace or empty string') kwargs = {} @@ -458,7 +457,7 @@ def refresh_management_station_config(ctx, from_json, wait_for_state, max_wait_s @cli_util.wrap_exceptions def synchronize_mirrors(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_station_id, software_source_list, if_match): - if isinstance(management_station_id, six.string_types) and len(management_station_id.strip()) == 0: + if isinstance(management_station_id, str) and len(management_station_id.strip()) == 0: raise click.UsageError('Parameter --management-station-id cannot be whitespace or empty string') kwargs = {} @@ -519,10 +518,10 @@ def synchronize_mirrors(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def synchronize_single_mirrors(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, management_station_id, mirror_id, if_match): - if isinstance(management_station_id, six.string_types) and len(management_station_id.strip()) == 0: + if isinstance(management_station_id, str) and len(management_station_id.strip()) == 0: raise click.UsageError('Parameter --management-station-id cannot be whitespace or empty string') - if isinstance(mirror_id, six.string_types) and len(mirror_id.strip()) == 0: + if isinstance(mirror_id, str) and len(mirror_id.strip()) == 0: raise click.UsageError('Parameter --mirror-id cannot be whitespace or empty string') kwargs = {} @@ -589,7 +588,7 @@ def synchronize_single_mirrors(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_management_station(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, management_station_id, display_name, description, hostname, is_auto_config_enabled, os_family, arch_type, proxy_parameterconflict, mirror, freeform_tags, defined_tags, if_match): - if isinstance(management_station_id, six.string_types) and len(management_station_id.strip()) == 0: + if isinstance(management_station_id, str) and len(management_station_id.strip()) == 0: raise click.UsageError('Parameter --management-station-id cannot be whitespace or empty string') if not force: if proxy_parameterconflict or mirror or freeform_tags or defined_tags: diff --git a/services/os_management_hub/src/oci_cli_onboarding/generated/onboarding_cli.py b/services/os_management_hub/src/oci_cli_onboarding/generated/onboarding_cli.py index feea7a528..a5f0e08fb 100644 --- a/services/os_management_hub/src/oci_cli_onboarding/generated/onboarding_cli.py +++ b/services/os_management_hub/src/oci_cli_onboarding/generated/onboarding_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -51,7 +50,7 @@ def profile_group(): @cli_util.wrap_exceptions def attach_lifecycle_stage_to_profile(ctx, from_json, profile_id, lifecycle_stage_id, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -82,7 +81,7 @@ def attach_lifecycle_stage_to_profile(ctx, from_json, profile_id, lifecycle_stag @cli_util.wrap_exceptions def attach_managed_instance_group_to_profile(ctx, from_json, profile_id, managed_instance_group_id, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -113,7 +112,7 @@ def attach_managed_instance_group_to_profile(ctx, from_json, profile_id, managed @cli_util.wrap_exceptions def attach_management_station_to_profile(ctx, from_json, profile_id, management_station_id, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -144,7 +143,7 @@ def attach_management_station_to_profile(ctx, from_json, profile_id, management_ @cli_util.wrap_exceptions def attach_software_sources_to_profile(ctx, from_json, profile_id, software_sources, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -175,7 +174,7 @@ def attach_software_sources_to_profile(ctx, from_json, profile_id, software_sour @cli_util.wrap_exceptions def change_profile_compartment(ctx, from_json, profile_id, compartment_id, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -788,7 +787,7 @@ def create_profile_create_lifecycle_profile_details(ctx, from_json, wait_for_sta @cli_util.wrap_exceptions def delete_profile(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, profile_id, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -849,7 +848,7 @@ def delete_profile(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def detach_management_station_from_profile(ctx, from_json, profile_id, management_station_id, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -880,7 +879,7 @@ def detach_management_station_from_profile(ctx, from_json, profile_id, managemen @cli_util.wrap_exceptions def detach_software_sources_from_profile(ctx, from_json, profile_id, software_sources, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -909,7 +908,7 @@ def detach_software_sources_from_profile(ctx, from_json, profile_id, software_so @cli_util.wrap_exceptions def get_profile(ctx, from_json, profile_id): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -932,10 +931,10 @@ def get_profile(ctx, from_json, profile_id): @cli_util.wrap_exceptions def get_profile_version(ctx, from_json, profile_id, profile_version): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') - if isinstance(profile_version, six.string_types) and len(profile_version.strip()) == 0: + if isinstance(profile_version, str) and len(profile_version.strip()) == 0: raise click.UsageError('Parameter --profile-version cannot be whitespace or empty string') kwargs = {} @@ -974,7 +973,7 @@ def list_profile_available_software_sources(ctx, from_json, all_pages, page_size if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') kwargs = {} @@ -1137,7 +1136,7 @@ def list_profiles(ctx, from_json, all_pages, page_size, compartment_id, display_ @cli_util.wrap_exceptions def update_profile(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, profile_id, display_name, description, is_default_profile, freeform_tags, defined_tags, if_match): - if isinstance(profile_id, six.string_types) and len(profile_id.strip()) == 0: + if isinstance(profile_id, str) and len(profile_id.strip()) == 0: raise click.UsageError('Parameter --profile-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/os_management_hub/src/oci_cli_reporting_managed_instance/generated/reportingmanagedinstance_cli.py b/services/os_management_hub/src/oci_cli_reporting_managed_instance/generated/reportingmanagedinstance_cli.py index 37c655e0e..24bd0ef7d 100644 --- a/services/os_management_hub/src/oci_cli_reporting_managed_instance/generated/reportingmanagedinstance_cli.py +++ b/services/os_management_hub/src/oci_cli_reporting_managed_instance/generated/reportingmanagedinstance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -162,7 +161,7 @@ def get_managed_instance_analytic_content(ctx, from_json, file, compartment_id, @cli_util.wrap_exceptions def get_managed_instance_content(ctx, from_json, file, managed_instance_id, vulnerability_type, advisory_name, advisory_name_contains, advisory_type, vulnerability_name, vulnerability_name_contains, report_format): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/os_management_hub/src/oci_cli_scheduled_job/generated/scheduledjob_cli.py b/services/os_management_hub/src/oci_cli_scheduled_job/generated/scheduledjob_cli.py index 3efd7bd05..dd9f4a2ad 100644 --- a/services/os_management_hub/src/oci_cli_scheduled_job/generated/scheduledjob_cli.py +++ b/services/os_management_hub/src/oci_cli_scheduled_job/generated/scheduledjob_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -44,7 +43,7 @@ def scheduled_job_group(): @cli_util.wrap_exceptions def change_scheduled_job_compartment(ctx, from_json, scheduled_job_id, compartment_id, if_match): - if isinstance(scheduled_job_id, six.string_types) and len(scheduled_job_id.strip()) == 0: + if isinstance(scheduled_job_id, str) and len(scheduled_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-job-id cannot be whitespace or empty string') kwargs = {} @@ -195,7 +194,7 @@ def create_scheduled_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_scheduled_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduled_job_id, if_match): - if isinstance(scheduled_job_id, six.string_types) and len(scheduled_job_id.strip()) == 0: + if isinstance(scheduled_job_id, str) and len(scheduled_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-job-id cannot be whitespace or empty string') kwargs = {} @@ -254,7 +253,7 @@ def delete_scheduled_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def get_scheduled_job(ctx, from_json, scheduled_job_id): - if isinstance(scheduled_job_id, six.string_types) and len(scheduled_job_id.strip()) == 0: + if isinstance(scheduled_job_id, str) and len(scheduled_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-job-id cannot be whitespace or empty string') kwargs = {} @@ -392,7 +391,7 @@ def list_scheduled_jobs(ctx, from_json, all_pages, page_size, compartment_id, di @cli_util.wrap_exceptions def run_scheduled_job_now(ctx, from_json, scheduled_job_id, if_match): - if isinstance(scheduled_job_id, six.string_types) and len(scheduled_job_id.strip()) == 0: + if isinstance(scheduled_job_id, str) and len(scheduled_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-job-id cannot be whitespace or empty string') kwargs = {} @@ -432,7 +431,7 @@ def run_scheduled_job_now(ctx, from_json, scheduled_job_id, if_match): @cli_util.wrap_exceptions def update_scheduled_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, scheduled_job_id, display_name, description, schedule_type, time_next_execution, recurring_rule, operations, freeform_tags, defined_tags, retry_intervals, if_match): - if isinstance(scheduled_job_id, six.string_types) and len(scheduled_job_id.strip()) == 0: + if isinstance(scheduled_job_id, str) and len(scheduled_job_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-job-id cannot be whitespace or empty string') if not force: if operations or freeform_tags or defined_tags or retry_intervals: diff --git a/services/os_management_hub/src/oci_cli_software_source/generated/softwaresource_cli.py b/services/os_management_hub/src/oci_cli_software_source/generated/softwaresource_cli.py index 758a137df..e3f9f3972 100644 --- a/services/os_management_hub/src/oci_cli_software_source/generated/softwaresource_cli.py +++ b/services/os_management_hub/src/oci_cli_software_source/generated/softwaresource_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -76,7 +75,7 @@ def package_group_group(): @cli_util.wrap_exceptions def add_packages_to_software_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, packages, is_continue_on_missing_packages, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -160,7 +159,7 @@ def change_availability_of_software_sources(ctx, from_json, software_source_avai @cli_util.wrap_exceptions def change_software_source_compartment(ctx, from_json, software_source_id, compartment_id, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -763,7 +762,7 @@ def create_software_source_create_third_party_software_source_details(ctx, from_ @cli_util.wrap_exceptions def delete_software_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -823,7 +822,7 @@ def delete_software_source(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def get_erratum(ctx, from_json, compartment_id, name): - if isinstance(name, six.string_types) and len(name.strip()) == 0: + if isinstance(name, str) and len(name.strip()) == 0: raise click.UsageError('Parameter --name cannot be whitespace or empty string') kwargs = {} @@ -848,10 +847,10 @@ def get_erratum(ctx, from_json, compartment_id, name): @cli_util.wrap_exceptions def get_module_stream(ctx, from_json, software_source_id, module_name, stream_name): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') - if isinstance(module_name, six.string_types) and len(module_name.strip()) == 0: + if isinstance(module_name, str) and len(module_name.strip()) == 0: raise click.UsageError('Parameter --module-name cannot be whitespace or empty string') kwargs = {} @@ -878,10 +877,10 @@ def get_module_stream(ctx, from_json, software_source_id, module_name, stream_na @cli_util.wrap_exceptions def get_module_stream_profile(ctx, from_json, software_source_id, profile_name, module_name, stream_name): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') - if isinstance(profile_name, six.string_types) and len(profile_name.strip()) == 0: + if isinstance(profile_name, str) and len(profile_name.strip()) == 0: raise click.UsageError('Parameter --profile-name cannot be whitespace or empty string') kwargs = {} @@ -907,10 +906,10 @@ def get_module_stream_profile(ctx, from_json, software_source_id, profile_name, @cli_util.wrap_exceptions def get_package_group(ctx, from_json, software_source_id, package_group_id): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') - if isinstance(package_group_id, six.string_types) and len(package_group_id.strip()) == 0: + if isinstance(package_group_id, str) and len(package_group_id.strip()) == 0: raise click.UsageError('Parameter --package-group-id cannot be whitespace or empty string') kwargs = {} @@ -934,10 +933,10 @@ def get_package_group(ctx, from_json, software_source_id, package_group_id): @cli_util.wrap_exceptions def get_software_package(ctx, from_json, software_source_id, software_package_name): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') - if isinstance(software_package_name, six.string_types) and len(software_package_name.strip()) == 0: + if isinstance(software_package_name, str) and len(software_package_name.strip()) == 0: raise click.UsageError('Parameter --software-package-name cannot be whitespace or empty string') kwargs = {} @@ -960,7 +959,7 @@ def get_software_package(ctx, from_json, software_source_id, software_package_na @cli_util.wrap_exceptions def get_software_package_by_name(ctx, from_json, software_package_name): - if isinstance(software_package_name, six.string_types) and len(software_package_name.strip()) == 0: + if isinstance(software_package_name, str) and len(software_package_name.strip()) == 0: raise click.UsageError('Parameter --software-package-name cannot be whitespace or empty string') kwargs = {} @@ -982,7 +981,7 @@ def get_software_package_by_name(ctx, from_json, software_package_name): @cli_util.wrap_exceptions def get_software_source(ctx, from_json, software_source_id): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -1005,7 +1004,7 @@ def get_software_source(ctx, from_json, software_source_id): @cli_util.wrap_exceptions def get_software_source_manifest(ctx, from_json, file, software_source_id): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -1137,7 +1136,7 @@ def list_available_software_packages(ctx, from_json, all_pages, page_size, softw if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -1432,7 +1431,7 @@ def list_module_stream_profiles(ctx, from_json, all_pages, page_size, software_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -1503,7 +1502,7 @@ def list_module_streams(ctx, from_json, all_pages, page_size, software_source_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -1576,7 +1575,7 @@ def list_package_groups(ctx, from_json, all_pages, page_size, software_source_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -1655,7 +1654,7 @@ def list_software_package_software_sources(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(software_package_name, six.string_types) and len(software_package_name.strip()) == 0: + if isinstance(software_package_name, str) and len(software_package_name.strip()) == 0: raise click.UsageError('Parameter --software-package-name cannot be whitespace or empty string') kwargs = {} @@ -1740,7 +1739,7 @@ def list_software_packages(ctx, from_json, all_pages, page_size, software_source if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -1927,7 +1926,7 @@ def list_software_sources(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def remove_packages_from_software_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, packages, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -1988,7 +1987,7 @@ def remove_packages_from_software_source(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def replace_packages_in_software_source(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, packages, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -2188,7 +2187,7 @@ def search_software_source_package_groups(ctx, from_json, software_source_ids, s @cli_util.wrap_exceptions def software_source_generate_metadata(ctx, from_json, software_source_id, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} @@ -2223,7 +2222,7 @@ def software_source_generate_metadata(ctx, from_json, software_source_id, if_mat @cli_util.wrap_exceptions def update_software_source(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, compartment_id, display_name, description, software_source_type, freeform_tags, defined_tags, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2317,7 +2316,7 @@ def update_software_source(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_software_source_update_custom_software_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, compartment_id, display_name, description, freeform_tags, defined_tags, vendor_software_sources, custom_software_source_filter, is_automatically_updated, is_auto_resolve_dependencies, is_latest_content_only, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or vendor_software_sources or custom_software_source_filter: @@ -2424,7 +2423,7 @@ def update_software_source_update_custom_software_source_details(ctx, from_json, @cli_util.wrap_exceptions def update_software_source_update_private_software_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, compartment_id, display_name, description, freeform_tags, defined_tags, url, gpg_key_url, is_gpg_check_enabled, is_ssl_verify_enabled, advanced_repo_options, is_mirror_sync_allowed, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2528,7 +2527,7 @@ def update_software_source_update_private_software_source_details(ctx, from_json @cli_util.wrap_exceptions def update_software_source_update_versioned_custom_software_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, compartment_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2614,7 +2613,7 @@ def update_software_source_update_versioned_custom_software_source_details(ctx, @cli_util.wrap_exceptions def update_software_source_update_vendor_software_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, compartment_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2706,7 +2705,7 @@ def update_software_source_update_vendor_software_source_details(ctx, from_json, @cli_util.wrap_exceptions def update_software_source_update_third_party_software_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, software_source_id, compartment_id, display_name, description, freeform_tags, defined_tags, url, gpg_key_url, is_gpg_check_enabled, is_ssl_verify_enabled, advanced_repo_options, is_mirror_sync_allowed, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2805,7 +2804,7 @@ def update_software_source_update_third_party_software_source_details(ctx, from_ @cli_util.wrap_exceptions def update_software_source_manifest(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, update_software_source_manifest_details, software_source_id, if_match): - if isinstance(software_source_id, six.string_types) and len(software_source_id.strip()) == 0: + if isinstance(software_source_id, str) and len(software_source_id.strip()) == 0: raise click.UsageError('Parameter --software-source-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/os_management_hub/src/oci_cli_work_request/generated/workrequest_cli.py b/services/os_management_hub/src/oci_cli_work_request/generated/workrequest_cli.py index 6132e2903..777c96d6f 100644 --- a/services/os_management_hub/src/oci_cli_work_request/generated/workrequest_cli.py +++ b/services/os_management_hub/src/oci_cli_work_request/generated/workrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -42,7 +41,7 @@ def work_request_group(): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -77,7 +76,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -138,7 +137,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -291,7 +290,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def rerun_work_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, work_request_id, managed_instances, work_request_details, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/osp_gateway/src/oci_cli_address_rule_service/generated/addressruleservice_cli.py b/services/osp_gateway/src/oci_cli_address_rule_service/generated/addressruleservice_cli.py index 5ee0ef85c..fba74257f 100644 --- a/services/osp_gateway/src/oci_cli_address_rule_service/generated/addressruleservice_cli.py +++ b/services/osp_gateway/src/oci_cli_address_rule_service/generated/addressruleservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -43,7 +42,7 @@ def address_rule_group(): @cli_util.wrap_exceptions def get_address_rule(ctx, from_json, osp_home_region, compartment_id, country_code): - if isinstance(country_code, six.string_types) and len(country_code.strip()) == 0: + if isinstance(country_code, str) and len(country_code.strip()) == 0: raise click.UsageError('Parameter --country-code cannot be whitespace or empty string') kwargs = {} diff --git a/services/osp_gateway/src/oci_cli_address_service/generated/addressservice_cli.py b/services/osp_gateway/src/oci_cli_address_service/generated/addressservice_cli.py index 953ce2cd6..c57e93d84 100644 --- a/services/osp_gateway/src/oci_cli_address_service/generated/addressservice_cli.py +++ b/services/osp_gateway/src/oci_cli_address_service/generated/addressservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -43,7 +42,7 @@ def address_group(): @cli_util.wrap_exceptions def get_address(ctx, from_json, osp_home_region, compartment_id, address_id): - if isinstance(address_id, six.string_types) and len(address_id.strip()) == 0: + if isinstance(address_id, str) and len(address_id.strip()) == 0: raise click.UsageError('Parameter --address-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/osp_gateway/src/oci_cli_invoice_service/generated/invoiceservice_cli.py b/services/osp_gateway/src/oci_cli_invoice_service/generated/invoiceservice_cli.py index cebe95cba..9cdf6ed3c 100644 --- a/services/osp_gateway/src/oci_cli_invoice_service/generated/invoiceservice_cli.py +++ b/services/osp_gateway/src/oci_cli_invoice_service/generated/invoiceservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -44,7 +43,7 @@ def invoice_group(): @cli_util.wrap_exceptions def download_pdf_content(ctx, from_json, file, osp_home_region, compartment_id, internal_invoice_id): - if isinstance(internal_invoice_id, six.string_types) and len(internal_invoice_id.strip()) == 0: + if isinstance(internal_invoice_id, str) and len(internal_invoice_id.strip()) == 0: raise click.UsageError('Parameter --internal-invoice-id cannot be whitespace or empty string') kwargs = {} @@ -92,7 +91,7 @@ def download_pdf_content(ctx, from_json, file, osp_home_region, compartment_id, @cli_util.wrap_exceptions def get_invoice(ctx, from_json, osp_home_region, compartment_id, internal_invoice_id): - if isinstance(internal_invoice_id, six.string_types) and len(internal_invoice_id.strip()) == 0: + if isinstance(internal_invoice_id, str) and len(internal_invoice_id.strip()) == 0: raise click.UsageError('Parameter --internal-invoice-id cannot be whitespace or empty string') kwargs = {} @@ -125,7 +124,7 @@ def list_invoice_lines(ctx, from_json, all_pages, page_size, osp_home_region, co if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(internal_invoice_id, six.string_types) and len(internal_invoice_id.strip()) == 0: + if isinstance(internal_invoice_id, str) and len(internal_invoice_id.strip()) == 0: raise click.UsageError('Parameter --internal-invoice-id cannot be whitespace or empty string') kwargs = {} @@ -263,7 +262,7 @@ def list_invoices(ctx, from_json, all_pages, page_size, osp_home_region, compart @cli_util.wrap_exceptions def pay_invoice(ctx, from_json, osp_home_region, internal_invoice_id, compartment_id, email, language_code, return_url, if_match): - if isinstance(internal_invoice_id, six.string_types) and len(internal_invoice_id.strip()) == 0: + if isinstance(internal_invoice_id, str) and len(internal_invoice_id.strip()) == 0: raise click.UsageError('Parameter --internal-invoice-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/osp_gateway/src/oci_cli_subscription_service/generated/subscriptionservice_cli.py b/services/osp_gateway/src/oci_cli_subscription_service/generated/subscriptionservice_cli.py index 0da1a9aec..3acb6f0f7 100644 --- a/services/osp_gateway/src/oci_cli_subscription_service/generated/subscriptionservice_cli.py +++ b/services/osp_gateway/src/oci_cli_subscription_service/generated/subscriptionservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -47,7 +46,7 @@ def subscription_group(): @cli_util.wrap_exceptions def authorize_subscription_payment(ctx, from_json, osp_home_region, subscription_id, compartment_id, subscription, language_code, email, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -82,7 +81,7 @@ def authorize_subscription_payment(ctx, from_json, osp_home_region, subscription @cli_util.wrap_exceptions def get_subscription(ctx, from_json, subscription_id, osp_home_region, compartment_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -170,7 +169,7 @@ def list_subscriptions(ctx, from_json, all_pages, page_size, osp_home_region, co @cli_util.wrap_exceptions def pay_subscription(ctx, from_json, osp_home_region, subscription_id, compartment_id, subscription, language_code, email, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -209,7 +208,7 @@ def pay_subscription(ctx, from_json, osp_home_region, subscription_id, compartme @cli_util.wrap_exceptions def update_subscription(ctx, from_json, force, subscription_id, osp_home_region, compartment_id, subscription, email, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') if not force: if subscription: diff --git a/services/osub_billing_schedule/src/oci_cli_billing_schedule/generated/billingschedule_cli.py b/services/osub_billing_schedule/src/oci_cli_billing_schedule/generated/billingschedule_cli.py index 2506024be..8f46dcb71 100644 --- a/services/osub_billing_schedule/src/oci_cli_billing_schedule/generated/billingschedule_cli.py +++ b/services/osub_billing_schedule/src/oci_cli_billing_schedule/generated/billingschedule_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 diff --git a/services/osub_organization_subscription/src/oci_cli_organization_subscription/generated/organizationsubscription_cli.py b/services/osub_organization_subscription/src/oci_cli_organization_subscription/generated/organizationsubscription_cli.py index 7ae212a80..f69875aab 100644 --- a/services/osub_organization_subscription/src/oci_cli_organization_subscription/generated/organizationsubscription_cli.py +++ b/services/osub_organization_subscription/src/oci_cli_organization_subscription/generated/organizationsubscription_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 diff --git a/services/osub_subscription/src/oci_cli_commitment/generated/commitment_cli.py b/services/osub_subscription/src/oci_cli_commitment/generated/commitment_cli.py index 5e3bfb165..caed21b3b 100644 --- a/services/osub_subscription/src/oci_cli_commitment/generated/commitment_cli.py +++ b/services/osub_subscription/src/oci_cli_commitment/generated/commitment_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -50,7 +49,7 @@ def commitment_group(): @cli_util.wrap_exceptions def get_commitment(ctx, from_json, commitment_id, x_one_gateway_subscription_id, x_one_origin_region): - if isinstance(commitment_id, six.string_types) and len(commitment_id.strip()) == 0: + if isinstance(commitment_id, str) and len(commitment_id.strip()) == 0: raise click.UsageError('Parameter --commitment-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/osub_subscription/src/oci_cli_ratecard/generated/ratecard_cli.py b/services/osub_subscription/src/oci_cli_ratecard/generated/ratecard_cli.py index be3a7b2d7..5aa5a91f8 100644 --- a/services/osub_subscription/src/oci_cli_ratecard/generated/ratecard_cli.py +++ b/services/osub_subscription/src/oci_cli_ratecard/generated/ratecard_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/osub_subscription/src/oci_cli_subscription/generated/subscription_cli.py b/services/osub_subscription/src/oci_cli_subscription/generated/subscription_cli.py index ab53d3cac..70731c82c 100644 --- a/services/osub_subscription/src/oci_cli_subscription/generated/subscription_cli.py +++ b/services/osub_subscription/src/oci_cli_subscription/generated/subscription_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/osub_usage/src/oci_cli_computed_usage/generated/computedusage_cli.py b/services/osub_usage/src/oci_cli_computed_usage/generated/computedusage_cli.py index d87705754..762fbbbdd 100644 --- a/services/osub_usage/src/oci_cli_computed_usage/generated/computedusage_cli.py +++ b/services/osub_usage/src/oci_cli_computed_usage/generated/computedusage_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -50,7 +49,7 @@ def computed_usage_group(): @cli_util.wrap_exceptions def get_computed_usage(ctx, from_json, computed_usage_id, compartment_id, fields, x_one_origin_region): - if isinstance(computed_usage_id, six.string_types) and len(computed_usage_id.strip()) == 0: + if isinstance(computed_usage_id, str) and len(computed_usage_id.strip()) == 0: raise click.UsageError('Parameter --computed-usage-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/psa/src/oci_cli_private_service_access/generated/privateserviceaccess_cli.py b/services/psa/src/oci_cli_private_service_access/generated/privateserviceaccess_cli.py index 427160777..2b7b6fd68 100644 --- a/services/psa/src/oci_cli_private_service_access/generated/privateserviceaccess_cli.py +++ b/services/psa/src/oci_cli_private_service_access/generated/privateserviceaccess_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -77,7 +76,7 @@ def psa_service_collection_group(): @cli_util.wrap_exceptions def cancel_psa_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -106,7 +105,7 @@ def cancel_psa_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_private_service_access_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_service_access_id, compartment_id, if_match): - if isinstance(private_service_access_id, six.string_types) and len(private_service_access_id.strip()) == 0: + if isinstance(private_service_access_id, str) and len(private_service_access_id.strip()) == 0: raise click.UsageError('Parameter --private-service-access-id cannot be whitespace or empty string') kwargs = {} @@ -258,7 +257,7 @@ def create_private_service_access(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_private_service_access(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_service_access_id, if_match): - if isinstance(private_service_access_id, six.string_types) and len(private_service_access_id.strip()) == 0: + if isinstance(private_service_access_id, str) and len(private_service_access_id.strip()) == 0: raise click.UsageError('Parameter --private-service-access-id cannot be whitespace or empty string') kwargs = {} @@ -309,7 +308,7 @@ def delete_private_service_access(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def get_private_service_access(ctx, from_json, private_service_access_id): - if isinstance(private_service_access_id, six.string_types) and len(private_service_access_id.strip()) == 0: + if isinstance(private_service_access_id, str) and len(private_service_access_id.strip()) == 0: raise click.UsageError('Parameter --private-service-access-id cannot be whitespace or empty string') kwargs = {} @@ -331,7 +330,7 @@ def get_private_service_access(ctx, from_json, private_service_access_id): @cli_util.wrap_exceptions def get_psa_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -486,7 +485,7 @@ def list_psa_work_request_errors(ctx, from_json, all_pages, page_size, work_requ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -543,7 +542,7 @@ def list_psa_work_request_logs(ctx, from_json, all_pages, page_size, work_reques if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -670,7 +669,7 @@ def list_psa_work_requests(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def update_private_service_access(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, private_service_access_id, defined_tags, freeform_tags, security_attributes, display_name, description, nsg_ids, if_match): - if isinstance(private_service_access_id, six.string_types) and len(private_service_access_id.strip()) == 0: + if isinstance(private_service_access_id, str) and len(private_service_access_id.strip()) == 0: raise click.UsageError('Parameter --private-service-access-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or security_attributes or nsg_ids: diff --git a/services/psql/src/oci_cli_postgresql/generated/postgresql_cli.py b/services/psql/src/oci_cli_postgresql/generated/postgresql_cli.py index f8e3cc1cd..25b1e45df 100644 --- a/services/psql/src/oci_cli_postgresql/generated/postgresql_cli.py +++ b/services/psql/src/oci_cli_postgresql/generated/postgresql_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -153,7 +152,7 @@ def backup_collection_group(): @cli_util.wrap_exceptions def backup_copy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, compartment_id, regions, retention_period, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -218,7 +217,7 @@ def backup_copy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def change_backup_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, compartment_id, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -276,7 +275,7 @@ def change_backup_compartment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_configuration_compartment(ctx, from_json, configuration_id, compartment_id, if_match): - if isinstance(configuration_id, six.string_types) and len(configuration_id.strip()) == 0: + if isinstance(configuration_id, str) and len(configuration_id.strip()) == 0: raise click.UsageError('Parameter --configuration-id cannot be whitespace or empty string') kwargs = {} @@ -310,7 +309,7 @@ def change_configuration_compartment(ctx, from_json, configuration_id, compartme @cli_util.wrap_exceptions def change_db_system_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, compartment_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -371,7 +370,7 @@ def change_db_system_compartment(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def change_role_to_replica(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, primary_db_system_id, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -432,7 +431,7 @@ def change_role_to_replica(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def change_role_to_standalone(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, change_mode, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1652,7 +1651,7 @@ def create_db_system_enabled_insight_details(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def delete_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -1708,7 +1707,7 @@ def delete_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_id, if_match): - if isinstance(configuration_id, six.string_types) and len(configuration_id.strip()) == 0: + if isinstance(configuration_id, str) and len(configuration_id.strip()) == 0: raise click.UsageError('Parameter --configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1772,7 +1771,7 @@ def delete_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1829,7 +1828,7 @@ def delete_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def failover_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, ad, db_instance_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1890,7 +1889,7 @@ def failover_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_backup(ctx, from_json, backup_id): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -1912,7 +1911,7 @@ def get_backup(ctx, from_json, backup_id): @cli_util.wrap_exceptions def get_configuration(ctx, from_json, configuration_id): - if isinstance(configuration_id, six.string_types) and len(configuration_id.strip()) == 0: + if isinstance(configuration_id, str) and len(configuration_id.strip()) == 0: raise click.UsageError('Parameter --configuration-id cannot be whitespace or empty string') kwargs = {} @@ -1934,7 +1933,7 @@ def get_configuration(ctx, from_json, configuration_id): @cli_util.wrap_exceptions def get_connection_details(ctx, from_json, db_system_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1957,7 +1956,7 @@ def get_connection_details(ctx, from_json, db_system_id): @cli_util.wrap_exceptions def get_db_system(ctx, from_json, db_system_id, excluded_fields): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -1981,7 +1980,7 @@ def get_db_system(ctx, from_json, db_system_id, excluded_fields): @cli_util.wrap_exceptions def get_default_configuration(ctx, from_json, default_configuration_id): - if isinstance(default_configuration_id, six.string_types) and len(default_configuration_id.strip()) == 0: + if isinstance(default_configuration_id, str) and len(default_configuration_id.strip()) == 0: raise click.UsageError('Parameter --default-configuration-id cannot be whitespace or empty string') kwargs = {} @@ -2003,7 +2002,7 @@ def get_default_configuration(ctx, from_json, default_configuration_id): @cli_util.wrap_exceptions def get_pitr_details(ctx, from_json, db_system_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2025,7 +2024,7 @@ def get_pitr_details(ctx, from_json, db_system_id): @cli_util.wrap_exceptions def get_primary_db_instance(ctx, from_json, db_system_id): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2047,7 +2046,7 @@ def get_primary_db_instance(ctx, from_json, db_system_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2227,7 +2226,7 @@ def list_db_system_replicas(ctx, from_json, all_pages, page_size, db_system_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2516,7 +2515,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2573,7 +2572,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2690,7 +2689,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def patch_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, items, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2753,7 +2752,7 @@ def patch_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def reset_master_user_password(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, password_details, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2814,7 +2813,7 @@ def reset_master_user_password(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def reset_master_user_password_plain_text_password_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, password_details_password, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2879,7 +2878,7 @@ def reset_master_user_password_plain_text_password_details(ctx, from_json, wait_ @cli_util.wrap_exceptions def reset_master_user_password_vault_secret_password_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, password_details_secret_id, password_details_secret_version, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -2945,7 +2944,7 @@ def reset_master_user_password_vault_secret_password_details(ctx, from_json, wai @cli_util.wrap_exceptions def restart_db_instance_in_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, db_instance_id, restart_type, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -3011,7 +3010,7 @@ def restart_db_instance_in_db_system(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def restore_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, backup_id, ad, time_to_restore, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -3083,7 +3082,7 @@ def restore_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def start_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, instance_ocpu_count, instance_memory_size_in_gbs, shape, config_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -3154,7 +3153,7 @@ def start_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def stop_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -3210,7 +3209,7 @@ def stop_db_system(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def switch_over(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, replica_db_system_id, db_system_id, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') kwargs = {} @@ -3276,7 +3275,7 @@ def switch_over(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def update_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, backup_id, display_name, description, retention_period, freeform_tags, defined_tags, if_match): - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3356,7 +3355,7 @@ def update_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_id, display_name, description, freeform_tags, defined_tags, compatible_shapes, if_match): - if isinstance(configuration_id, six.string_types) and len(configuration_id.strip()) == 0: + if isinstance(configuration_id, str) and len(configuration_id.strip()) == 0: raise click.UsageError('Parameter --configuration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or compatible_shapes: @@ -3445,7 +3444,7 @@ def update_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, display_name, description, shape, instance_ocpu_count, instance_memory_size_in_gbs, db_configuration_params, management_policy, storage_details, replication_config, network_details, kerberos_auth_details, odsp_insight_details, freeform_tags, defined_tags, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') if not force: if db_configuration_params or management_policy or storage_details or replication_config or network_details or kerberos_auth_details or odsp_insight_details or freeform_tags or defined_tags: @@ -3564,7 +3563,7 @@ def update_db_system(ctx, from_json, force, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_db_system_disabled_kerberos_auth_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, display_name, description, shape, instance_ocpu_count, instance_memory_size_in_gbs, db_configuration_params, management_policy, storage_details, replication_config, network_details, odsp_insight_details, freeform_tags, defined_tags, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') if not force: if db_configuration_params or management_policy or storage_details or replication_config or network_details or odsp_insight_details or freeform_tags or defined_tags: @@ -3687,7 +3686,7 @@ def update_db_system_disabled_kerberos_auth_details(ctx, from_json, force, wait_ @cli_util.wrap_exceptions def update_db_system_enabled_kerberos_auth_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, kerberos_auth_details_credentials, display_name, description, shape, instance_ocpu_count, instance_memory_size_in_gbs, db_configuration_params, management_policy, storage_details, replication_config, network_details, odsp_insight_details, freeform_tags, defined_tags, if_match, kerberos_auth_details_backup_credentials): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') if not force: if db_configuration_params or management_policy or storage_details or replication_config or network_details or odsp_insight_details or freeform_tags or defined_tags: @@ -3810,7 +3809,7 @@ def update_db_system_enabled_kerberos_auth_details(ctx, from_json, force, wait_f @cli_util.wrap_exceptions def update_db_system_disabled_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, display_name, description, shape, instance_ocpu_count, instance_memory_size_in_gbs, db_configuration_params, management_policy, storage_details, replication_config, network_details, kerberos_auth_details, freeform_tags, defined_tags, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') if not force: if db_configuration_params or management_policy or storage_details or replication_config or network_details or kerberos_auth_details or freeform_tags or defined_tags: @@ -3930,7 +3929,7 @@ def update_db_system_disabled_insight_details(ctx, from_json, force, wait_for_st @cli_util.wrap_exceptions def update_db_system_enabled_insight_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, odsp_insight_details_odsp_insight_list, display_name, description, shape, instance_ocpu_count, instance_memory_size_in_gbs, db_configuration_params, management_policy, storage_details, replication_config, network_details, kerberos_auth_details, freeform_tags, defined_tags, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') if not force: if db_configuration_params or management_policy or storage_details or replication_config or network_details or kerberos_auth_details or freeform_tags or defined_tags: @@ -4039,10 +4038,10 @@ def update_db_system_enabled_insight_details(ctx, from_json, force, wait_for_sta @cli_util.wrap_exceptions def update_db_system_db_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, db_system_id, db_instance_id, display_name, description, if_match): - if isinstance(db_system_id, six.string_types) and len(db_system_id.strip()) == 0: + if isinstance(db_system_id, str) and len(db_system_id.strip()) == 0: raise click.UsageError('Parameter --db-system-id cannot be whitespace or empty string') - if isinstance(db_instance_id, six.string_types) and len(db_instance_id.strip()) == 0: + if isinstance(db_instance_id, str) and len(db_instance_id.strip()) == 0: raise click.UsageError('Parameter --db-instance-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/queue/src/oci_cli_queue/generated/queue_cli.py b/services/queue/src/oci_cli_queue/generated/queue_cli.py index 7e553189b..06c34101d 100644 --- a/services/queue/src/oci_cli_queue/generated/queue_cli.py +++ b/services/queue/src/oci_cli_queue/generated/queue_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -79,10 +78,10 @@ def updated_message_group(): @cli_util.wrap_exceptions def delete_message(ctx, from_json, queue_id, message_receipt, consumer_group_id): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') - if isinstance(message_receipt, six.string_types) and len(message_receipt.strip()) == 0: + if isinstance(message_receipt, str) and len(message_receipt.strip()) == 0: raise click.UsageError('Parameter --message-receipt cannot be whitespace or empty string') kwargs = {} @@ -109,7 +108,7 @@ def delete_message(ctx, from_json, queue_id, message_receipt, consumer_group_id) @cli_util.wrap_exceptions def delete_messages(ctx, from_json, queue_id, entries, consumer_group_id): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} @@ -147,7 +146,7 @@ def delete_messages(ctx, from_json, queue_id, entries, consumer_group_id): @cli_util.wrap_exceptions def get_messages(ctx, from_json, queue_id, visibility_in_seconds, timeout_in_seconds, limit, channel_filter, consumer_group_id): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} @@ -181,7 +180,7 @@ def get_messages(ctx, from_json, queue_id, visibility_in_seconds, timeout_in_sec @cli_util.wrap_exceptions def get_stats(ctx, from_json, queue_id, channel_id, consumer_group_id): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} @@ -216,7 +215,7 @@ def list_channels(ctx, from_json, all_pages, page_size, queue_id, consumer_group if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} @@ -265,7 +264,7 @@ def list_channels(ctx, from_json, all_pages, page_size, queue_id, consumer_group @cli_util.wrap_exceptions def put_messages(ctx, from_json, queue_id, messages): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} @@ -295,10 +294,10 @@ def put_messages(ctx, from_json, queue_id, messages): @cli_util.wrap_exceptions def update_message(ctx, from_json, queue_id, message_receipt, visibility_in_seconds, consumer_group_id): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') - if isinstance(message_receipt, six.string_types) and len(message_receipt.strip()) == 0: + if isinstance(message_receipt, str) and len(message_receipt.strip()) == 0: raise click.UsageError('Parameter --message-receipt cannot be whitespace or empty string') kwargs = {} @@ -330,7 +329,7 @@ def update_message(ctx, from_json, queue_id, message_receipt, visibility_in_seco @cli_util.wrap_exceptions def update_messages(ctx, from_json, queue_id, entries, consumer_group_id): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/queue/src/oci_cli_queue_admin/generated/queueadmin_cli.py b/services/queue/src/oci_cli_queue_admin/generated/queueadmin_cli.py index b7c6828c9..a69631ace 100644 --- a/services/queue/src/oci_cli_queue_admin/generated/queueadmin_cli.py +++ b/services/queue/src/oci_cli_queue_admin/generated/queueadmin_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -95,7 +94,7 @@ def work_request_log_entry_collection_group(): @cli_util.wrap_exceptions def change_queue_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, queue_id, compartment_id, if_match): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} @@ -324,7 +323,7 @@ def create_queue(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_consumer_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, consumer_group_id, if_match): - if isinstance(consumer_group_id, six.string_types) and len(consumer_group_id.strip()) == 0: + if isinstance(consumer_group_id, str) and len(consumer_group_id.strip()) == 0: raise click.UsageError('Parameter --consumer-group-id cannot be whitespace or empty string') kwargs = {} @@ -380,7 +379,7 @@ def delete_consumer_group(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def delete_queue(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, queue_id, if_match): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} @@ -431,7 +430,7 @@ def delete_queue(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def get_consumer_group(ctx, from_json, consumer_group_id): - if isinstance(consumer_group_id, six.string_types) and len(consumer_group_id.strip()) == 0: + if isinstance(consumer_group_id, str) and len(consumer_group_id.strip()) == 0: raise click.UsageError('Parameter --consumer-group-id cannot be whitespace or empty string') kwargs = {} @@ -453,7 +452,7 @@ def get_consumer_group(ctx, from_json, consumer_group_id): @cli_util.wrap_exceptions def get_queue(ctx, from_json, queue_id): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} @@ -475,7 +474,7 @@ def get_queue(ctx, from_json, queue_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -628,7 +627,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -679,7 +678,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -780,7 +779,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def purge_queue(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, queue_id, purge_type, channel_ids, consumer_group_id, if_match): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') kwargs = {} @@ -853,7 +852,7 @@ def purge_queue(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def update_consumer_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, consumer_group_id, display_name, filter, is_enabled, dead_letter_queue_delivery_count, freeform_tags, defined_tags, if_match): - if isinstance(consumer_group_id, six.string_types) and len(consumer_group_id.strip()) == 0: + if isinstance(consumer_group_id, str) and len(consumer_group_id.strip()) == 0: raise click.UsageError('Parameter --consumer-group-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -946,7 +945,7 @@ def update_consumer_group(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_queue(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, queue_id, display_name, visibility_in_seconds, timeout_in_seconds, channel_consumption_limit, dead_letter_queue_delivery_count, custom_encryption_key_id, capabilities, freeform_tags, defined_tags, if_match): - if isinstance(queue_id, six.string_types) and len(queue_id.strip()) == 0: + if isinstance(queue_id, str) and len(queue_id.strip()) == 0: raise click.UsageError('Parameter --queue-id cannot be whitespace or empty string') if not force: if capabilities or freeform_tags or defined_tags: diff --git a/services/recovery/src/oci_cli_database_recovery/generated/databaserecovery_cli.py b/services/recovery/src/oci_cli_database_recovery/generated/databaserecovery_cli.py index 72ae63a69..2cf0d76ad 100644 --- a/services/recovery/src/oci_cli_database_recovery/generated/databaserecovery_cli.py +++ b/services/recovery/src/oci_cli_database_recovery/generated/databaserecovery_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -121,7 +120,7 @@ def work_request_log_entry_collection_group(): @cli_util.wrap_exceptions def cancel_long_term_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, long_term_backup_id, if_match): - if isinstance(long_term_backup_id, six.string_types) and len(long_term_backup_id.strip()) == 0: + if isinstance(long_term_backup_id, str) and len(long_term_backup_id.strip()) == 0: raise click.UsageError('Parameter --long-term-backup-id cannot be whitespace or empty string') kwargs = {} @@ -173,7 +172,7 @@ def cancel_long_term_backup(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def cancel_protected_database_deletion(ctx, from_json, protected_database_id, if_match): - if isinstance(protected_database_id, six.string_types) and len(protected_database_id.strip()) == 0: + if isinstance(protected_database_id, str) and len(protected_database_id.strip()) == 0: raise click.UsageError('Parameter --protected-database-id cannot be whitespace or empty string') kwargs = {} @@ -202,7 +201,7 @@ def cancel_protected_database_deletion(ctx, from_json, protected_database_id, if @cli_util.wrap_exceptions def change_protected_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, protected_database_id, compartment_id, if_match): - if isinstance(protected_database_id, six.string_types) and len(protected_database_id.strip()) == 0: + if isinstance(protected_database_id, str) and len(protected_database_id.strip()) == 0: raise click.UsageError('Parameter --protected-database-id cannot be whitespace or empty string') kwargs = {} @@ -264,7 +263,7 @@ def change_protected_database_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_protected_database_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, protected_database_id, subscription_id, is_default, if_match): - if isinstance(protected_database_id, six.string_types) and len(protected_database_id.strip()) == 0: + if isinstance(protected_database_id, str) and len(protected_database_id.strip()) == 0: raise click.UsageError('Parameter --protected-database-id cannot be whitespace or empty string') kwargs = {} @@ -330,7 +329,7 @@ def change_protected_database_subscription(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def change_protection_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, protection_policy_id, compartment_id, if_match): - if isinstance(protection_policy_id, six.string_types) and len(protection_policy_id.strip()) == 0: + if isinstance(protection_policy_id, str) and len(protection_policy_id.strip()) == 0: raise click.UsageError('Parameter --protection-policy-id cannot be whitespace or empty string') kwargs = {} @@ -391,7 +390,7 @@ def change_protection_policy_compartment(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def change_recovery_service_subnet_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, recovery_service_subnet_id, compartment_id, if_match): - if isinstance(recovery_service_subnet_id, six.string_types) and len(recovery_service_subnet_id.strip()) == 0: + if isinstance(recovery_service_subnet_id, str) and len(recovery_service_subnet_id.strip()) == 0: raise click.UsageError('Parameter --recovery-service-subnet-id cannot be whitespace or empty string') kwargs = {} @@ -797,7 +796,7 @@ def create_recovery_service_subnet(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_long_term_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, long_term_backup_id, if_match): - if isinstance(long_term_backup_id, six.string_types) and len(long_term_backup_id.strip()) == 0: + if isinstance(long_term_backup_id, str) and len(long_term_backup_id.strip()) == 0: raise click.UsageError('Parameter --long-term-backup-id cannot be whitespace or empty string') kwargs = {} @@ -854,7 +853,7 @@ def delete_long_term_backup(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_protected_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, protected_database_id, deletion_schedule, if_match): - if isinstance(protected_database_id, six.string_types) and len(protected_database_id.strip()) == 0: + if isinstance(protected_database_id, str) and len(protected_database_id.strip()) == 0: raise click.UsageError('Parameter --protected-database-id cannot be whitespace or empty string') kwargs = {} @@ -912,7 +911,7 @@ def delete_protected_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_protection_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, protection_policy_id, if_match): - if isinstance(protection_policy_id, six.string_types) and len(protection_policy_id.strip()) == 0: + if isinstance(protection_policy_id, str) and len(protection_policy_id.strip()) == 0: raise click.UsageError('Parameter --protection-policy-id cannot be whitespace or empty string') kwargs = {} @@ -968,7 +967,7 @@ def delete_protection_policy(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_recovery_service_subnet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, recovery_service_subnet_id, if_match): - if isinstance(recovery_service_subnet_id, six.string_types) and len(recovery_service_subnet_id.strip()) == 0: + if isinstance(recovery_service_subnet_id, str) and len(recovery_service_subnet_id.strip()) == 0: raise click.UsageError('Parameter --recovery-service-subnet-id cannot be whitespace or empty string') kwargs = {} @@ -1022,7 +1021,7 @@ def delete_recovery_service_subnet(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def fetch_protected_database_configuration(ctx, from_json, file, protected_database_id, configuration_type, if_match): - if isinstance(protected_database_id, six.string_types) and len(protected_database_id.strip()) == 0: + if isinstance(protected_database_id, str) and len(protected_database_id.strip()) == 0: raise click.UsageError('Parameter --protected-database-id cannot be whitespace or empty string') kwargs = {} @@ -1075,7 +1074,7 @@ def fetch_protected_database_configuration(ctx, from_json, file, protected_datab @cli_util.wrap_exceptions def get_long_term_backup(ctx, from_json, long_term_backup_id): - if isinstance(long_term_backup_id, six.string_types) and len(long_term_backup_id.strip()) == 0: + if isinstance(long_term_backup_id, str) and len(long_term_backup_id.strip()) == 0: raise click.UsageError('Parameter --long-term-backup-id cannot be whitespace or empty string') kwargs = {} @@ -1097,7 +1096,7 @@ def get_long_term_backup(ctx, from_json, long_term_backup_id): @cli_util.wrap_exceptions def get_protected_database(ctx, from_json, protected_database_id): - if isinstance(protected_database_id, six.string_types) and len(protected_database_id.strip()) == 0: + if isinstance(protected_database_id, str) and len(protected_database_id.strip()) == 0: raise click.UsageError('Parameter --protected-database-id cannot be whitespace or empty string') kwargs = {} @@ -1119,7 +1118,7 @@ def get_protected_database(ctx, from_json, protected_database_id): @cli_util.wrap_exceptions def get_protection_policy(ctx, from_json, protection_policy_id): - if isinstance(protection_policy_id, six.string_types) and len(protection_policy_id.strip()) == 0: + if isinstance(protection_policy_id, str) and len(protection_policy_id.strip()) == 0: raise click.UsageError('Parameter --protection-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1141,7 +1140,7 @@ def get_protection_policy(ctx, from_json, protection_policy_id): @cli_util.wrap_exceptions def get_recovery_service_subnet(ctx, from_json, recovery_service_subnet_id): - if isinstance(recovery_service_subnet_id, six.string_types) and len(recovery_service_subnet_id.strip()) == 0: + if isinstance(recovery_service_subnet_id, str) and len(recovery_service_subnet_id.strip()) == 0: raise click.UsageError('Parameter --recovery-service-subnet-id cannot be whitespace or empty string') kwargs = {} @@ -1163,7 +1162,7 @@ def get_recovery_service_subnet(ctx, from_json, recovery_service_subnet_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1463,7 +1462,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1520,7 +1519,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1637,7 +1636,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def schedule_protected_database_deletion(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, protected_database_id, deletion_schedule, if_match): - if isinstance(protected_database_id, six.string_types) and len(protected_database_id.strip()) == 0: + if isinstance(protected_database_id, str) and len(protected_database_id.strip()) == 0: raise click.UsageError('Parameter --protected-database-id cannot be whitespace or empty string') kwargs = {} @@ -1706,7 +1705,7 @@ def schedule_protected_database_deletion(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def update_long_term_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, long_term_backup_id, display_name, retention_period, freeform_tags, defined_tags, if_match): - if isinstance(long_term_backup_id, six.string_types) and len(long_term_backup_id.strip()) == 0: + if isinstance(long_term_backup_id, str) and len(long_term_backup_id.strip()) == 0: raise click.UsageError('Parameter --long-term-backup-id cannot be whitespace or empty string') if not force: if retention_period or freeform_tags or defined_tags: @@ -1793,7 +1792,7 @@ def update_long_term_backup(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_protected_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, protected_database_id, display_name, database_size, database_size_in_gbs, password, protection_policy_id, recovery_service_subnets, is_redo_logs_shipped, freeform_tags, defined_tags, if_match): - if isinstance(protected_database_id, six.string_types) and len(protected_database_id.strip()) == 0: + if isinstance(protected_database_id, str) and len(protected_database_id.strip()) == 0: raise click.UsageError('Parameter --protected-database-id cannot be whitespace or empty string') if not force: if recovery_service_subnets or freeform_tags or defined_tags: @@ -1891,7 +1890,7 @@ def update_protected_database(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_protection_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, protection_policy_id, display_name, backup_retention_period_in_days, policy_locked_date_time, freeform_tags, defined_tags, if_match): - if isinstance(protection_policy_id, six.string_types) and len(protection_policy_id.strip()) == 0: + if isinstance(protection_policy_id, str) and len(protection_policy_id.strip()) == 0: raise click.UsageError('Parameter --protection-policy-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1978,7 +1977,7 @@ def update_protection_policy(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_recovery_service_subnet(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, recovery_service_subnet_id, display_name, subnets, nsg_ids, security_attributes, freeform_tags, defined_tags, if_match): - if isinstance(recovery_service_subnet_id, six.string_types) and len(recovery_service_subnet_id.strip()) == 0: + if isinstance(recovery_service_subnet_id, str) and len(recovery_service_subnet_id.strip()) == 0: raise click.UsageError('Parameter --recovery-service-subnet-id cannot be whitespace or empty string') if not force: if subnets or nsg_ids or security_attributes or freeform_tags or defined_tags: diff --git a/services/redis/src/oci_cli_oci_cache_backup/generated/ocicachebackup_cli.py b/services/redis/src/oci_cli_oci_cache_backup/generated/ocicachebackup_cli.py index 5b2980fef..b10267de3 100644 --- a/services/redis/src/oci_cli_oci_cache_backup/generated/ocicachebackup_cli.py +++ b/services/redis/src/oci_cli_oci_cache_backup/generated/ocicachebackup_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,7 +52,7 @@ def oci_cache_backup_group(): @cli_util.wrap_exceptions def change_oci_cache_backup_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_backup_id, compartment_id, if_match): - if isinstance(oci_cache_backup_id, six.string_types) and len(oci_cache_backup_id.strip()) == 0: + if isinstance(oci_cache_backup_id, str) and len(oci_cache_backup_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-backup-id cannot be whitespace or empty string') kwargs = {} @@ -191,7 +190,7 @@ def create_oci_cache_backup(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_oci_cache_backup(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_backup_id, if_match): - if isinstance(oci_cache_backup_id, six.string_types) and len(oci_cache_backup_id.strip()) == 0: + if isinstance(oci_cache_backup_id, str) and len(oci_cache_backup_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-backup-id cannot be whitespace or empty string') kwargs = {} @@ -249,7 +248,7 @@ def delete_oci_cache_backup(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def export_oci_cache_backup_to_object_storage(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_backup_id, namespace_name, bucket_name, prefix, if_match): - if isinstance(oci_cache_backup_id, six.string_types) and len(oci_cache_backup_id.strip()) == 0: + if isinstance(oci_cache_backup_id, str) and len(oci_cache_backup_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-backup-id cannot be whitespace or empty string') kwargs = {} @@ -309,7 +308,7 @@ def export_oci_cache_backup_to_object_storage(ctx, from_json, wait_for_state, ma @cli_util.wrap_exceptions def get_oci_cache_backup(ctx, from_json, oci_cache_backup_id): - if isinstance(oci_cache_backup_id, six.string_types) and len(oci_cache_backup_id.strip()) == 0: + if isinstance(oci_cache_backup_id, str) and len(oci_cache_backup_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-backup-id cannot be whitespace or empty string') kwargs = {} @@ -406,7 +405,7 @@ def list_oci_cache_backups(ctx, from_json, all_pages, page_size, compartment_id, @cli_util.wrap_exceptions def update_oci_cache_backup(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_backup_id, display_name, description, retention_period_in_days, freeform_tags, defined_tags, if_match): - if isinstance(oci_cache_backup_id, six.string_types) and len(oci_cache_backup_id.strip()) == 0: + if isinstance(oci_cache_backup_id, str) and len(oci_cache_backup_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-backup-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/redis/src/oci_cli_oci_cache_config_set/generated/ocicacheconfigset_cli.py b/services/redis/src/oci_cli_oci_cache_config_set/generated/ocicacheconfigset_cli.py index 1c47c32fa..52436fdfb 100644 --- a/services/redis/src/oci_cli_oci_cache_config_set/generated/ocicacheconfigset_cli.py +++ b/services/redis/src/oci_cli_oci_cache_config_set/generated/ocicacheconfigset_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -60,7 +59,7 @@ def associated_oci_cache_cluster_summary_group(): @cli_util.wrap_exceptions def change_oci_cache_config_set_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_config_set_id, compartment_id, if_match): - if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0: + if isinstance(oci_cache_config_set_id, str) and len(oci_cache_config_set_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string') kwargs = {} @@ -192,7 +191,7 @@ def create_oci_cache_config_set(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_oci_cache_config_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_config_set_id, if_match): - if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0: + if isinstance(oci_cache_config_set_id, str) and len(oci_cache_config_set_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string') kwargs = {} @@ -243,7 +242,7 @@ def delete_oci_cache_config_set(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def get_oci_cache_config_set(ctx, from_json, oci_cache_config_set_id): - if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0: + if isinstance(oci_cache_config_set_id, str) and len(oci_cache_config_set_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string') kwargs = {} @@ -274,7 +273,7 @@ def list_associated_oci_cache_clusters(ctx, from_json, all_pages, page_size, oci if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0: + if isinstance(oci_cache_config_set_id, str) and len(oci_cache_config_set_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string') kwargs = {} @@ -396,7 +395,7 @@ def list_oci_cache_config_sets(ctx, from_json, all_pages, page_size, compartment @cli_util.wrap_exceptions def update_oci_cache_config_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_config_set_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0: + if isinstance(oci_cache_config_set_id, str) and len(oci_cache_config_set_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/redis/src/oci_cli_oci_cache_default_config_set/generated/ocicachedefaultconfigset_cli.py b/services/redis/src/oci_cli_oci_cache_default_config_set/generated/ocicachedefaultconfigset_cli.py index acd8157c0..7c26cb10e 100644 --- a/services/redis/src/oci_cli_oci_cache_default_config_set/generated/ocicachedefaultconfigset_cli.py +++ b/services/redis/src/oci_cli_oci_cache_default_config_set/generated/ocicachedefaultconfigset_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -49,7 +48,7 @@ def oci_cache_default_config_set_summary_group(): @cli_util.wrap_exceptions def get_oci_cache_default_config_set(ctx, from_json, compartment_id, oci_cache_default_config_set_id): - if isinstance(oci_cache_default_config_set_id, six.string_types) and len(oci_cache_default_config_set_id.strip()) == 0: + if isinstance(oci_cache_default_config_set_id, str) and len(oci_cache_default_config_set_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-default-config-set-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/redis/src/oci_cli_oci_cache_engine_options/generated/ocicacheengineoptions_cli.py b/services/redis/src/oci_cli_oci_cache_engine_options/generated/ocicacheengineoptions_cli.py index f843a5e4b..0b25e80e6 100644 --- a/services/redis/src/oci_cli_oci_cache_engine_options/generated/ocicacheengineoptions_cli.py +++ b/services/redis/src/oci_cli_oci_cache_engine_options/generated/ocicacheengineoptions_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/redis/src/oci_cli_oci_cache_user/generated/ocicacheuser_cli.py b/services/redis/src/oci_cli_oci_cache_user/generated/ocicacheuser_cli.py index 13e56a2cc..33edede25 100644 --- a/services/redis/src/oci_cli_oci_cache_user/generated/ocicacheuser_cli.py +++ b/services/redis/src/oci_cli_oci_cache_user/generated/ocicacheuser_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -67,7 +66,7 @@ def oci_cache_user_group(): @cli_util.wrap_exceptions def change_oci_cache_user_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_user_id, compartment_id, if_match): - if isinstance(oci_cache_user_id, six.string_types) and len(oci_cache_user_id.strip()) == 0: + if isinstance(oci_cache_user_id, str) and len(oci_cache_user_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-user-id cannot be whitespace or empty string') kwargs = {} @@ -351,7 +350,7 @@ def create_oci_cache_user_password_authentication_mode(ctx, from_json, wait_for_ @cli_util.wrap_exceptions def delete_oci_cache_user(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_user_id, if_match): - if isinstance(oci_cache_user_id, six.string_types) and len(oci_cache_user_id.strip()) == 0: + if isinstance(oci_cache_user_id, str) and len(oci_cache_user_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-user-id cannot be whitespace or empty string') kwargs = {} @@ -402,7 +401,7 @@ def delete_oci_cache_user(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def get_oci_cache_user(ctx, from_json, oci_cache_user_id): - if isinstance(oci_cache_user_id, six.string_types) and len(oci_cache_user_id.strip()) == 0: + if isinstance(oci_cache_user_id, str) and len(oci_cache_user_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-user-id cannot be whitespace or empty string') kwargs = {} @@ -435,7 +434,7 @@ def list_attached_redis_clusters(ctx, from_json, all_pages, page_size, oci_cache if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(oci_cache_user_id, six.string_types) and len(oci_cache_user_id.strip()) == 0: + if isinstance(oci_cache_user_id, str) and len(oci_cache_user_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-user-id cannot be whitespace or empty string') kwargs = {} @@ -557,7 +556,7 @@ def list_oci_cache_users(ctx, from_json, all_pages, page_size, compartment_id, n @cli_util.wrap_exceptions def update_oci_cache_user(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_user_id, description, authentication_mode, acl_string, status, freeform_tags, defined_tags, if_match): - if isinstance(oci_cache_user_id, six.string_types) and len(oci_cache_user_id.strip()) == 0: + if isinstance(oci_cache_user_id, str) and len(oci_cache_user_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-user-id cannot be whitespace or empty string') if not force: if authentication_mode or freeform_tags or defined_tags: @@ -644,7 +643,7 @@ def update_oci_cache_user(ctx, from_json, force, wait_for_state, max_wait_second @cli_util.wrap_exceptions def update_oci_cache_user_iam_authentication_mode(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_user_id, description, acl_string, status, freeform_tags, defined_tags, if_match): - if isinstance(oci_cache_user_id, six.string_types) and len(oci_cache_user_id.strip()) == 0: + if isinstance(oci_cache_user_id, str) and len(oci_cache_user_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-user-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -732,7 +731,7 @@ def update_oci_cache_user_iam_authentication_mode(ctx, from_json, force, wait_fo @cli_util.wrap_exceptions def update_oci_cache_user_password_authentication_mode(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_user_id, authentication_mode_hashed_passwords, description, acl_string, status, freeform_tags, defined_tags, if_match): - if isinstance(oci_cache_user_id, six.string_types) and len(oci_cache_user_id.strip()) == 0: + if isinstance(oci_cache_user_id, str) and len(oci_cache_user_id.strip()) == 0: raise click.UsageError('Parameter --oci-cache-user-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/redis/src/oci_cli_redis_cluster/generated/rediscluster_cli.py b/services/redis/src/oci_cli_redis_cluster/generated/rediscluster_cli.py index 75bf9de7b..00ec17f40 100644 --- a/services/redis/src/oci_cli_redis_cluster/generated/rediscluster_cli.py +++ b/services/redis/src/oci_cli_redis_cluster/generated/rediscluster_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -88,7 +87,7 @@ def node_summary_group(): @cli_util.wrap_exceptions def attach_oci_cache_users(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, redis_cluster_id, oci_cache_users, if_match): - if isinstance(redis_cluster_id, six.string_types) and len(redis_cluster_id.strip()) == 0: + if isinstance(redis_cluster_id, str) and len(redis_cluster_id.strip()) == 0: raise click.UsageError('Parameter --redis-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -146,7 +145,7 @@ def attach_oci_cache_users(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -175,7 +174,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_redis_cluster_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, redis_cluster_id, compartment_id, if_match): - if isinstance(redis_cluster_id, six.string_types) and len(redis_cluster_id.strip()) == 0: + if isinstance(redis_cluster_id, str) and len(redis_cluster_id.strip()) == 0: raise click.UsageError('Parameter --redis-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -337,7 +336,7 @@ def create_redis_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_redis_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, redis_cluster_id, if_match): - if isinstance(redis_cluster_id, six.string_types) and len(redis_cluster_id.strip()) == 0: + if isinstance(redis_cluster_id, str) and len(redis_cluster_id.strip()) == 0: raise click.UsageError('Parameter --redis-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -393,7 +392,7 @@ def delete_redis_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def detach_oci_cache_users(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, redis_cluster_id, oci_cache_users, if_match): - if isinstance(redis_cluster_id, six.string_types) and len(redis_cluster_id.strip()) == 0: + if isinstance(redis_cluster_id, str) and len(redis_cluster_id.strip()) == 0: raise click.UsageError('Parameter --redis-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -449,7 +448,7 @@ def detach_oci_cache_users(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def get_redis_cluster(ctx, from_json, redis_cluster_id): - if isinstance(redis_cluster_id, six.string_types) and len(redis_cluster_id.strip()) == 0: + if isinstance(redis_cluster_id, str) and len(redis_cluster_id.strip()) == 0: raise click.UsageError('Parameter --redis-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -471,7 +470,7 @@ def get_redis_cluster(ctx, from_json, redis_cluster_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -504,7 +503,7 @@ def list_attached_oci_cache_users(ctx, from_json, all_pages, page_size, redis_cl if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(redis_cluster_id, six.string_types) and len(redis_cluster_id.strip()) == 0: + if isinstance(redis_cluster_id, str) and len(redis_cluster_id.strip()) == 0: raise click.UsageError('Parameter --redis-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -566,7 +565,7 @@ def list_redis_cluster_nodes(ctx, from_json, all_pages, page_size, redis_cluster if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(redis_cluster_id, six.string_types) and len(redis_cluster_id.strip()) == 0: + if isinstance(redis_cluster_id, str) and len(redis_cluster_id.strip()) == 0: raise click.UsageError('Parameter --redis-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -687,7 +686,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -744,7 +743,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -871,7 +870,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_redis_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, redis_cluster_id, oci_cache_config_set_id, shard_count, display_name, node_count, node_memory_in_gbs, software_version, nsg_ids, security_attributes, freeform_tags, defined_tags, if_match): - if isinstance(redis_cluster_id, six.string_types) and len(redis_cluster_id.strip()) == 0: + if isinstance(redis_cluster_id, str) and len(redis_cluster_id.strip()) == 0: raise click.UsageError('Parameter --redis-cluster-id cannot be whitespace or empty string') if not force: if nsg_ids or security_attributes or freeform_tags or defined_tags: diff --git a/services/redis/src/oci_cli_redis_identity/generated/redisidentity_cli.py b/services/redis/src/oci_cli_redis_identity/generated/redisidentity_cli.py index 6cac2f226..3b0af1760 100644 --- a/services/redis/src/oci_cli_redis_identity/generated/redisidentity_cli.py +++ b/services/redis/src/oci_cli_redis_identity/generated/redisidentity_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -44,7 +43,7 @@ def create_identity_token_details_group(): @cli_util.wrap_exceptions def create_identity_token(ctx, from_json, public_key, redis_user, redis_cluster_id, if_match): - if isinstance(redis_cluster_id, six.string_types) and len(redis_cluster_id.strip()) == 0: + if isinstance(redis_cluster_id, str) and len(redis_cluster_id.strip()) == 0: raise click.UsageError('Parameter --redis-cluster-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/resource_analytics/src/oci_cli_monitored_region/generated/monitoredregion_cli.py b/services/resource_analytics/src/oci_cli_monitored_region/generated/monitoredregion_cli.py index 4383880ce..d0fa85915 100644 --- a/services/resource_analytics/src/oci_cli_monitored_region/generated/monitoredregion_cli.py +++ b/services/resource_analytics/src/oci_cli_monitored_region/generated/monitoredregion_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -110,7 +109,7 @@ def create_monitored_region(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_monitored_region(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_region_id, if_match): - if isinstance(monitored_region_id, six.string_types) and len(monitored_region_id.strip()) == 0: + if isinstance(monitored_region_id, str) and len(monitored_region_id.strip()) == 0: raise click.UsageError('Parameter --monitored-region-id cannot be whitespace or empty string') kwargs = {} @@ -161,7 +160,7 @@ def delete_monitored_region(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def get_monitored_region(ctx, from_json, monitored_region_id): - if isinstance(monitored_region_id, six.string_types) and len(monitored_region_id.strip()) == 0: + if isinstance(monitored_region_id, str) and len(monitored_region_id.strip()) == 0: raise click.UsageError('Parameter --monitored-region-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/resourceanalyticsinstance_cli.py b/services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/resourceanalyticsinstance_cli.py index 32ca32a13..bc7ec4de8 100644 --- a/services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/resourceanalyticsinstance_cli.py +++ b/services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/resourceanalyticsinstance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -73,7 +72,7 @@ def resource_analytics_instance_collection_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -102,7 +101,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_resource_analytics_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resource_analytics_instance_id, compartment_id, if_match): - if isinstance(resource_analytics_instance_id, six.string_types) and len(resource_analytics_instance_id.strip()) == 0: + if isinstance(resource_analytics_instance_id, str) and len(resource_analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --resource-analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -454,7 +453,7 @@ def create_resource_analytics_instance_vault_secret_password_details(ctx, from_j @cli_util.wrap_exceptions def delete_resource_analytics_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resource_analytics_instance_id, if_match): - if isinstance(resource_analytics_instance_id, six.string_types) and len(resource_analytics_instance_id.strip()) == 0: + if isinstance(resource_analytics_instance_id, str) and len(resource_analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --resource-analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -505,7 +504,7 @@ def delete_resource_analytics_instance(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def get_resource_analytics_instance(ctx, from_json, resource_analytics_instance_id): - if isinstance(resource_analytics_instance_id, six.string_types) and len(resource_analytics_instance_id.strip()) == 0: + if isinstance(resource_analytics_instance_id, str) and len(resource_analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --resource-analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -527,7 +526,7 @@ def get_resource_analytics_instance(ctx, from_json, resource_analytics_instance_ @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -620,7 +619,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -677,7 +676,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -791,7 +790,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def resource_analytics_instance_disable_oac(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resource_analytics_instance_id, if_match): - if isinstance(resource_analytics_instance_id, six.string_types) and len(resource_analytics_instance_id.strip()) == 0: + if isinstance(resource_analytics_instance_id, str) and len(resource_analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --resource-analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -848,7 +847,7 @@ def resource_analytics_instance_disable_oac(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def resource_analytics_instance_enable_oac(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resource_analytics_instance_id, attachment_type, attachment_details, if_match): - if isinstance(resource_analytics_instance_id, six.string_types) and len(resource_analytics_instance_id.strip()) == 0: + if isinstance(resource_analytics_instance_id, str) and len(resource_analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --resource-analytics-instance-id cannot be whitespace or empty string') kwargs = {} @@ -918,7 +917,7 @@ def resource_analytics_instance_enable_oac(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def update_resource_analytics_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, resource_analytics_instance_id, display_name, description, freeform_tags, defined_tags, if_match): - if isinstance(resource_analytics_instance_id, six.string_types) and len(resource_analytics_instance_id.strip()) == 0: + if isinstance(resource_analytics_instance_id, str) and len(resource_analytics_instance_id.strip()) == 0: raise click.UsageError('Parameter --resource-analytics-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/resource_analytics/src/oci_cli_tenancy_attachment/generated/tenancyattachment_cli.py b/services/resource_analytics/src/oci_cli_tenancy_attachment/generated/tenancyattachment_cli.py index ff87b6055..b260542f0 100644 --- a/services/resource_analytics/src/oci_cli_tenancy_attachment/generated/tenancyattachment_cli.py +++ b/services/resource_analytics/src/oci_cli_tenancy_attachment/generated/tenancyattachment_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -114,7 +113,7 @@ def create_tenancy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_tenancy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tenancy_attachment_id, if_match): - if isinstance(tenancy_attachment_id, six.string_types) and len(tenancy_attachment_id.strip()) == 0: + if isinstance(tenancy_attachment_id, str) and len(tenancy_attachment_id.strip()) == 0: raise click.UsageError('Parameter --tenancy-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -165,7 +164,7 @@ def delete_tenancy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def get_tenancy_attachment(ctx, from_json, tenancy_attachment_id): - if isinstance(tenancy_attachment_id, six.string_types) and len(tenancy_attachment_id.strip()) == 0: + if isinstance(tenancy_attachment_id, str) and len(tenancy_attachment_id.strip()) == 0: raise click.UsageError('Parameter --tenancy-attachment-id cannot be whitespace or empty string') kwargs = {} @@ -251,7 +250,7 @@ def list_tenancy_attachments(ctx, from_json, all_pages, page_size, resource_anal @cli_util.wrap_exceptions def update_tenancy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tenancy_attachment_id, description, if_match): - if isinstance(tenancy_attachment_id, six.string_types) and len(tenancy_attachment_id.strip()) == 0: + if isinstance(tenancy_attachment_id, str) and len(tenancy_attachment_id.strip()) == 0: raise click.UsageError('Parameter --tenancy-attachment-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/resource_manager/src/oci_cli_resource_manager/generated/resourcemanager_cli.py b/services/resource_manager/src/oci_cli_resource_manager/generated/resourcemanager_cli.py index 9e84b4023..0d73af248 100644 --- a/services/resource_manager/src/oci_cli_resource_manager/generated/resourcemanager_cli.py +++ b/services/resource_manager/src/oci_cli_resource_manager/generated/resourcemanager_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -133,7 +132,7 @@ def job_output_summary_group(): @cli_util.wrap_exceptions def cancel_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, if_match, is_forced): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -196,7 +195,7 @@ def cancel_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_s @cli_util.wrap_exceptions def change_configuration_source_provider_compartment(ctx, from_json, configuration_source_provider_id, compartment_id, if_match): - if isinstance(configuration_source_provider_id, six.string_types) and len(configuration_source_provider_id.strip()) == 0: + if isinstance(configuration_source_provider_id, str) and len(configuration_source_provider_id.strip()) == 0: raise click.UsageError('Parameter --configuration-source-provider-id cannot be whitespace or empty string') kwargs = {} @@ -227,7 +226,7 @@ def change_configuration_source_provider_compartment(ctx, from_json, configurati @cli_util.wrap_exceptions def change_private_endpoint_compartment(ctx, from_json, private_endpoint_id, compartment_id, if_match): - if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0: + if isinstance(private_endpoint_id, str) and len(private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -261,7 +260,7 @@ def change_private_endpoint_compartment(ctx, from_json, private_endpoint_id, com @cli_util.wrap_exceptions def change_stack_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, compartment_id, if_match): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -319,7 +318,7 @@ def change_stack_compartment(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def change_template_compartment(ctx, from_json, template_id, compartment_id, if_match): - if isinstance(template_id, six.string_types) and len(template_id.strip()) == 0: + if isinstance(template_id, str) and len(template_id.strip()) == 0: raise click.UsageError('Parameter --template-id cannot be whitespace or empty string') kwargs = {} @@ -2392,7 +2391,7 @@ def create_template_create_template_zip_upload_config_source_details(ctx, from_j @cli_util.wrap_exceptions def delete_configuration_source_provider(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_source_provider_id, if_match): - if isinstance(configuration_source_provider_id, six.string_types) and len(configuration_source_provider_id.strip()) == 0: + if isinstance(configuration_source_provider_id, str) and len(configuration_source_provider_id.strip()) == 0: raise click.UsageError('Parameter --configuration-source-provider-id cannot be whitespace or empty string') kwargs = {} @@ -2456,7 +2455,7 @@ def delete_configuration_source_provider(ctx, from_json, wait_for_state, max_wai @cli_util.wrap_exceptions def delete_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_endpoint_id, if_match): - if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0: + if isinstance(private_endpoint_id, str) and len(private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2512,7 +2511,7 @@ def delete_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_stack(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, if_match): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -2576,7 +2575,7 @@ def delete_stack(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval @cli_util.wrap_exceptions def delete_template(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, template_id, if_match): - if isinstance(template_id, six.string_types) and len(template_id.strip()) == 0: + if isinstance(template_id, str) and len(template_id.strip()) == 0: raise click.UsageError('Parameter --template-id cannot be whitespace or empty string') kwargs = {} @@ -2641,7 +2640,7 @@ def delete_template(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def detect_stack_drift(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, if_match, resource_addresses, is_provider_upgrade_required): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -2702,7 +2701,7 @@ def detect_stack_drift(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_configuration_source_provider(ctx, from_json, configuration_source_provider_id): - if isinstance(configuration_source_provider_id, six.string_types) and len(configuration_source_provider_id.strip()) == 0: + if isinstance(configuration_source_provider_id, str) and len(configuration_source_provider_id.strip()) == 0: raise click.UsageError('Parameter --configuration-source-provider-id cannot be whitespace or empty string') kwargs = {} @@ -2724,7 +2723,7 @@ def get_configuration_source_provider(ctx, from_json, configuration_source_provi @cli_util.wrap_exceptions def get_job(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2746,7 +2745,7 @@ def get_job(ctx, from_json, job_id): @cli_util.wrap_exceptions def get_job_detailed_log_content(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2775,7 +2774,7 @@ def get_job_detailed_log_content(ctx, from_json, job_id): @cli_util.wrap_exceptions def get_job_logs(ctx, from_json, job_id, type, level_greater_than_or_equal_to, sort_order, limit, page, timestamp_greater_than_or_equal_to, timestamp_less_than_or_equal_to): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2811,7 +2810,7 @@ def get_job_logs(ctx, from_json, job_id, type, level_greater_than_or_equal_to, s @cli_util.wrap_exceptions def get_job_logs_content(ctx, from_json, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2834,7 +2833,7 @@ def get_job_logs_content(ctx, from_json, job_id): @cli_util.wrap_exceptions def get_job_tf_config(ctx, from_json, file, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2880,7 +2879,7 @@ def get_job_tf_config(ctx, from_json, file, job_id): @cli_util.wrap_exceptions def get_job_tf_plan(ctx, from_json, file, job_id, tf_plan_format): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2927,7 +2926,7 @@ def get_job_tf_plan(ctx, from_json, file, job_id, tf_plan_format): @cli_util.wrap_exceptions def get_job_tf_state(ctx, from_json, file, job_id): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -2971,7 +2970,7 @@ def get_job_tf_state(ctx, from_json, file, job_id): @cli_util.wrap_exceptions def get_private_endpoint(ctx, from_json, private_endpoint_id): - if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0: + if isinstance(private_endpoint_id, str) and len(private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -2994,7 +2993,7 @@ def get_private_endpoint(ctx, from_json, private_endpoint_id): @cli_util.wrap_exceptions def get_reachable_ip(ctx, from_json, private_ip, private_endpoint_id): - if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0: + if isinstance(private_endpoint_id, str) and len(private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string') kwargs = {} @@ -3017,7 +3016,7 @@ def get_reachable_ip(ctx, from_json, private_ip, private_endpoint_id): @cli_util.wrap_exceptions def get_stack(ctx, from_json, stack_id): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -3040,7 +3039,7 @@ def get_stack(ctx, from_json, stack_id): @cli_util.wrap_exceptions def get_stack_tf_config(ctx, from_json, file, stack_id): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -3085,7 +3084,7 @@ def get_stack_tf_config(ctx, from_json, file, stack_id): @cli_util.wrap_exceptions def get_stack_tf_state(ctx, from_json, file, stack_id): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -3129,7 +3128,7 @@ def get_stack_tf_state(ctx, from_json, file, stack_id): @cli_util.wrap_exceptions def get_template(ctx, from_json, template_id): - if isinstance(template_id, six.string_types) and len(template_id.strip()) == 0: + if isinstance(template_id, str) and len(template_id.strip()) == 0: raise click.UsageError('Parameter --template-id cannot be whitespace or empty string') kwargs = {} @@ -3152,7 +3151,7 @@ def get_template(ctx, from_json, template_id): @cli_util.wrap_exceptions def get_template_logo(ctx, from_json, file, template_id): - if isinstance(template_id, six.string_types) and len(template_id.strip()) == 0: + if isinstance(template_id, str) and len(template_id.strip()) == 0: raise click.UsageError('Parameter --template-id cannot be whitespace or empty string') kwargs = {} @@ -3197,7 +3196,7 @@ def get_template_logo(ctx, from_json, file, template_id): @cli_util.wrap_exceptions def get_template_tf_config(ctx, from_json, file, template_id): - if isinstance(template_id, six.string_types) and len(template_id.strip()) == 0: + if isinstance(template_id, str) and len(template_id.strip()) == 0: raise click.UsageError('Parameter --template-id cannot be whitespace or empty string') kwargs = {} @@ -3241,7 +3240,7 @@ def get_template_tf_config(ctx, from_json, file, template_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3270,7 +3269,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def get_work_request_log_entries(ctx, from_json, work_request_id, type, level_greater_than_or_equal_to, sort_order, limit, page, timestamp_greater_than_or_equal_to, timestamp_less_than_or_equal_to): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3306,7 +3305,7 @@ def get_work_request_log_entries(ctx, from_json, work_request_id, type, level_gr @cli_util.wrap_exceptions def get_work_request_log_entries_content(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3399,7 +3398,7 @@ def list_job_associated_resources(ctx, from_json, all_pages, page_size, job_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -3455,7 +3454,7 @@ def list_job_outputs(ctx, from_json, all_pages, page_size, job_id, compartment_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -3660,7 +3659,7 @@ def list_stack_associated_resources(ctx, from_json, all_pages, page_size, stack_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -3717,7 +3716,7 @@ def list_stack_resource_drift_details(ctx, from_json, all_pages, page_size, stac if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') kwargs = {} @@ -3937,7 +3936,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -3994,7 +3993,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4104,7 +4103,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, res @cli_util.wrap_exceptions def update_configuration_source_provider(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_source_provider_id, display_name, description, config_source_provider_type, private_server_config_details, freeform_tags, defined_tags, if_match): - if isinstance(configuration_source_provider_id, six.string_types) and len(configuration_source_provider_id.strip()) == 0: + if isinstance(configuration_source_provider_id, str) and len(configuration_source_provider_id.strip()) == 0: raise click.UsageError('Parameter --configuration-source-provider-id cannot be whitespace or empty string') if not force: if private_server_config_details or freeform_tags or defined_tags: @@ -4189,7 +4188,7 @@ def update_configuration_source_provider(ctx, from_json, force, wait_for_state, @cli_util.wrap_exceptions def update_configuration_source_provider_update_bitbucket_server_access_token_configuration_source_provider_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_source_provider_id, display_name, description, private_server_config_details, freeform_tags, defined_tags, secret_id, api_endpoint, if_match): - if isinstance(configuration_source_provider_id, six.string_types) and len(configuration_source_provider_id.strip()) == 0: + if isinstance(configuration_source_provider_id, str) and len(configuration_source_provider_id.strip()) == 0: raise click.UsageError('Parameter --configuration-source-provider-id cannot be whitespace or empty string') if not force: if private_server_config_details or freeform_tags or defined_tags: @@ -4279,7 +4278,7 @@ def update_configuration_source_provider_update_bitbucket_server_access_token_co @cli_util.wrap_exceptions def update_configuration_source_provider_update_gitlab_access_token_configuration_source_provider_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_source_provider_id, display_name, description, private_server_config_details, freeform_tags, defined_tags, api_endpoint, access_token, if_match): - if isinstance(configuration_source_provider_id, six.string_types) and len(configuration_source_provider_id.strip()) == 0: + if isinstance(configuration_source_provider_id, str) and len(configuration_source_provider_id.strip()) == 0: raise click.UsageError('Parameter --configuration-source-provider-id cannot be whitespace or empty string') if not force: if private_server_config_details or freeform_tags or defined_tags: @@ -4370,7 +4369,7 @@ def update_configuration_source_provider_update_gitlab_access_token_configuratio @cli_util.wrap_exceptions def update_configuration_source_provider_update_bitbucket_cloud_email_api_token_configuration_source_provider_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_source_provider_id, display_name, description, private_server_config_details, freeform_tags, defined_tags, api_endpoint, email, secret_id, if_match): - if isinstance(configuration_source_provider_id, six.string_types) and len(configuration_source_provider_id.strip()) == 0: + if isinstance(configuration_source_provider_id, str) and len(configuration_source_provider_id.strip()) == 0: raise click.UsageError('Parameter --configuration-source-provider-id cannot be whitespace or empty string') if not force: if private_server_config_details or freeform_tags or defined_tags: @@ -4463,7 +4462,7 @@ def update_configuration_source_provider_update_bitbucket_cloud_email_api_token_ @cli_util.wrap_exceptions def update_configuration_source_provider_update_github_access_token_configuration_source_provider_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, configuration_source_provider_id, display_name, description, private_server_config_details, freeform_tags, defined_tags, api_endpoint, access_token, if_match): - if isinstance(configuration_source_provider_id, six.string_types) and len(configuration_source_provider_id.strip()) == 0: + if isinstance(configuration_source_provider_id, str) and len(configuration_source_provider_id.strip()) == 0: raise click.UsageError('Parameter --configuration-source-provider-id cannot be whitespace or empty string') if not force: if private_server_config_details or freeform_tags or defined_tags: @@ -4549,7 +4548,7 @@ def update_configuration_source_provider_update_github_access_token_configuratio @cli_util.wrap_exceptions def update_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, job_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -4630,7 +4629,7 @@ def update_job(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def update_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, private_endpoint_id, display_name, description, vcn_id, subnet_id, dns_zones, nsg_id_list, is_used_with_configuration_source_provider, freeform_tags, defined_tags, security_attributes, if_match): - if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0: + if isinstance(private_endpoint_id, str) and len(private_endpoint_id.strip()) == 0: raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string') if not force: if dns_zones or nsg_id_list or freeform_tags or defined_tags or security_attributes: @@ -4733,7 +4732,7 @@ def update_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_stack(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, display_name, description, config_source, custom_terraform_provider, is_third_party_provider_experience_enabled, variables, terraform_version, freeform_tags, defined_tags, if_match): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') if not force: if config_source or custom_terraform_provider or variables or freeform_tags or defined_tags: @@ -4833,7 +4832,7 @@ def update_stack(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_stack_update_bitbucket_cloud_config_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, config_source_configuration_source_provider_id, display_name, description, custom_terraform_provider, is_third_party_provider_experience_enabled, variables, terraform_version, freeform_tags, defined_tags, if_match, config_source_working_directory, config_source_repository_url, config_source_branch_name, config_source_workspace_id): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') if not force: if custom_terraform_provider or variables or freeform_tags or defined_tags: @@ -4947,7 +4946,7 @@ def update_stack_update_bitbucket_cloud_config_source_details(ctx, from_json, fo @cli_util.wrap_exceptions def update_stack_update_bitbucket_server_config_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, config_source_configuration_source_provider_id, display_name, description, custom_terraform_provider, is_third_party_provider_experience_enabled, variables, terraform_version, freeform_tags, defined_tags, if_match, config_source_working_directory, config_source_repository_url, config_source_branch_name, config_source_project_id, config_source_repository_id): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') if not force: if custom_terraform_provider or variables or freeform_tags or defined_tags: @@ -5062,7 +5061,7 @@ def update_stack_update_bitbucket_server_config_source_details(ctx, from_json, f @cli_util.wrap_exceptions def update_stack_update_git_config_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, config_source_configuration_source_provider_id, display_name, description, custom_terraform_provider, is_third_party_provider_experience_enabled, variables, terraform_version, freeform_tags, defined_tags, if_match, config_source_working_directory, config_source_repository_url, config_source_branch_name): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') if not force: if custom_terraform_provider or variables or freeform_tags or defined_tags: @@ -5171,7 +5170,7 @@ def update_stack_update_git_config_source_details(ctx, from_json, force, wait_fo @cli_util.wrap_exceptions def update_stack_update_object_storage_config_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, display_name, description, custom_terraform_provider, is_third_party_provider_experience_enabled, variables, terraform_version, freeform_tags, defined_tags, if_match, config_source_working_directory, config_source_region, config_source_namespace, config_source_bucket_name): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') if not force: if custom_terraform_provider or variables or freeform_tags or defined_tags: @@ -5280,7 +5279,7 @@ def update_stack_update_object_storage_config_source_details(ctx, from_json, for @cli_util.wrap_exceptions def update_stack_update_zip_upload_config_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, display_name, description, custom_terraform_provider, is_third_party_provider_experience_enabled, variables, terraform_version, freeform_tags, defined_tags, if_match, config_source_working_directory, config_source_zip_file_base64_encoded): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') if not force: if custom_terraform_provider or variables or freeform_tags or defined_tags: @@ -5385,7 +5384,7 @@ def update_stack_update_zip_upload_config_source_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_stack_update_dev_ops_config_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, config_source_project_id, config_source_repository_id, display_name, description, custom_terraform_provider, is_third_party_provider_experience_enabled, variables, terraform_version, freeform_tags, defined_tags, if_match, config_source_working_directory, config_source_branch_name): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') if not force: if custom_terraform_provider or variables or freeform_tags or defined_tags: @@ -5487,7 +5486,7 @@ def update_stack_update_dev_ops_config_source_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_template(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, template_id, display_name, description, long_description, logo_file_base64_encoded, template_config_source, freeform_tags, defined_tags, if_match): - if isinstance(template_id, six.string_types) and len(template_id.strip()) == 0: + if isinstance(template_id, str) and len(template_id.strip()) == 0: raise click.UsageError('Parameter --template-id cannot be whitespace or empty string') if not force: if template_config_source or freeform_tags or defined_tags: @@ -5575,7 +5574,7 @@ def update_template(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_template_update_template_zip_upload_config_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, template_id, display_name, description, long_description, logo_file_base64_encoded, freeform_tags, defined_tags, if_match, template_config_source_zip_file_base64_encoded): - if isinstance(template_id, six.string_types) and len(template_id.strip()) == 0: + if isinstance(template_id, str) and len(template_id.strip()) == 0: raise click.UsageError('Parameter --template-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/resource_manager/src/oci_cli_resource_manager/resourcemanager_cli_extended.py b/services/resource_manager/src/oci_cli_resource_manager/resourcemanager_cli_extended.py index 29259665e..c264f4e3d 100644 --- a/services/resource_manager/src/oci_cli_resource_manager/resourcemanager_cli_extended.py +++ b/services/resource_manager/src/oci_cli_resource_manager/resourcemanager_cli_extended.py @@ -5,7 +5,6 @@ import click import os import os.path -import six import sys from services.resource_manager.src.oci_cli_resource_manager.generated import resourcemanager_cli from oci_cli import cli_util @@ -307,7 +306,7 @@ def get_job_logs_extended(ctx, job_id, type, level_greater_than_or_equal_to, sor if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(job_id, six.string_types) and len(job_id.strip()) == 0: + if isinstance(job_id, str) and len(job_id.strip()) == 0: raise click.UsageError('Parameter --job-id cannot be whitespace or empty string') kwargs = {} @@ -480,7 +479,7 @@ def update_template_update_template_zip_upload_config_source_details_extended(ct @cli_util.wrap_exceptions def copy_stack(ctx, from_json, stack_id, destination_region, destination_compartment_id, display_name, description, freeform_tags, defined_tags, variables, access_token): - if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0: + if isinstance(stack_id, str) and len(stack_id.strip()) == 0: raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string') if destination_region is not None and not is_region(destination_region): diff --git a/services/resource_scheduler/src/oci_cli_schedule/generated/schedule_cli.py b/services/resource_scheduler/src/oci_cli_schedule/generated/schedule_cli.py index c29b37d6c..58e6b730a 100644 --- a/services/resource_scheduler/src/oci_cli_schedule/generated/schedule_cli.py +++ b/services/resource_scheduler/src/oci_cli_schedule/generated/schedule_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -74,7 +73,7 @@ def resource_type_collection_group(): @cli_util.wrap_exceptions def activate_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -123,7 +122,7 @@ def activate_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -152,7 +151,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_schedule_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, compartment_id, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -319,7 +318,7 @@ def create_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def deactivate_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -371,7 +370,7 @@ def deactivate_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -430,7 +429,7 @@ def delete_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def get_schedule(ctx, from_json, schedule_id): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -452,7 +451,7 @@ def get_schedule(ctx, from_json, schedule_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -598,7 +597,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -655,7 +654,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -797,7 +796,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, display_name, description, action, recurrence_details, recurrence_type, resource_filters, resources, time_starts, time_ends, local_time_zone, freeform_tags, defined_tags, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') if not force: if resource_filters or resources or freeform_tags or defined_tags: diff --git a/services/resource_search/src/oci_cli_resource_search/generated/resourcesearch_cli.py b/services/resource_search/src/oci_cli_resource_search/generated/resourcesearch_cli.py index 3a9c20d5a..f1458f2d2 100644 --- a/services/resource_search/src/oci_cli_resource_search/generated/resourcesearch_cli.py +++ b/services/resource_search/src/oci_cli_resource_search/generated/resourcesearch_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -47,7 +46,7 @@ def resource_summary_group(): @cli_util.wrap_exceptions def get_resource_type(ctx, from_json, name): - if isinstance(name, six.string_types) and len(name.strip()) == 0: + if isinstance(name, str) and len(name.strip()) == 0: raise click.UsageError('Parameter --name cannot be whitespace or empty string') kwargs = {} diff --git a/services/rover/src/oci_cli_rover/rover_utils.py b/services/rover/src/oci_cli_rover/rover_utils.py index 0f403e177..67f6eacce 100644 --- a/services/rover/src/oci_cli_rover/rover_utils.py +++ b/services/rover/src/oci_cli_rover/rover_utils.py @@ -10,7 +10,6 @@ import sys import time import click -import six import oci from oci.object_storage import UploadManager, MultipartObjectAssembler @@ -53,7 +52,7 @@ def __init__(self, data=None, headers=None): def get_compute_image_helper(ctx, image_id): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') ctx_endpoint = ctx.obj['endpoint'] ctx.obj['endpoint'] = None @@ -71,7 +70,7 @@ def get_compute_image_helper(ctx, image_id): def export_compute_image_helper(ctx, image_id, destinationUri): - if isinstance(image_id, six.string_types) and len(image_id.strip()) == 0: + if isinstance(image_id, str) and len(image_id.strip()) == 0: raise click.UsageError('Parameter --image-id cannot be whitespace or empty string') export_details = { 'destinationType': 'objectStorageUri', @@ -218,7 +217,7 @@ def create_master_key_policy_rover_resource(resource_name, ctx, **kwargs): def setup_master_key_policy(ctx, **kwargs): # Validate master-key-id - if isinstance(kwargs['master_key_id'], six.string_types) and len(kwargs['master_key_id'].strip()) == 0: + if isinstance(kwargs['master_key_id'], str) and len(kwargs['master_key_id'].strip()) == 0: raise click.UsageError('Parameter master_key_id cannot be whitespace or empty string') config = oci.config.from_file(file_location=ctx.obj['config_file'], profile_name=ctx.obj['profile']) root_compartment = config['tenancy'] @@ -274,11 +273,11 @@ def setup_master_key_policy(ctx, **kwargs): def validate_policy_parameters(**kwargs): if 'policy_compartment_id' in kwargs and kwargs['policy_compartment_id']: - if isinstance(kwargs['policy_compartment_id'], six.string_types) and \ + if isinstance(kwargs['policy_compartment_id'], str) and \ len(kwargs['policy_compartment_id'].strip()) == 0: raise click.UsageError('Parameter policy-compartment-id cannot be whitespace or empty string') if 'policy_name' in kwargs and kwargs['policy_name']: - if isinstance(kwargs['policy_name'], six.string_types) and len(kwargs['policy_name'].strip()) == 0: + if isinstance(kwargs['policy_name'], str) and len(kwargs['policy_name'].strip()) == 0: raise click.UsageError('Policy name cannot be whitespace or empty string') diff --git a/services/rover/src/oci_cli_rover_bundle/generated/roverbundle_cli.py b/services/rover/src/oci_cli_rover_bundle/generated/roverbundle_cli.py index e02dd2cd1..3425c0888 100644 --- a/services/rover/src/oci_cli_rover_bundle/generated/roverbundle_cli.py +++ b/services/rover/src/oci_cli_rover_bundle/generated/roverbundle_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def list_rover_cluster_rover_bundle_requests(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -114,7 +113,7 @@ def list_rover_node_rover_bundle_requests(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -168,7 +167,7 @@ def list_rover_node_rover_bundle_requests(ctx, from_json, all_pages, page_size, @cli_util.wrap_exceptions def request_bundle_rover_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, destination_compartment_id, destination_bucket_name, bundle_version, rover_cluster_id): - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -232,7 +231,7 @@ def request_bundle_rover_cluster(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def request_bundle_rover_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, destination_compartment_id, destination_bucket_name, bundle_version, rover_node_id): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -291,7 +290,7 @@ def request_bundle_rover_node(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def retrieve_available_bundle_versions_rover_cluster(ctx, from_json, current_rover_bundle_version, rover_cluster_id): - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -319,7 +318,7 @@ def retrieve_available_bundle_versions_rover_cluster(ctx, from_json, current_rov @cli_util.wrap_exceptions def retrieve_available_bundle_versions_rover_node(ctx, from_json, current_rover_bundle_version, rover_node_id): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -347,7 +346,7 @@ def retrieve_available_bundle_versions_rover_node(ctx, from_json, current_rover_ @cli_util.wrap_exceptions def retrieve_bundle_status_rover_cluster(ctx, from_json, work_request_id, rover_cluster_id): - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -375,7 +374,7 @@ def retrieve_bundle_status_rover_cluster(ctx, from_json, work_request_id, rover_ @cli_util.wrap_exceptions def retrieve_bundle_status_rover_node(ctx, from_json, work_request_id, rover_node_id): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/rover/src/oci_cli_rover_cluster/generated/rovercluster_cli.py b/services/rover/src/oci_cli_rover_cluster/generated/rovercluster_cli.py index 9cdbcf091..469bc3f58 100644 --- a/services/rover/src/oci_cli_rover_cluster/generated/rovercluster_cli.py +++ b/services/rover/src/oci_cli_rover_cluster/generated/rovercluster_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -50,7 +49,7 @@ def rover_cluster_certificate_group(): @cli_util.wrap_exceptions def change_rover_cluster_compartment(ctx, from_json, rover_cluster_id, compartment_id, if_match): - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -231,7 +230,7 @@ def create_rover_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_rover_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, rover_cluster_id, if_match): - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -290,7 +289,7 @@ def delete_rover_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def get_rover_cluster(ctx, from_json, rover_cluster_id): - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -312,7 +311,7 @@ def get_rover_cluster(ctx, from_json, rover_cluster_id): @cli_util.wrap_exceptions def get_rover_cluster_certificate(ctx, from_json, rover_cluster_id): - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -402,7 +401,7 @@ def list_rover_clusters(ctx, from_json, all_pages, page_size, compartment_id, di @cli_util.wrap_exceptions def request_additional_nodes(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, rover_cluster_id, number_of_additional_nodes, if_match): - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') kwargs = {} @@ -490,7 +489,7 @@ def request_additional_nodes(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_rover_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, rover_cluster_id, display_name, cluster_size, customer_shipping_address, cluster_workloads, super_user_password, lifecycle_state, lifecycle_state_details, unlock_passphrase, enclosure_type, point_of_contact, point_of_contact_phone_number, shipping_preference, oracle_shipping_tracking_url, subscription_id, shipping_vendor, time_pickup_expected, is_import_requested, import_compartment_id, import_file_bucket, data_validation_code, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --rover-cluster-id cannot be whitespace or empty string') if not force: if customer_shipping_address or cluster_workloads or freeform_tags or defined_tags or system_tags: diff --git a/services/rover/src/oci_cli_rover_cluster/rovercluster_cli_extended.py b/services/rover/src/oci_cli_rover_cluster/rovercluster_cli_extended.py index 5de98158d..1c5879108 100644 --- a/services/rover/src/oci_cli_rover_cluster/rovercluster_cli_extended.py +++ b/services/rover/src/oci_cli_rover_cluster/rovercluster_cli_extended.py @@ -4,7 +4,6 @@ from __future__ import print_function import click -import six # noqa: F401 from oci_cli import cli_util from oci_cli import json_skeleton_utils from oci_cli import custom_types # noqa: F401 diff --git a/services/rover/src/oci_cli_rover_cluster/rovercluster_utils.py b/services/rover/src/oci_cli_rover_cluster/rovercluster_utils.py index 226fbcba2..ddeb349ba 100644 --- a/services/rover/src/oci_cli_rover_cluster/rovercluster_utils.py +++ b/services/rover/src/oci_cli_rover_cluster/rovercluster_utils.py @@ -4,7 +4,6 @@ import json import click -import six from oci_cli import cli_util from oci_cli.cli_util import formatted_flat_dict @@ -84,7 +83,7 @@ def create_cluster_common(ctx, **kwargs): def show_cluster_common(ctx, **kwargs): - if isinstance(kwargs['cluster_id'], six.string_types) and len(kwargs['cluster_id'].strip()) == 0: + if isinstance(kwargs['cluster_id'], str) and len(kwargs['cluster_id'].strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') result = get_rover_cluster_helper(ctx, kwargs['cluster_id']) @@ -129,7 +128,7 @@ def request_cluster_common(ctx, cluster_type, **kwargs): def delete_cluster_common(ctx, **kwargs): - if isinstance(kwargs['cluster_id'], six.string_types) and len(kwargs['cluster_id'].strip()) == 0: + if isinstance(kwargs['cluster_id'], str) and len(kwargs['cluster_id'].strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs_request = {} @@ -161,7 +160,7 @@ def set_secrets_cluster_common(ctx, **kwargs): def change_cluster_compartment_common(ctx, **kwargs): - if isinstance(kwargs['cluster_id'], six.string_types) and len(kwargs['cluster_id'].strip()) == 0: + if isinstance(kwargs['cluster_id'], str) and len(kwargs['cluster_id'].strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') kwargs.update({'rover_cluster_id': kwargs['cluster_id']}) kwargs.pop('cluster_id') @@ -249,10 +248,10 @@ def get_rover_cluster_certificate_common(ctx, **kwargs): rover_cluster_id = kwargs['cluster_id'] output_file_path = kwargs['output_file_path'] - if isinstance(rover_cluster_id, six.string_types) and len(rover_cluster_id.strip()) == 0: + if isinstance(rover_cluster_id, str) and len(rover_cluster_id.strip()) == 0: raise click.UsageError('Parameter --cluster-id cannot be whitespace or empty string') - if isinstance(output_file_path, six.string_types) and len(output_file_path.strip()) == 0: + if isinstance(output_file_path, str) and len(output_file_path.strip()) == 0: raise click.UsageError('Parameter --output-file-path cannot be whitespace or empty string') kwargs = {'opc_request_id': cli_util.use_or_generate_request_id(ctx.obj['request_id'])} diff --git a/services/rover/src/oci_cli_rover_entitlement/generated/roverentitlement_cli.py b/services/rover/src/oci_cli_rover_entitlement/generated/roverentitlement_cli.py index 50dbe4923..06a9b2b7e 100644 --- a/services/rover/src/oci_cli_rover_entitlement/generated/roverentitlement_cli.py +++ b/services/rover/src/oci_cli_rover_entitlement/generated/roverentitlement_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -43,7 +42,7 @@ def rover_entitlement_group(): @cli_util.wrap_exceptions def change_rover_entitlement_compartment(ctx, from_json, rover_entitlement_id, compartment_id, if_match): - if isinstance(rover_entitlement_id, six.string_types) and len(rover_entitlement_id.strip()) == 0: + if isinstance(rover_entitlement_id, str) and len(rover_entitlement_id.strip()) == 0: raise click.UsageError('Parameter --rover-entitlement-id cannot be whitespace or empty string') kwargs = {} @@ -162,7 +161,7 @@ def create_rover_entitlement(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_rover_entitlement(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, rover_entitlement_id, if_match): - if isinstance(rover_entitlement_id, six.string_types) and len(rover_entitlement_id.strip()) == 0: + if isinstance(rover_entitlement_id, str) and len(rover_entitlement_id.strip()) == 0: raise click.UsageError('Parameter --rover-entitlement-id cannot be whitespace or empty string') kwargs = {} @@ -222,7 +221,7 @@ def delete_rover_entitlement(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def get_rover_entitlement(ctx, from_json, rover_entitlement_id, compartment_id): - if isinstance(rover_entitlement_id, six.string_types) and len(rover_entitlement_id.strip()) == 0: + if isinstance(rover_entitlement_id, str) and len(rover_entitlement_id.strip()) == 0: raise click.UsageError('Parameter --rover-entitlement-id cannot be whitespace or empty string') kwargs = {} @@ -323,7 +322,7 @@ def list_rover_entitlements(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def update_rover_entitlement(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, rover_entitlement_id, display_name, tenant_id, requestor_name, requestor_email, entitlement_details, lifecycle_state, lifecycle_state_details, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(rover_entitlement_id, six.string_types) and len(rover_entitlement_id.strip()) == 0: + if isinstance(rover_entitlement_id, str) and len(rover_entitlement_id.strip()) == 0: raise click.UsageError('Parameter --rover-entitlement-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: diff --git a/services/rover/src/oci_cli_rover_node/generated/rovernode_cli.py b/services/rover/src/oci_cli_rover_node/generated/rovernode_cli.py index 6ef4bd30d..cac03a462 100644 --- a/services/rover/src/oci_cli_rover_node/generated/rovernode_cli.py +++ b/services/rover/src/oci_cli_rover_node/generated/rovernode_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -71,7 +70,7 @@ def rover_node_get_rpt_group(): @cli_util.wrap_exceptions def change_rover_node_compartment(ctx, from_json, rover_node_id, compartment_id, if_match): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -286,7 +285,7 @@ def create_rover_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_rover_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, rover_node_id, if_match): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -345,7 +344,7 @@ def delete_rover_node(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def get_rover_node(ctx, from_json, rover_node_id): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -367,7 +366,7 @@ def get_rover_node(ctx, from_json, rover_node_id): @cli_util.wrap_exceptions def get_rover_node_certificate(ctx, from_json, rover_node_id): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -389,7 +388,7 @@ def get_rover_node_certificate(ctx, from_json, rover_node_id): @cli_util.wrap_exceptions def get_rover_node_encryption_key(ctx, from_json, rover_node_id): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -412,7 +411,7 @@ def get_rover_node_encryption_key(ctx, from_json, rover_node_id): @cli_util.wrap_exceptions def get_rover_node_get_rpt(ctx, from_json, rover_node_id, jwt): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -502,7 +501,7 @@ def list_rover_nodes(ctx, from_json, all_pages, page_size, compartment_id, displ @cli_util.wrap_exceptions def rover_node_action_retrieve_ca_bundle(ctx, from_json, rover_node_id, if_match): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -529,7 +528,7 @@ def rover_node_action_retrieve_ca_bundle(ctx, from_json, rover_node_id, if_match @cli_util.wrap_exceptions def rover_node_action_set_key(ctx, from_json, rover_node_id, jwt, public_key, if_match): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -564,7 +563,7 @@ def rover_node_action_set_key(ctx, from_json, rover_node_id, jwt, public_key, if @cli_util.wrap_exceptions def rover_node_generate_certificate(ctx, from_json, csr, time_cert_validity_end, rover_node_id, if_match): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -597,7 +596,7 @@ def rover_node_generate_certificate(ctx, from_json, csr, time_cert_validity_end, @cli_util.wrap_exceptions def rover_node_renew_certificate(ctx, from_json, csr, time_cert_validity_end, rover_node_id, if_match): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -631,7 +630,7 @@ def rover_node_renew_certificate(ctx, from_json, csr, time_cert_validity_end, ro @cli_util.wrap_exceptions def rover_node_replace_certificate_authority(ctx, from_json, certificate_authority_id, rover_node_id, cert_key_algorithm, cert_signature_algorithm, if_match): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -667,7 +666,7 @@ def rover_node_replace_certificate_authority(ctx, from_json, certificate_authori @cli_util.wrap_exceptions def rover_node_retrieve_leaf_certificate(ctx, from_json, rover_node_id, if_match): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') kwargs = {} @@ -730,7 +729,7 @@ def rover_node_retrieve_leaf_certificate(ctx, from_json, rover_node_id, if_match @cli_util.wrap_exceptions def update_rover_node(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, rover_node_id, display_name, shape, serial_number, customer_shipping_address, node_workloads, super_user_password, unlock_passphrase, point_of_contact, point_of_contact_phone_number, oracle_shipping_tracking_url, shipping_preference, shipping_vendor, time_pickup_expected, lifecycle_state, enclosure_type, lifecycle_state_details, time_return_window_starts, time_return_window_ends, is_import_requested, import_compartment_id, import_file_bucket, data_validation_code, public_key, certificate_authority_id, time_cert_validity_end, common_name, cert_compartment_id, cert_key_algorithm, cert_signature_algorithm, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --rover-node-id cannot be whitespace or empty string') if not force: if customer_shipping_address or node_workloads or freeform_tags or defined_tags or system_tags: diff --git a/services/rover/src/oci_cli_rover_node/rovernode_cli_extended.py b/services/rover/src/oci_cli_rover_node/rovernode_cli_extended.py index 0bdeaa5d1..94a86c56a 100644 --- a/services/rover/src/oci_cli_rover_node/rovernode_cli_extended.py +++ b/services/rover/src/oci_cli_rover_node/rovernode_cli_extended.py @@ -5,7 +5,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 import json from oci_cli import cli_util @@ -378,7 +377,7 @@ def create_rover_node_extended(ctx, **kwargs): @cli_util.wrap_exceptions def show_rover_node_extended(ctx, **kwargs): - if isinstance(kwargs['node_id'], six.string_types) and len(kwargs['node_id'].strip()) == 0: + if isinstance(kwargs['node_id'], str) and len(kwargs['node_id'].strip()) == 0: raise click.UsageError('Parameter --node-id cannot be whitespace or empty string') result = get_rover_node_helper(ctx, kwargs['node_id']) @@ -443,7 +442,7 @@ def request_rover_node(ctx, **kwargs): @cli_util.wrap_exceptions def delete_rover_node_extended(ctx, **kwargs): - if isinstance(kwargs['node_id'], six.string_types) and len(kwargs['node_id'].strip()) == 0: + if isinstance(kwargs['node_id'], str) and len(kwargs['node_id'].strip()) == 0: raise click.UsageError('Parameter --node-id cannot be whitespace or empty string') kwargs_request = {} @@ -575,7 +574,7 @@ def list_workload(ctx, **kwargs): @cli_util.wrap_exceptions def change_rover_node_compartment(ctx, **kwargs): - if isinstance(kwargs['node_id'], six.string_types) and len(kwargs['node_id'].strip()) == 0: + if isinstance(kwargs['node_id'], str) and len(kwargs['node_id'].strip()) == 0: raise click.UsageError('Parameter --node-id cannot be whitespace or empty string') kwargs.update({'rover_node_id': kwargs['node_id']}) kwargs.pop('node_id') @@ -618,7 +617,7 @@ def set_secrets_rover_node(ctx, **kwargs): @cli_util.wrap_exceptions def get_rover_node_encryption_key_extended(ctx, **kwargs): - if isinstance(kwargs['node_id'], six.string_types) and len(kwargs['node_id'].strip()) == 0: + if isinstance(kwargs['node_id'], str) and len(kwargs['node_id'].strip()) == 0: raise click.UsageError('Parameter --node-id cannot be whitespace or empty string') kwargs.update({'rover_node_id': kwargs['node_id']}) kwargs.pop('node_id') @@ -636,10 +635,10 @@ def get_rover_node_certificate_extended(ctx, **kwargs): rover_node_id = kwargs['node_id'] output_file_path = kwargs['output_file_path'] - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --node-id cannot be whitespace or empty string') - if isinstance(output_file_path, six.string_types) and len(output_file_path.strip()) == 0: + if isinstance(output_file_path, str) and len(output_file_path.strip()) == 0: raise click.UsageError('Parameter --output-file-path cannot be whitespace or empty string') kwargs = {} @@ -666,7 +665,7 @@ def get_rover_node_certificate_extended(ctx, **kwargs): def setup_identity_extended(ctx, **kwargs): rover_node_id = kwargs['node_id'] - if isinstance(rover_node_id, six.string_types) and len(rover_node_id.strip()) == 0: + if isinstance(rover_node_id, str) and len(rover_node_id.strip()) == 0: raise click.UsageError('Parameter --node-id cannot be whitespace or empty string') kwargs_show = { diff --git a/services/rover/src/oci_cli_shape/generated/shape_cli.py b/services/rover/src/oci_cli_shape/generated/shape_cli.py index a032340fa..a84a33c0a 100644 --- a/services/rover/src/oci_cli_shape/generated/shape_cli.py +++ b/services/rover/src/oci_cli_shape/generated/shape_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/rover/src/oci_cli_work_requests/generated/workrequests_cli.py b/services/rover/src/oci_cli_work_requests/generated/workrequests_cli.py index a8f770a7f..eea2439a4 100644 --- a/services/rover/src/oci_cli_work_requests/generated/workrequests_cli.py +++ b/services/rover/src/oci_cli_work_requests/generated/workrequests_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -43,7 +42,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -67,7 +66,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -98,7 +97,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -155,7 +154,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/sch/src/oci_cli_connector_plugins/generated/connectorplugins_cli.py b/services/sch/src/oci_cli_connector_plugins/generated/connectorplugins_cli.py index 4bd1ea5bf..bfb81c65f 100644 --- a/services/sch/src/oci_cli_connector_plugins/generated/connectorplugins_cli.py +++ b/services/sch/src/oci_cli_connector_plugins/generated/connectorplugins_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -51,7 +50,7 @@ def connector_plugin_group(): @cli_util.wrap_exceptions def get_connector_plugin(ctx, from_json, connector_plugin_name): - if isinstance(connector_plugin_name, six.string_types) and len(connector_plugin_name.strip()) == 0: + if isinstance(connector_plugin_name, str) and len(connector_plugin_name.strip()) == 0: raise click.UsageError('Parameter --connector-plugin-name cannot be whitespace or empty string') kwargs = {} diff --git a/services/sch/src/oci_cli_service_connector/generated/serviceconnector_cli.py b/services/sch/src/oci_cli_service_connector/generated/serviceconnector_cli.py index d4f5f6d80..c273ccb62 100644 --- a/services/sch/src/oci_cli_service_connector/generated/serviceconnector_cli.py +++ b/services/sch/src/oci_cli_service_connector/generated/serviceconnector_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -73,7 +72,7 @@ def work_request_group(): @cli_util.wrap_exceptions def activate_service_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, if_match): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') kwargs = {} @@ -131,7 +130,7 @@ def activate_service_connector(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_service_connector_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, compartment_id, if_match): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') kwargs = {} @@ -1166,7 +1165,7 @@ def create_service_connector_streaming_target_details(ctx, from_json, wait_for_s @cli_util.wrap_exceptions def deactivate_service_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, if_match): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') kwargs = {} @@ -1224,7 +1223,7 @@ def deactivate_service_connector(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_service_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, if_match): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') kwargs = {} @@ -1275,7 +1274,7 @@ def delete_service_connector(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def get_service_connector(ctx, from_json, service_connector_id): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') kwargs = {} @@ -1297,7 +1296,7 @@ def get_service_connector(ctx, from_json, service_connector_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1390,7 +1389,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1441,7 +1440,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1549,7 +1548,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def update_service_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, display_name, description, source, tasks, target, freeform_tags, defined_tags, if_match): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if source or tasks or target or freeform_tags or defined_tags: @@ -1645,7 +1644,7 @@ def update_service_connector(ctx, from_json, force, wait_for_state, max_wait_sec @cli_util.wrap_exceptions def update_service_connector_logging_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, source_log_sources, display_name, description, tasks, target, freeform_tags, defined_tags, if_match): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if tasks or target or freeform_tags or defined_tags: @@ -1742,7 +1741,7 @@ def update_service_connector_logging_source_details(ctx, from_json, force, wait_ @cli_util.wrap_exceptions def update_service_connector_monitoring_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, source_monitoring_sources, display_name, description, tasks, target, freeform_tags, defined_tags, if_match): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if tasks or target or freeform_tags or defined_tags: @@ -1840,7 +1839,7 @@ def update_service_connector_monitoring_source_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_service_connector_streaming_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, source_stream_id, display_name, description, tasks, target, freeform_tags, defined_tags, if_match, source_cursor): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if tasks or target or freeform_tags or defined_tags: @@ -1941,7 +1940,7 @@ def update_service_connector_streaming_source_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_service_connector_plugin_source_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, source_plugin_name, source_config_map, display_name, description, tasks, target, freeform_tags, defined_tags, if_match): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if tasks or target or freeform_tags or defined_tags: @@ -2040,7 +2039,7 @@ def update_service_connector_plugin_source_details(ctx, from_json, force, wait_f @cli_util.wrap_exceptions def update_service_connector_notifications_target_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, target_topic_id, display_name, description, source, tasks, freeform_tags, defined_tags, if_match, target_enable_formatted_messaging): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if source or tasks or freeform_tags or defined_tags: @@ -2144,7 +2143,7 @@ def update_service_connector_notifications_target_details(ctx, from_json, force, @cli_util.wrap_exceptions def update_service_connector_object_storage_target_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, target_bucket_name, display_name, description, source, tasks, freeform_tags, defined_tags, if_match, target_namespace, target_object_name_prefix, target_batch_rollover_size_in_mbs, target_batch_rollover_time_in_ms): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if source or tasks or freeform_tags or defined_tags: @@ -2258,7 +2257,7 @@ def update_service_connector_object_storage_target_details(ctx, from_json, force @cli_util.wrap_exceptions def update_service_connector_monitoring_target_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, target_compartment_id, target_metric_namespace, target_metric, display_name, description, source, tasks, freeform_tags, defined_tags, if_match, target_dimensions): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if source or tasks or freeform_tags or defined_tags: @@ -2363,7 +2362,7 @@ def update_service_connector_monitoring_target_details(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_service_connector_functions_target_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, target_function_id, display_name, description, source, tasks, freeform_tags, defined_tags, if_match, target_batch_size_in_kbs, target_batch_size_in_num, target_batch_time_in_sec): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if source or tasks or freeform_tags or defined_tags: @@ -2470,7 +2469,7 @@ def update_service_connector_functions_target_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_service_connector_logging_analytics_target_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, target_log_group_id, display_name, description, source, tasks, freeform_tags, defined_tags, if_match, target_log_source_identifier): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if source or tasks or freeform_tags or defined_tags: @@ -2570,7 +2569,7 @@ def update_service_connector_logging_analytics_target_details(ctx, from_json, fo @cli_util.wrap_exceptions def update_service_connector_streaming_target_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_connector_id, target_stream_id, display_name, description, source, tasks, freeform_tags, defined_tags, if_match): - if isinstance(service_connector_id, six.string_types) and len(service_connector_id.strip()) == 0: + if isinstance(service_connector_id, str) and len(service_connector_id.strip()) == 0: raise click.UsageError('Parameter --service-connector-id cannot be whitespace or empty string') if not force: if source or tasks or freeform_tags or defined_tags: diff --git a/services/secrets/src/oci_cli_secrets/generated/secrets_cli.py b/services/secrets/src/oci_cli_secrets/generated/secrets_cli.py index 931c00145..f92b6ce7e 100644 --- a/services/secrets/src/oci_cli_secrets/generated/secrets_cli.py +++ b/services/secrets/src/oci_cli_secrets/generated/secrets_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -50,7 +49,7 @@ def secret_bundle_group(): @cli_util.wrap_exceptions def get_secret_bundle(ctx, from_json, secret_id, version_number, secret_version_name, stage): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') kwargs = {} @@ -117,7 +116,7 @@ def list_secret_bundle_versions(ctx, from_json, all_pages, page_size, secret_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/security_attribute/src/oci_cli_security_attribute/generated/securityattribute_cli.py b/services/security_attribute/src/oci_cli_security_attribute/generated/securityattribute_cli.py index 51ed8c4ec..f88010109 100644 --- a/services/security_attribute/src/oci_cli_security_attribute/generated/securityattribute_cli.py +++ b/services/security_attribute/src/oci_cli_security_attribute/generated/securityattribute_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -149,7 +148,7 @@ def bulk_edit_security_attributes(ctx, from_json, compartment_id, resources, bul @cli_util.wrap_exceptions def cascading_delete_security_attribute_namespace(ctx, from_json, security_attribute_namespace_id, if_match): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -179,7 +178,7 @@ def cascading_delete_security_attribute_namespace(ctx, from_json, security_attri @cli_util.wrap_exceptions def change_security_attribute_namespace_compartment(ctx, from_json, security_attribute_namespace_id, compartment_id, if_match): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -222,7 +221,7 @@ def change_security_attribute_namespace_compartment(ctx, from_json, security_att @cli_util.wrap_exceptions def create_security_attribute(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_attribute_namespace_id, name, description, validator): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -290,7 +289,7 @@ def create_security_attribute(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def create_security_attribute_enum_security_attribute_validator(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_attribute_namespace_id, name, description, validator_values): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -360,7 +359,7 @@ def create_security_attribute_enum_security_attribute_validator(ctx, from_json, @cli_util.wrap_exceptions def create_security_attribute_default_security_attribute_validator(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_attribute_namespace_id, name, description): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -496,10 +495,10 @@ def create_security_attribute_namespace(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def delete_security_attribute(ctx, from_json, security_attribute_namespace_id, security_attribute_name, if_match): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') - if isinstance(security_attribute_name, six.string_types) and len(security_attribute_name.strip()) == 0: + if isinstance(security_attribute_name, str) and len(security_attribute_name.strip()) == 0: raise click.UsageError('Parameter --security-attribute-name cannot be whitespace or empty string') kwargs = {} @@ -529,7 +528,7 @@ def delete_security_attribute(ctx, from_json, security_attribute_namespace_id, s @cli_util.wrap_exceptions def delete_security_attribute_namespace(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_attribute_namespace_id, if_match): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -589,10 +588,10 @@ def delete_security_attribute_namespace(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def get_security_attribute(ctx, from_json, security_attribute_namespace_id, security_attribute_name): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') - if isinstance(security_attribute_name, six.string_types) and len(security_attribute_name.strip()) == 0: + if isinstance(security_attribute_name, str) and len(security_attribute_name.strip()) == 0: raise click.UsageError('Parameter --security-attribute-name cannot be whitespace or empty string') kwargs = {} @@ -615,7 +614,7 @@ def get_security_attribute(ctx, from_json, security_attribute_namespace_id, secu @cli_util.wrap_exceptions def get_security_attribute_namespace(ctx, from_json, security_attribute_namespace_id): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -637,7 +636,7 @@ def get_security_attribute_namespace(ctx, from_json, security_attribute_namespac @cli_util.wrap_exceptions def get_security_attribute_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -730,7 +729,7 @@ def list_security_attribute_work_request_errors(ctx, from_json, all_pages, page_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -781,7 +780,7 @@ def list_security_attribute_work_request_logs(ctx, from_json, all_pages, page_si if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -883,7 +882,7 @@ def list_security_attributes(ctx, from_json, all_pages, page_size, security_attr if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') kwargs = {} @@ -938,10 +937,10 @@ def list_security_attributes(ctx, from_json, all_pages, page_size, security_attr @cli_util.wrap_exceptions def update_security_attribute(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, security_attribute_namespace_id, security_attribute_name, description, is_retired, validator, if_match): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') - if isinstance(security_attribute_name, six.string_types) and len(security_attribute_name.strip()) == 0: + if isinstance(security_attribute_name, str) and len(security_attribute_name.strip()) == 0: raise click.UsageError('Parameter --security-attribute-name cannot be whitespace or empty string') if not force: if validator: @@ -1014,10 +1013,10 @@ def update_security_attribute(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_security_attribute_enum_security_attribute_validator(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_attribute_namespace_id, security_attribute_name, description, is_retired, if_match, validator_values): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') - if isinstance(security_attribute_name, six.string_types) and len(security_attribute_name.strip()) == 0: + if isinstance(security_attribute_name, str) and len(security_attribute_name.strip()) == 0: raise click.UsageError('Parameter --security-attribute-name cannot be whitespace or empty string') kwargs = {} @@ -1088,10 +1087,10 @@ def update_security_attribute_enum_security_attribute_validator(ctx, from_json, @cli_util.wrap_exceptions def update_security_attribute_default_security_attribute_validator(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, security_attribute_namespace_id, security_attribute_name, description, is_retired, if_match): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') - if isinstance(security_attribute_name, six.string_types) and len(security_attribute_name.strip()) == 0: + if isinstance(security_attribute_name, str) and len(security_attribute_name.strip()) == 0: raise click.UsageError('Parameter --security-attribute-name cannot be whitespace or empty string') kwargs = {} @@ -1169,7 +1168,7 @@ def update_security_attribute_default_security_attribute_validator(ctx, from_jso @cli_util.wrap_exceptions def update_security_attribute_namespace(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, security_attribute_namespace_id, description, is_retired, freeform_tags, defined_tags, if_match): - if isinstance(security_attribute_namespace_id, six.string_types) and len(security_attribute_namespace_id.strip()) == 0: + if isinstance(security_attribute_namespace_id, str) and len(security_attribute_namespace_id.strip()) == 0: raise click.UsageError('Parameter --security-attribute-namespace-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/self/src/oci_cli_partner_integeration/generated/partnerintegeration_cli.py b/services/self/src/oci_cli_partner_integeration/generated/partnerintegeration_cli.py index 13c7b5ea2..33295867d 100644 --- a/services/self/src/oci_cli_partner_integeration/generated/partnerintegeration_cli.py +++ b/services/self/src/oci_cli_partner_integeration/generated/partnerintegeration_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -70,7 +69,7 @@ def listing_subscriptions_collection_group(): @cli_util.wrap_exceptions def activate_subscription(ctx, from_json, subscription_id, product_id, freeform_tags, defined_tags, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/self/src/oci_cli_subscription/generated/subscription_cli.py b/services/self/src/oci_cli_subscription/generated/subscription_cli.py index a7034278d..317284314 100644 --- a/services/self/src/oci_cli_subscription/generated/subscription_cli.py +++ b/services/self/src/oci_cli_subscription/generated/subscription_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -81,7 +80,7 @@ def work_request_group(): @cli_util.wrap_exceptions def cancel_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_id, reason, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -137,7 +136,7 @@ def cancel_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -166,7 +165,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_subscription_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_id, compartment_id, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -322,7 +321,7 @@ def create_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_id, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -373,7 +372,7 @@ def delete_subscription(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_subscription(ctx, from_json, subscription_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -395,7 +394,7 @@ def get_subscription(ctx, from_json, subscription_id): @cli_util.wrap_exceptions def get_subscription_token(ctx, from_json, subscription_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -417,7 +416,7 @@ def get_subscription_token(ctx, from_json, subscription_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -510,7 +509,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -567,7 +566,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -689,7 +688,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_subscription(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/service_catalog/src/oci_cli_service_catalog/generated/servicecatalog_cli.py b/services/service_catalog/src/oci_cli_service_catalog/generated/servicecatalog_cli.py index 0a279f6fb..695dff8cc 100644 --- a/services/service_catalog/src/oci_cli_service_catalog/generated/servicecatalog_cli.py +++ b/services/service_catalog/src/oci_cli_service_catalog/generated/servicecatalog_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -100,7 +99,7 @@ def application_summary_group(): @cli_util.wrap_exceptions def bulk_replace_service_catalog_associations(ctx, from_json, force, service_catalog_id, items, if_match): - if isinstance(service_catalog_id, six.string_types) and len(service_catalog_id.strip()) == 0: + if isinstance(service_catalog_id, str) and len(service_catalog_id.strip()) == 0: raise click.UsageError('Parameter --service-catalog-id cannot be whitespace or empty string') if not force: if items: @@ -138,7 +137,7 @@ def bulk_replace_service_catalog_associations(ctx, from_json, force, service_cat @cli_util.wrap_exceptions def change_private_application_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_application_id, compartment_id, if_match): - if isinstance(private_application_id, six.string_types) and len(private_application_id.strip()) == 0: + if isinstance(private_application_id, str) and len(private_application_id.strip()) == 0: raise click.UsageError('Parameter --private-application-id cannot be whitespace or empty string') kwargs = {} @@ -198,7 +197,7 @@ def change_private_application_compartment(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def change_service_catalog_compartment(ctx, from_json, service_catalog_id, compartment_id, if_match): - if isinstance(service_catalog_id, six.string_types) and len(service_catalog_id.strip()) == 0: + if isinstance(service_catalog_id, str) and len(service_catalog_id.strip()) == 0: raise click.UsageError('Parameter --service-catalog-id cannot be whitespace or empty string') kwargs = {} @@ -481,7 +480,7 @@ def create_service_catalog_association(ctx, from_json, service_catalog_id, entit @cli_util.wrap_exceptions def delete_private_application(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_application_id, if_match): - if isinstance(private_application_id, six.string_types) and len(private_application_id.strip()) == 0: + if isinstance(private_application_id, str) and len(private_application_id.strip()) == 0: raise click.UsageError('Parameter --private-application-id cannot be whitespace or empty string') kwargs = {} @@ -537,7 +536,7 @@ def delete_private_application(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_service_catalog(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_catalog_id, if_match): - if isinstance(service_catalog_id, six.string_types) and len(service_catalog_id.strip()) == 0: + if isinstance(service_catalog_id, str) and len(service_catalog_id.strip()) == 0: raise click.UsageError('Parameter --service-catalog-id cannot be whitespace or empty string') kwargs = {} @@ -598,7 +597,7 @@ def delete_service_catalog(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_service_catalog_association(ctx, from_json, service_catalog_association_id, if_match): - if isinstance(service_catalog_association_id, six.string_types) and len(service_catalog_association_id.strip()) == 0: + if isinstance(service_catalog_association_id, str) and len(service_catalog_association_id.strip()) == 0: raise click.UsageError('Parameter --service-catalog-association-id cannot be whitespace or empty string') kwargs = {} @@ -641,7 +640,7 @@ def get_configuration(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_private_application(ctx, from_json, private_application_id): - if isinstance(private_application_id, six.string_types) and len(private_application_id.strip()) == 0: + if isinstance(private_application_id, str) and len(private_application_id.strip()) == 0: raise click.UsageError('Parameter --private-application-id cannot be whitespace or empty string') kwargs = {} @@ -664,7 +663,7 @@ def get_private_application(ctx, from_json, private_application_id): @cli_util.wrap_exceptions def get_private_application_action_download_logo(ctx, from_json, file, private_application_id): - if isinstance(private_application_id, six.string_types) and len(private_application_id.strip()) == 0: + if isinstance(private_application_id, str) and len(private_application_id.strip()) == 0: raise click.UsageError('Parameter --private-application-id cannot be whitespace or empty string') kwargs = {} @@ -708,7 +707,7 @@ def get_private_application_action_download_logo(ctx, from_json, file, private_a @cli_util.wrap_exceptions def get_private_application_package(ctx, from_json, private_application_package_id): - if isinstance(private_application_package_id, six.string_types) and len(private_application_package_id.strip()) == 0: + if isinstance(private_application_package_id, str) and len(private_application_package_id.strip()) == 0: raise click.UsageError('Parameter --private-application-package-id cannot be whitespace or empty string') kwargs = {} @@ -731,7 +730,7 @@ def get_private_application_package(ctx, from_json, private_application_package_ @cli_util.wrap_exceptions def get_private_application_package_action_download_config(ctx, from_json, file, private_application_package_id): - if isinstance(private_application_package_id, six.string_types) and len(private_application_package_id.strip()) == 0: + if isinstance(private_application_package_id, str) and len(private_application_package_id.strip()) == 0: raise click.UsageError('Parameter --private-application-package-id cannot be whitespace or empty string') kwargs = {} @@ -775,7 +774,7 @@ def get_private_application_package_action_download_config(ctx, from_json, file, @cli_util.wrap_exceptions def get_service_catalog(ctx, from_json, service_catalog_id): - if isinstance(service_catalog_id, six.string_types) and len(service_catalog_id.strip()) == 0: + if isinstance(service_catalog_id, str) and len(service_catalog_id.strip()) == 0: raise click.UsageError('Parameter --service-catalog-id cannot be whitespace or empty string') kwargs = {} @@ -797,7 +796,7 @@ def get_service_catalog(ctx, from_json, service_catalog_id): @cli_util.wrap_exceptions def get_service_catalog_association(ctx, from_json, service_catalog_association_id): - if isinstance(service_catalog_association_id, six.string_types) and len(service_catalog_association_id.strip()) == 0: + if isinstance(service_catalog_association_id, str) and len(service_catalog_association_id.strip()) == 0: raise click.UsageError('Parameter --service-catalog-association-id cannot be whitespace or empty string') kwargs = {} @@ -819,7 +818,7 @@ def get_service_catalog_association(ctx, from_json, service_catalog_association_ @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1243,7 +1242,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1300,7 +1299,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1421,7 +1420,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_private_application(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, private_application_id, display_name, short_description, long_description, logo_file_base64_encoded, defined_tags, freeform_tags, if_match): - if isinstance(private_application_id, six.string_types) and len(private_application_id.strip()) == 0: + if isinstance(private_application_id, str) and len(private_application_id.strip()) == 0: raise click.UsageError('Parameter --private-application-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: @@ -1507,7 +1506,7 @@ def update_private_application(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_service_catalog(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, service_catalog_id, display_name, status, defined_tags, freeform_tags, if_match): - if isinstance(service_catalog_id, six.string_types) and len(service_catalog_id.strip()) == 0: + if isinstance(service_catalog_id, str) and len(service_catalog_id.strip()) == 0: raise click.UsageError('Parameter --service-catalog-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags: diff --git a/services/service_manager_proxy/src/oci_cli_service_manager_proxy/generated/servicemanagerproxy_cli.py b/services/service_manager_proxy/src/oci_cli_service_manager_proxy/generated/servicemanagerproxy_cli.py index 4bbeb35c3..470f517b7 100644 --- a/services/service_manager_proxy/src/oci_cli_service_manager_proxy/generated/servicemanagerproxy_cli.py +++ b/services/service_manager_proxy/src/oci_cli_service_manager_proxy/generated/servicemanagerproxy_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -46,7 +45,7 @@ def service_environment_group(): @cli_util.wrap_exceptions def get_service_environment(ctx, from_json, service_environment_id, compartment_id): - if isinstance(service_environment_id, six.string_types) and len(service_environment_id.strip()) == 0: + if isinstance(service_environment_id, str) and len(service_environment_id.strip()) == 0: raise click.UsageError('Parameter --service-environment-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/stack_monitoring/src/oci_cli_stack_monitoring/generated/stackmonitoring_cli.py b/services/stack_monitoring/src/oci_cli_stack_monitoring/generated/stackmonitoring_cli.py index 407d652b0..b213032c7 100644 --- a/services/stack_monitoring/src/oci_cli_stack_monitoring/generated/stackmonitoring_cli.py +++ b/services/stack_monitoring/src/oci_cli_stack_monitoring/generated/stackmonitoring_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -179,7 +178,7 @@ def work_request_log_entry_collection_group(): @cli_util.wrap_exceptions def apply_monitoring_template(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitoring_template_id, if_match): - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') kwargs = {} @@ -270,7 +269,7 @@ def associate_monitored_resources(ctx, from_json, compartment_id, association_ty @cli_util.wrap_exceptions def change_config_compartment(ctx, from_json, config_id, compartment_id, if_match): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') kwargs = {} @@ -301,7 +300,7 @@ def change_config_compartment(ctx, from_json, config_id, compartment_id, if_matc @cli_util.wrap_exceptions def change_metric_extension_compartment(ctx, from_json, metric_extension_id, compartment_id, if_match): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') kwargs = {} @@ -335,7 +334,7 @@ def change_metric_extension_compartment(ctx, from_json, metric_extension_id, com @cli_util.wrap_exceptions def change_monitored_resource_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_id, compartment_id, if_match): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') kwargs = {} @@ -393,7 +392,7 @@ def change_monitored_resource_compartment(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def change_monitored_resource_task_compartment(ctx, from_json, monitored_resource_task_id, compartment_id, if_match): - if isinstance(monitored_resource_task_id, six.string_types) and len(monitored_resource_task_id.strip()) == 0: + if isinstance(monitored_resource_task_id, str) and len(monitored_resource_task_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-task-id cannot be whitespace or empty string') kwargs = {} @@ -424,7 +423,7 @@ def change_monitored_resource_task_compartment(ctx, from_json, monitored_resourc @cli_util.wrap_exceptions def change_process_set_compartment(ctx, from_json, process_set_id, compartment_id, if_match): - if isinstance(process_set_id, six.string_types) and len(process_set_id.strip()) == 0: + if isinstance(process_set_id, str) and len(process_set_id.strip()) == 0: raise click.UsageError('Parameter --process-set-id cannot be whitespace or empty string') kwargs = {} @@ -464,7 +463,7 @@ def change_process_set_compartment(ctx, from_json, process_set_id, compartment_i @cli_util.wrap_exceptions def create_alarm_condition(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, namespace, resource_type, metric_name, condition_type, conditions, monitoring_template_id, composite_type, freeform_tags, defined_tags): - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') kwargs = {} @@ -2929,10 +2928,10 @@ def create_process_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_alarm_condition(ctx, from_json, alarm_condition_id, monitoring_template_id, if_match): - if isinstance(alarm_condition_id, six.string_types) and len(alarm_condition_id.strip()) == 0: + if isinstance(alarm_condition_id, str) and len(alarm_condition_id.strip()) == 0: raise click.UsageError('Parameter --alarm-condition-id cannot be whitespace or empty string') - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') kwargs = {} @@ -2962,7 +2961,7 @@ def delete_alarm_condition(ctx, from_json, alarm_condition_id, monitoring_templa @cli_util.wrap_exceptions def delete_baselineable_metric(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, baselineable_metric_id, if_match): - if isinstance(baselineable_metric_id, six.string_types) and len(baselineable_metric_id.strip()) == 0: + if isinstance(baselineable_metric_id, str) and len(baselineable_metric_id.strip()) == 0: raise click.UsageError('Parameter --baselineable-metric-id cannot be whitespace or empty string') kwargs = {} @@ -3026,7 +3025,7 @@ def delete_baselineable_metric(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, config_id, if_match): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') kwargs = {} @@ -3090,7 +3089,7 @@ def delete_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_discovery_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, discovery_job_id, if_match): - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') kwargs = {} @@ -3154,7 +3153,7 @@ def delete_discovery_job(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_maintenance_window(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_window_id, if_match): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') kwargs = {} @@ -3210,7 +3209,7 @@ def delete_maintenance_window(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_metric_extension(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, if_match): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') kwargs = {} @@ -3275,7 +3274,7 @@ def delete_metric_extension(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_monitored_resource(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_id, if_match, is_delete_members): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') kwargs = {} @@ -3333,7 +3332,7 @@ def delete_monitored_resource(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_monitored_resource_type(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_type_id, if_match): - if isinstance(monitored_resource_type_id, six.string_types) and len(monitored_resource_type_id.strip()) == 0: + if isinstance(monitored_resource_type_id, str) and len(monitored_resource_type_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-type-id cannot be whitespace or empty string') kwargs = {} @@ -3397,7 +3396,7 @@ def delete_monitored_resource_type(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_monitoring_template(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitoring_template_id, if_match): - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') kwargs = {} @@ -3461,7 +3460,7 @@ def delete_monitoring_template(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_process_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, process_set_id, if_match): - if isinstance(process_set_id, six.string_types) and len(process_set_id.strip()) == 0: + if isinstance(process_set_id, str) and len(process_set_id.strip()) == 0: raise click.UsageError('Parameter --process-set-id cannot be whitespace or empty string') kwargs = {} @@ -3524,7 +3523,7 @@ def delete_process_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def disable_external_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_id, if_match): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') kwargs = {} @@ -3580,7 +3579,7 @@ def disable_external_database(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def disable_metric_extension(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, resource_ids, if_match): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') kwargs = {} @@ -3679,7 +3678,7 @@ def disassociate_monitored_resources(ctx, from_json, compartment_id, association @cli_util.wrap_exceptions def enable_metric_extension(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, resource_ids, if_match): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') kwargs = {} @@ -3738,7 +3737,7 @@ def enable_metric_extension(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def evaluate_baselineable_metric(ctx, from_json, resource_id, items, baselineable_metric_id, if_match): - if isinstance(baselineable_metric_id, six.string_types) and len(baselineable_metric_id.strip()) == 0: + if isinstance(baselineable_metric_id, str) and len(baselineable_metric_id.strip()) == 0: raise click.UsageError('Parameter --baselineable-metric-id cannot be whitespace or empty string') kwargs = {} @@ -3770,7 +3769,7 @@ def evaluate_baselineable_metric(ctx, from_json, resource_id, items, baselineabl @cli_util.wrap_exceptions def export_metric_extension(ctx, from_json, file, metric_extension_id, if_match): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') kwargs = {} @@ -3818,7 +3817,7 @@ def export_metric_extension(ctx, from_json, file, metric_extension_id, if_match) @cli_util.wrap_exceptions def export_monitoring_template(ctx, from_json, file, monitoring_template_id, if_match): - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') kwargs = {} @@ -3865,10 +3864,10 @@ def export_monitoring_template(ctx, from_json, file, monitoring_template_id, if_ @cli_util.wrap_exceptions def get_alarm_condition(ctx, from_json, alarm_condition_id, monitoring_template_id): - if isinstance(alarm_condition_id, six.string_types) and len(alarm_condition_id.strip()) == 0: + if isinstance(alarm_condition_id, str) and len(alarm_condition_id.strip()) == 0: raise click.UsageError('Parameter --alarm-condition-id cannot be whitespace or empty string') - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') kwargs = {} @@ -3891,7 +3890,7 @@ def get_alarm_condition(ctx, from_json, alarm_condition_id, monitoring_template_ @cli_util.wrap_exceptions def get_baselineable_metric(ctx, from_json, baselineable_metric_id): - if isinstance(baselineable_metric_id, six.string_types) and len(baselineable_metric_id.strip()) == 0: + if isinstance(baselineable_metric_id, str) and len(baselineable_metric_id.strip()) == 0: raise click.UsageError('Parameter --baselineable-metric-id cannot be whitespace or empty string') kwargs = {} @@ -3913,7 +3912,7 @@ def get_baselineable_metric(ctx, from_json, baselineable_metric_id): @cli_util.wrap_exceptions def get_config(ctx, from_json, config_id): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') kwargs = {} @@ -3935,7 +3934,7 @@ def get_config(ctx, from_json, config_id): @cli_util.wrap_exceptions def get_discovery_job(ctx, from_json, discovery_job_id): - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') kwargs = {} @@ -3957,7 +3956,7 @@ def get_discovery_job(ctx, from_json, discovery_job_id): @cli_util.wrap_exceptions def get_maintenance_window(ctx, from_json, maintenance_window_id): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') kwargs = {} @@ -3979,7 +3978,7 @@ def get_maintenance_window(ctx, from_json, maintenance_window_id): @cli_util.wrap_exceptions def get_metric_extension(ctx, from_json, metric_extension_id): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') kwargs = {} @@ -4001,7 +4000,7 @@ def get_metric_extension(ctx, from_json, metric_extension_id): @cli_util.wrap_exceptions def get_monitored_resource(ctx, from_json, monitored_resource_id): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') kwargs = {} @@ -4023,7 +4022,7 @@ def get_monitored_resource(ctx, from_json, monitored_resource_id): @cli_util.wrap_exceptions def get_monitored_resource_task(ctx, from_json, monitored_resource_task_id): - if isinstance(monitored_resource_task_id, six.string_types) and len(monitored_resource_task_id.strip()) == 0: + if isinstance(monitored_resource_task_id, str) and len(monitored_resource_task_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-task-id cannot be whitespace or empty string') kwargs = {} @@ -4045,7 +4044,7 @@ def get_monitored_resource_task(ctx, from_json, monitored_resource_task_id): @cli_util.wrap_exceptions def get_monitored_resource_type(ctx, from_json, monitored_resource_type_id): - if isinstance(monitored_resource_type_id, six.string_types) and len(monitored_resource_type_id.strip()) == 0: + if isinstance(monitored_resource_type_id, str) and len(monitored_resource_type_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-type-id cannot be whitespace or empty string') kwargs = {} @@ -4067,7 +4066,7 @@ def get_monitored_resource_type(ctx, from_json, monitored_resource_type_id): @cli_util.wrap_exceptions def get_monitoring_template(ctx, from_json, monitoring_template_id): - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') kwargs = {} @@ -4089,7 +4088,7 @@ def get_monitoring_template(ctx, from_json, monitoring_template_id): @cli_util.wrap_exceptions def get_process_set(ctx, from_json, process_set_id): - if isinstance(process_set_id, six.string_types) and len(process_set_id.strip()) == 0: + if isinstance(process_set_id, str) and len(process_set_id.strip()) == 0: raise click.UsageError('Parameter --process-set-id cannot be whitespace or empty string') kwargs = {} @@ -4111,7 +4110,7 @@ def get_process_set(ctx, from_json, process_set_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -4146,7 +4145,7 @@ def list_alarm_conditions(ctx, from_json, all_pages, page_size, monitoring_templ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') kwargs = {} @@ -4406,7 +4405,7 @@ def list_discovery_job_logs(ctx, from_json, all_pages, page_size, discovery_job_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(discovery_job_id, six.string_types) and len(discovery_job_id.strip()) == 0: + if isinstance(discovery_job_id, str) and len(discovery_job_id.strip()) == 0: raise click.UsageError('Parameter --discovery-job-id cannot be whitespace or empty string') kwargs = {} @@ -4987,7 +4986,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -5044,7 +5043,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -5157,7 +5156,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def manage_license(ctx, from_json, monitored_resource_id, license, if_match): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') kwargs = {} @@ -5190,7 +5189,7 @@ def manage_license(ctx, from_json, monitored_resource_id, license, if_match): @cli_util.wrap_exceptions def publish_metric_extension(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, if_match): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') kwargs = {} @@ -5391,7 +5390,7 @@ def request_summarized_metric_extensions_resources(ctx, from_json, metric_extens @cli_util.wrap_exceptions def retry_failed_maintenance_window_operation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_window_id, if_match): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') kwargs = {} @@ -5571,7 +5570,7 @@ def search_monitored_resource_associations(ctx, from_json, compartment_id, sourc @cli_util.wrap_exceptions def search_monitored_resource_members(ctx, from_json, monitored_resource_id, destination_resource_id, limit_level, sort_by, sort_order, page, limit, if_match): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') kwargs = {} @@ -5749,7 +5748,7 @@ def search_monitored_resources(ctx, from_json, compartment_id, compartment_ids, @cli_util.wrap_exceptions def stop_maintenance_window(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_window_id, if_match): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') kwargs = {} @@ -5805,7 +5804,7 @@ def stop_maintenance_window(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def test_metric_extension(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, resource_ids, if_match): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') kwargs = {} @@ -5865,7 +5864,7 @@ def test_metric_extension(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def unapply_monitoring_template(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitoring_template_id, if_match): - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') kwargs = {} @@ -5932,10 +5931,10 @@ def unapply_monitoring_template(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_alarm_condition(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, alarm_condition_id, monitoring_template_id, namespace, composite_type, resource_type, metric_name, condition_type, conditions, freeform_tags, defined_tags, if_match): - if isinstance(alarm_condition_id, six.string_types) and len(alarm_condition_id.strip()) == 0: + if isinstance(alarm_condition_id, str) and len(alarm_condition_id.strip()) == 0: raise click.UsageError('Parameter --alarm-condition-id cannot be whitespace or empty string') - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') if not force: if conditions or freeform_tags or defined_tags: @@ -6022,7 +6021,7 @@ def update_alarm_condition(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_and_propagate_tags(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_id, freeform_tags, defined_tags, association_types, if_match): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') kwargs = {} @@ -6104,7 +6103,7 @@ def update_and_propagate_tags(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_baselineable_metric(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, id, name, column, namespace, resource_group, is_out_of_box, baselineable_metric_id, lifecycle_state, tenancy_id, compartment_id, resource_type, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(baselineable_metric_id, six.string_types) and len(baselineable_metric_id.strip()) == 0: + if isinstance(baselineable_metric_id, str) and len(baselineable_metric_id.strip()) == 0: raise click.UsageError('Parameter --baselineable-metric-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: @@ -6195,7 +6194,7 @@ def update_baselineable_metric(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, config_id, display_name, config_type, freeform_tags, defined_tags, if_match): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6271,7 +6270,7 @@ def update_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_config_update_compute_auto_activate_plugin_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, config_id, display_name, freeform_tags, defined_tags, is_enabled, if_match): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6349,7 +6348,7 @@ def update_config_update_compute_auto_activate_plugin_config_details(ctx, from_j @cli_util.wrap_exceptions def update_config_update_license_enterprise_extensibility_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, config_id, display_name, freeform_tags, defined_tags, is_enabled, if_match): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6427,7 +6426,7 @@ def update_config_update_license_enterprise_extensibility_config_details(ctx, fr @cli_util.wrap_exceptions def update_config_update_auto_promote_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, config_id, display_name, freeform_tags, defined_tags, is_enabled, if_match): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6505,7 +6504,7 @@ def update_config_update_auto_promote_config_details(ctx, from_json, force, wait @cli_util.wrap_exceptions def update_config_update_license_auto_assign_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, config_id, display_name, freeform_tags, defined_tags, license, if_match): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -6592,7 +6591,7 @@ def update_config_update_license_auto_assign_config_details(ctx, from_json, forc @cli_util.wrap_exceptions def update_config_update_onboard_config_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, config_id, display_name, freeform_tags, defined_tags, version_parameterconflict, is_manually_onboarded, policy_names, dynamic_groups, user_groups, additional_configurations, if_match): - if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0: + if isinstance(config_id, str) and len(config_id.strip()) == 0: raise click.UsageError('Parameter --config-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or policy_names or dynamic_groups or user_groups or additional_configurations: @@ -6688,7 +6687,7 @@ def update_config_update_onboard_config_details(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_maintenance_window(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_window_id, description, resources, schedule, freeform_tags, defined_tags, if_match): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') if not force: if resources or schedule or freeform_tags or defined_tags: @@ -6777,7 +6776,7 @@ def update_maintenance_window(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_maintenance_window_recurrent_maintenance_window_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_window_id, schedule_maintenance_window_recurrences, description, resources, freeform_tags, defined_tags, if_match, schedule_time_maintenance_window_start, schedule_time_maintenance_window_end, schedule_maintenance_window_duration): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') if not force: if resources or freeform_tags or defined_tags: @@ -6874,7 +6873,7 @@ def update_maintenance_window_recurrent_maintenance_window_schedule(ctx, from_js @cli_util.wrap_exceptions def update_maintenance_window_one_time_maintenance_window_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, maintenance_window_id, description, resources, freeform_tags, defined_tags, if_match, schedule_time_maintenance_window_start, schedule_time_maintenance_window_end): - if isinstance(maintenance_window_id, six.string_types) and len(maintenance_window_id.strip()) == 0: + if isinstance(maintenance_window_id, str) and len(maintenance_window_id.strip()) == 0: raise click.UsageError('Parameter --maintenance-window-id cannot be whitespace or empty string') if not force: if resources or freeform_tags or defined_tags: @@ -6966,7 +6965,7 @@ def update_maintenance_window_one_time_maintenance_window_schedule(ctx, from_jso @cli_util.wrap_exceptions def update_metric_extension(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, display_name, description, collection_recurrences, metric_list, query_properties, if_match): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') if not force: if metric_list or query_properties: @@ -7053,7 +7052,7 @@ def update_metric_extension(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_metric_extension_sql_update_query_properties(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, display_name, description, collection_recurrences, metric_list, if_match, query_properties_sql_type, query_properties_sql_details, query_properties_in_param_details, query_properties_out_param_details): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') if not force: if metric_list: @@ -7151,7 +7150,7 @@ def update_metric_extension_sql_update_query_properties(ctx, from_json, force, w @cli_util.wrap_exceptions def update_metric_extension_jmx_update_query_properties(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, display_name, description, collection_recurrences, metric_list, if_match, query_properties_managed_bean_query, query_properties_jmx_attributes, query_properties_identity_metric, query_properties_auto_row_prefix, query_properties_is_metric_service_enabled): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') if not force: if metric_list: @@ -7252,7 +7251,7 @@ def update_metric_extension_jmx_update_query_properties(ctx, from_json, force, w @cli_util.wrap_exceptions def update_metric_extension_os_command_update_query_properties(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, display_name, description, collection_recurrences, metric_list, if_match, query_properties_command, query_properties_delimiter, query_properties_script_details, query_properties_arguments, query_properties_starts_with): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') if not force: if metric_list: @@ -7352,7 +7351,7 @@ def update_metric_extension_os_command_update_query_properties(ctx, from_json, f @cli_util.wrap_exceptions def update_metric_extension_http_update_query_properties(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, metric_extension_id, display_name, description, collection_recurrences, metric_list, if_match, query_properties_url, query_properties_response_content_type, query_properties_protocol_type, query_properties_script_details): - if isinstance(metric_extension_id, six.string_types) and len(metric_extension_id.strip()) == 0: + if isinstance(metric_extension_id, str) and len(metric_extension_id.strip()) == 0: raise click.UsageError('Parameter --metric-extension-id cannot be whitespace or empty string') if not force: if metric_list: @@ -7456,7 +7455,7 @@ def update_metric_extension_http_update_query_properties(ctx, from_json, force, @cli_util.wrap_exceptions def update_monitored_resource(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_id, display_name, host_name, resource_time_zone, properties, database_connection_details, credentials, aliases, additional_credentials, additional_aliases, freeform_tags, defined_tags, if_match): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') if not force: if properties or database_connection_details or credentials or aliases or additional_credentials or additional_aliases or freeform_tags or defined_tags: @@ -7573,7 +7572,7 @@ def update_monitored_resource(ctx, from_json, force, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_monitored_resource_pre_existing_credentials(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_id, display_name, host_name, resource_time_zone, properties, database_connection_details, aliases, additional_credentials, additional_aliases, freeform_tags, defined_tags, if_match, credentials_source, credentials_name, credentials_type, credentials_description): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') if not force: if properties or database_connection_details or aliases or additional_credentials or additional_aliases or freeform_tags or defined_tags: @@ -7704,7 +7703,7 @@ def update_monitored_resource_pre_existing_credentials(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_monitored_resource_encrypted_credentials(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_id, credentials_key_id, credentials_properties, display_name, host_name, resource_time_zone, properties, database_connection_details, aliases, additional_credentials, additional_aliases, freeform_tags, defined_tags, if_match, credentials_source, credentials_name, credentials_type, credentials_description): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') if not force: if properties or database_connection_details or aliases or additional_credentials or additional_aliases or freeform_tags or defined_tags: @@ -7836,7 +7835,7 @@ def update_monitored_resource_encrypted_credentials(ctx, from_json, force, wait_ @cli_util.wrap_exceptions def update_monitored_resource_plain_text_credentials(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_id, credentials_properties, display_name, host_name, resource_time_zone, properties, database_connection_details, aliases, additional_credentials, additional_aliases, freeform_tags, defined_tags, if_match, credentials_source, credentials_name, credentials_type, credentials_description): - if isinstance(monitored_resource_id, six.string_types) and len(monitored_resource_id.strip()) == 0: + if isinstance(monitored_resource_id, str) and len(monitored_resource_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-id cannot be whitespace or empty string') if not force: if properties or database_connection_details or aliases or additional_credentials or additional_aliases or freeform_tags or defined_tags: @@ -7948,7 +7947,7 @@ def update_monitored_resource_plain_text_credentials(ctx, from_json, force, wait @cli_util.wrap_exceptions def update_monitored_resource_task(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_task_id, freeform_tags, defined_tags, if_match): - if isinstance(monitored_resource_task_id, six.string_types) and len(monitored_resource_task_id.strip()) == 0: + if isinstance(monitored_resource_task_id, str) and len(monitored_resource_task_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-task-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -8022,7 +8021,7 @@ def update_monitored_resource_task(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_monitored_resource_type(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_type_id, display_name, description, metric_namespace, source_type, resource_category, metadata, freeform_tags, defined_tags, if_match): - if isinstance(monitored_resource_type_id, six.string_types) and len(monitored_resource_type_id.strip()) == 0: + if isinstance(monitored_resource_type_id, str) and len(monitored_resource_type_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-type-id cannot be whitespace or empty string') if not force: if metadata or freeform_tags or defined_tags: @@ -8122,7 +8121,7 @@ def update_monitored_resource_type(ctx, from_json, force, wait_for_state, max_wa @cli_util.wrap_exceptions def update_monitored_resource_type_system_format_resource_type_metadata_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_resource_type_id, display_name, description, metric_namespace, source_type, resource_category, freeform_tags, defined_tags, if_match, metadata_required_properties, metadata_agent_properties, metadata_valid_properties_for_create, metadata_valid_properties_for_update, metadata_unique_property_sets, metadata_valid_property_values, metadata_valid_sub_resource_types): - if isinstance(monitored_resource_type_id, six.string_types) and len(monitored_resource_type_id.strip()) == 0: + if isinstance(monitored_resource_type_id, str) and len(monitored_resource_type_id.strip()) == 0: raise click.UsageError('Parameter --monitored-resource-type-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -8239,7 +8238,7 @@ def update_monitored_resource_type_system_format_resource_type_metadata_details( @cli_util.wrap_exceptions def update_monitoring_template(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, monitoring_template_id, display_name, description, destinations, is_alarms_enabled, is_split_notification_enabled, members, repeat_notification_duration, message_format, freeform_tags, defined_tags, if_match): - if isinstance(monitoring_template_id, six.string_types) and len(monitoring_template_id.strip()) == 0: + if isinstance(monitoring_template_id, str) and len(monitoring_template_id.strip()) == 0: raise click.UsageError('Parameter --monitoring-template-id cannot be whitespace or empty string') if not force: if destinations or members or freeform_tags or defined_tags: @@ -8333,7 +8332,7 @@ def update_monitoring_template(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_process_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, process_set_id, display_name, specification, freeform_tags, defined_tags, if_match): - if isinstance(process_set_id, six.string_types) and len(process_set_id.strip()) == 0: + if isinstance(process_set_id, str) and len(process_set_id.strip()) == 0: raise click.UsageError('Parameter --process-set-id cannot be whitespace or empty string') if not force: if specification or freeform_tags or defined_tags: diff --git a/services/streaming/src/oci_cli_stream/generated/stream_cli.py b/services/streaming/src/oci_cli_stream/generated/stream_cli.py index 268295f7a..8835a7dfa 100644 --- a/services/streaming/src/oci_cli_stream/generated/stream_cli.py +++ b/services/streaming/src/oci_cli_stream/generated/stream_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -58,7 +57,7 @@ def group_group(): @cli_util.wrap_exceptions def consumer_commit(ctx, from_json, stream_id, cursor): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') kwargs = {} @@ -84,7 +83,7 @@ def consumer_commit(ctx, from_json, stream_id, cursor): @cli_util.wrap_exceptions def consumer_heartbeat(ctx, from_json, stream_id, cursor): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') kwargs = {} @@ -115,7 +114,7 @@ def consumer_heartbeat(ctx, from_json, stream_id, cursor): @cli_util.wrap_exceptions def create_cursor(ctx, from_json, stream_id, partition, type, offset, time): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') kwargs = {} @@ -157,7 +156,7 @@ def create_cursor(ctx, from_json, stream_id, partition, type, offset, time): @cli_util.wrap_exceptions def create_group_cursor(ctx, from_json, stream_id, type, group_name, time, instance_name, timeout_in_ms, commit_on_get): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') kwargs = {} @@ -200,10 +199,10 @@ def create_group_cursor(ctx, from_json, stream_id, type, group_name, time, insta @cli_util.wrap_exceptions def get_group(ctx, from_json, stream_id, group_name): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') - if isinstance(group_name, six.string_types) and len(group_name.strip()) == 0: + if isinstance(group_name, str) and len(group_name.strip()) == 0: raise click.UsageError('Parameter --group-name cannot be whitespace or empty string') kwargs = {} @@ -230,7 +229,7 @@ def get_group(ctx, from_json, stream_id, group_name): @cli_util.wrap_exceptions def get_messages(ctx, from_json, stream_id, cursor, limit): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') kwargs = {} @@ -258,7 +257,7 @@ def get_messages(ctx, from_json, stream_id, cursor, limit): @cli_util.wrap_exceptions def put_messages(ctx, from_json, stream_id, messages): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') kwargs = {} @@ -290,10 +289,10 @@ def put_messages(ctx, from_json, stream_id, messages): @cli_util.wrap_exceptions def update_group(ctx, from_json, stream_id, group_name, type, time): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') - if isinstance(group_name, six.string_types) and len(group_name.strip()) == 0: + if isinstance(group_name, str) and len(group_name.strip()) == 0: raise click.UsageError('Parameter --group-name cannot be whitespace or empty string') kwargs = {} diff --git a/services/streaming/src/oci_cli_stream_admin/generated/streamadmin_cli.py b/services/streaming/src/oci_cli_stream_admin/generated/streamadmin_cli.py index 879f2d21f..cdeb82782 100644 --- a/services/streaming/src/oci_cli_stream_admin/generated/streamadmin_cli.py +++ b/services/streaming/src/oci_cli_stream_admin/generated/streamadmin_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -88,7 +87,7 @@ def work_request_group(): @cli_util.wrap_exceptions def change_connect_harness_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connect_harness_id, compartment_id, if_match): - if isinstance(connect_harness_id, six.string_types) and len(connect_harness_id.strip()) == 0: + if isinstance(connect_harness_id, str) and len(connect_harness_id.strip()) == 0: raise click.UsageError('Parameter --connect-harness-id cannot be whitespace or empty string') kwargs = {} @@ -149,7 +148,7 @@ def change_connect_harness_compartment(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def change_stream_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_id, compartment_id, if_match): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') kwargs = {} @@ -210,7 +209,7 @@ def change_stream_compartment(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def change_stream_pool_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_pool_id, compartment_id, if_match): - if isinstance(stream_pool_id, six.string_types) and len(stream_pool_id.strip()) == 0: + if isinstance(stream_pool_id, str) and len(stream_pool_id.strip()) == 0: raise click.UsageError('Parameter --stream-pool-id cannot be whitespace or empty string') kwargs = {} @@ -508,7 +507,7 @@ def create_stream_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_connect_harness(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, connect_harness_id, if_match): - if isinstance(connect_harness_id, six.string_types) and len(connect_harness_id.strip()) == 0: + if isinstance(connect_harness_id, str) and len(connect_harness_id.strip()) == 0: raise click.UsageError('Parameter --connect-harness-id cannot be whitespace or empty string') kwargs = {} @@ -564,7 +563,7 @@ def delete_connect_harness(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def delete_stream(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_id, if_match): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') kwargs = {} @@ -620,7 +619,7 @@ def delete_stream(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_stream_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_pool_id, if_match): - if isinstance(stream_pool_id, six.string_types) and len(stream_pool_id.strip()) == 0: + if isinstance(stream_pool_id, str) and len(stream_pool_id.strip()) == 0: raise click.UsageError('Parameter --stream-pool-id cannot be whitespace or empty string') kwargs = {} @@ -671,7 +670,7 @@ def delete_stream_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_connect_harness(ctx, from_json, connect_harness_id): - if isinstance(connect_harness_id, six.string_types) and len(connect_harness_id.strip()) == 0: + if isinstance(connect_harness_id, str) and len(connect_harness_id.strip()) == 0: raise click.UsageError('Parameter --connect-harness-id cannot be whitespace or empty string') kwargs = {} @@ -693,7 +692,7 @@ def get_connect_harness(ctx, from_json, connect_harness_id): @cli_util.wrap_exceptions def get_stream(ctx, from_json, stream_id): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') kwargs = {} @@ -715,7 +714,7 @@ def get_stream(ctx, from_json, stream_id): @cli_util.wrap_exceptions def get_stream_pool(ctx, from_json, stream_pool_id): - if isinstance(stream_pool_id, six.string_types) and len(stream_pool_id.strip()) == 0: + if isinstance(stream_pool_id, str) and len(stream_pool_id.strip()) == 0: raise click.UsageError('Parameter --stream-pool-id cannot be whitespace or empty string') kwargs = {} @@ -737,7 +736,7 @@ def get_stream_pool(ctx, from_json, stream_pool_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -959,7 +958,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1016,7 +1015,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1134,7 +1133,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, work_request_id, co @cli_util.wrap_exceptions def update_connect_harness(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, connect_harness_id, freeform_tags, defined_tags, if_match): - if isinstance(connect_harness_id, six.string_types) and len(connect_harness_id.strip()) == 0: + if isinstance(connect_harness_id, str) and len(connect_harness_id.strip()) == 0: raise click.UsageError('Parameter --connect-harness-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1211,7 +1210,7 @@ def update_connect_harness(ctx, from_json, force, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def update_stream(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_id, stream_pool_id, freeform_tags, defined_tags, if_match): - if isinstance(stream_id, six.string_types) and len(stream_id.strip()) == 0: + if isinstance(stream_id, str) and len(stream_id.strip()) == 0: raise click.UsageError('Parameter --stream-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1298,7 +1297,7 @@ def update_stream(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_stream_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stream_pool_id, name, kafka_settings, custom_encryption_key_details, freeform_tags, security_attributes, defined_tags, if_match): - if isinstance(stream_pool_id, six.string_types) and len(stream_pool_id.strip()) == 0: + if isinstance(stream_pool_id, str) and len(stream_pool_id.strip()) == 0: raise click.UsageError('Parameter --stream-pool-id cannot be whitespace or empty string') if not force: if kafka_settings or custom_encryption_key_details or freeform_tags or security_attributes or defined_tags: diff --git a/services/tenant_manager_control_plane/src/oci_cli_domain/generated/domain_cli.py b/services/tenant_manager_control_plane/src/oci_cli_domain/generated/domain_cli.py index 3c5c337d4..03b4360c0 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_domain/generated/domain_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_domain/generated/domain_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -117,7 +116,7 @@ def create_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def delete_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_id, if_match): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') kwargs = {} @@ -176,7 +175,7 @@ def delete_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def get_domain(ctx, from_json, domain_id): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') kwargs = {} @@ -271,7 +270,7 @@ def list_domains(ctx, from_json, all_pages, page_size, compartment_id, domain_id @cli_util.wrap_exceptions def update_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_id, freeform_tags, defined_tags, if_match): - if isinstance(domain_id, six.string_types) and len(domain_id.strip()) == 0: + if isinstance(domain_id, str) and len(domain_id.strip()) == 0: raise click.UsageError('Parameter --domain-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/tenant_manager_control_plane/src/oci_cli_domain_governance/generated/domaingovernance_cli.py b/services/tenant_manager_control_plane/src/oci_cli_domain_governance/generated/domaingovernance_cli.py index 9174a6e55..c2cdd0318 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_domain_governance/generated/domaingovernance_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_domain_governance/generated/domaingovernance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -111,7 +110,7 @@ def create_domain_governance(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def delete_domain_governance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_governance_id, if_match): - if isinstance(domain_governance_id, six.string_types) and len(domain_governance_id.strip()) == 0: + if isinstance(domain_governance_id, str) and len(domain_governance_id.strip()) == 0: raise click.UsageError('Parameter --domain-governance-id cannot be whitespace or empty string') kwargs = {} @@ -170,7 +169,7 @@ def delete_domain_governance(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def get_domain_governance(ctx, from_json, domain_governance_id): - if isinstance(domain_governance_id, six.string_types) and len(domain_governance_id.strip()) == 0: + if isinstance(domain_governance_id, str) and len(domain_governance_id.strip()) == 0: raise click.UsageError('Parameter --domain-governance-id cannot be whitespace or empty string') kwargs = {} @@ -267,7 +266,7 @@ def list_domain_governances(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def update_domain_governance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, domain_governance_id, subscription_email, is_governance_enabled, freeform_tags, defined_tags, if_match): - if isinstance(domain_governance_id, six.string_types) and len(domain_governance_id.strip()) == 0: + if isinstance(domain_governance_id, str) and len(domain_governance_id.strip()) == 0: raise click.UsageError('Parameter --domain-governance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/tenant_manager_control_plane/src/oci_cli_governance/generated/governance_cli.py b/services/tenant_manager_control_plane/src/oci_cli_governance/generated/governance_cli.py index f381b82cd..8fcebbf7f 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_governance/generated/governance_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_governance/generated/governance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -46,10 +45,10 @@ def organization_tenancy_group(): @cli_util.wrap_exceptions def add_governance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, organization_id, organization_tenancy_id, if_match): - if isinstance(organization_id, six.string_types) and len(organization_id.strip()) == 0: + if isinstance(organization_id, str) and len(organization_id.strip()) == 0: raise click.UsageError('Parameter --organization-id cannot be whitespace or empty string') - if isinstance(organization_tenancy_id, six.string_types) and len(organization_tenancy_id.strip()) == 0: + if isinstance(organization_tenancy_id, str) and len(organization_tenancy_id.strip()) == 0: raise click.UsageError('Parameter --organization-tenancy-id cannot be whitespace or empty string') kwargs = {} @@ -106,10 +105,10 @@ def add_governance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def remove_governance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, organization_id, organization_tenancy_id, if_match): - if isinstance(organization_id, six.string_types) and len(organization_id.strip()) == 0: + if isinstance(organization_id, str) and len(organization_id.strip()) == 0: raise click.UsageError('Parameter --organization-id cannot be whitespace or empty string') - if isinstance(organization_tenancy_id, six.string_types) and len(organization_tenancy_id.strip()) == 0: + if isinstance(organization_tenancy_id, str) and len(organization_tenancy_id.strip()) == 0: raise click.UsageError('Parameter --organization-tenancy-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/tenant_manager_control_plane/src/oci_cli_link/generated/link_cli.py b/services/tenant_manager_control_plane/src/oci_cli_link/generated/link_cli.py index 804fb3d9a..1784cd7e8 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_link/generated/link_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_link/generated/link_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -53,7 +52,7 @@ def link_with_tenancy_names_group(): @cli_util.wrap_exceptions def delete_link(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, link_id, if_match): - if isinstance(link_id, six.string_types) and len(link_id.strip()) == 0: + if isinstance(link_id, str) and len(link_id.strip()) == 0: raise click.UsageError('Parameter --link-id cannot be whitespace or empty string') kwargs = {} @@ -104,7 +103,7 @@ def delete_link(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def get_link(ctx, from_json, link_id): - if isinstance(link_id, six.string_types) and len(link_id.strip()) == 0: + if isinstance(link_id, str) and len(link_id.strip()) == 0: raise click.UsageError('Parameter --link-id cannot be whitespace or empty string') kwargs = {} @@ -126,7 +125,7 @@ def get_link(ctx, from_json, link_id): @cli_util.wrap_exceptions def get_link_with_tenancy_names(ctx, from_json, link_id): - if isinstance(link_id, six.string_types) and len(link_id.strip()) == 0: + if isinstance(link_id, str) and len(link_id.strip()) == 0: raise click.UsageError('Parameter --link-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/tenant_manager_control_plane/src/oci_cli_link_features/generated/linkfeatures_cli.py b/services/tenant_manager_control_plane/src/oci_cli_link_features/generated/linkfeatures_cli.py index c7f45187e..cc6957f77 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_link_features/generated/linkfeatures_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_link_features/generated/linkfeatures_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/tenant_manager_control_plane/src/oci_cli_orders/generated/orders_cli.py b/services/tenant_manager_control_plane/src/oci_cli_orders/generated/orders_cli.py index f66c0cc19..02b1afea8 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_orders/generated/orders_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_orders/generated/orders_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -45,7 +44,7 @@ def order_group(): @cli_util.wrap_exceptions def activate_order(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, activation_token): - if isinstance(activation_token, six.string_types) and len(activation_token.strip()) == 0: + if isinstance(activation_token, str) and len(activation_token.strip()) == 0: raise click.UsageError('Parameter --activation-token cannot be whitespace or empty string') kwargs = {} @@ -99,7 +98,7 @@ def activate_order(ctx, from_json, wait_for_state, max_wait_seconds, wait_interv @cli_util.wrap_exceptions def get_order(ctx, from_json, activation_token): - if isinstance(activation_token, six.string_types) and len(activation_token.strip()) == 0: + if isinstance(activation_token, str) and len(activation_token.strip()) == 0: raise click.UsageError('Parameter --activation-token cannot be whitespace or empty string') kwargs = {} diff --git a/services/tenant_manager_control_plane/src/oci_cli_organization/generated/organization_cli.py b/services/tenant_manager_control_plane/src/oci_cli_organization/generated/organization_cli.py index c60f26f55..f59a498c0 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_organization/generated/organization_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_organization/generated/organization_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def child_tenancy_group(): @cli_util.wrap_exceptions def approve_organization_tenancy_for_transfer(ctx, from_json, compartment_id, organization_tenancy_id, if_match): - if isinstance(organization_tenancy_id, six.string_types) and len(organization_tenancy_id.strip()) == 0: + if isinstance(organization_tenancy_id, str) and len(organization_tenancy_id.strip()) == 0: raise click.UsageError('Parameter --organization-tenancy-id cannot be whitespace or empty string') kwargs = {} @@ -162,7 +161,7 @@ def create_child_tenancy(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_organization_tenancy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, organization_tenancy_id, if_match): - if isinstance(organization_tenancy_id, six.string_types) and len(organization_tenancy_id.strip()) == 0: + if isinstance(organization_tenancy_id, str) and len(organization_tenancy_id.strip()) == 0: raise click.UsageError('Parameter --organization-tenancy-id cannot be whitespace or empty string') kwargs = {} @@ -213,7 +212,7 @@ def delete_organization_tenancy(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def get_organization(ctx, from_json, organization_id): - if isinstance(organization_id, six.string_types) and len(organization_id.strip()) == 0: + if isinstance(organization_id, str) and len(organization_id.strip()) == 0: raise click.UsageError('Parameter --organization-id cannot be whitespace or empty string') kwargs = {} @@ -236,10 +235,10 @@ def get_organization(ctx, from_json, organization_id): @cli_util.wrap_exceptions def get_organization_tenancy(ctx, from_json, organization_id, tenancy_id): - if isinstance(organization_id, six.string_types) and len(organization_id.strip()) == 0: + if isinstance(organization_id, str) and len(organization_id.strip()) == 0: raise click.UsageError('Parameter --organization-id cannot be whitespace or empty string') - if isinstance(tenancy_id, six.string_types) and len(tenancy_id.strip()) == 0: + if isinstance(tenancy_id, str) and len(tenancy_id.strip()) == 0: raise click.UsageError('Parameter --tenancy-id cannot be whitespace or empty string') kwargs = {} @@ -269,7 +268,7 @@ def list_organization_tenancies(ctx, from_json, all_pages, page_size, organizati if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(organization_id, six.string_types) and len(organization_id.strip()) == 0: + if isinstance(organization_id, str) and len(organization_id.strip()) == 0: raise click.UsageError('Parameter --organization-id cannot be whitespace or empty string') kwargs = {} @@ -365,7 +364,7 @@ def list_organizations(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def restore_organization_tenancy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, organization_tenancy_id, if_match): - if isinstance(organization_tenancy_id, six.string_types) and len(organization_tenancy_id.strip()) == 0: + if isinstance(organization_tenancy_id, str) and len(organization_tenancy_id.strip()) == 0: raise click.UsageError('Parameter --organization-tenancy-id cannot be whitespace or empty string') kwargs = {} @@ -418,7 +417,7 @@ def restore_organization_tenancy(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def unapprove_organization_tenancy_for_transfer(ctx, from_json, compartment_id, organization_tenancy_id, if_match): - if isinstance(organization_tenancy_id, six.string_types) and len(organization_tenancy_id.strip()) == 0: + if isinstance(organization_tenancy_id, str) and len(organization_tenancy_id.strip()) == 0: raise click.UsageError('Parameter --organization-tenancy-id cannot be whitespace or empty string') kwargs = {} @@ -448,7 +447,7 @@ def unapprove_organization_tenancy_for_transfer(ctx, from_json, compartment_id, @cli_util.wrap_exceptions def update_organization(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, organization_id, default_ucm_subscription_id, if_match): - if isinstance(organization_id, six.string_types) and len(organization_id.strip()) == 0: + if isinstance(organization_id, str) and len(organization_id.strip()) == 0: raise click.UsageError('Parameter --organization-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/tenant_manager_control_plane/src/oci_cli_recipient_invitation/generated/recipientinvitation_cli.py b/services/tenant_manager_control_plane/src/oci_cli_recipient_invitation/generated/recipientinvitation_cli.py index 8095ef176..a45d2a686 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_recipient_invitation/generated/recipientinvitation_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_recipient_invitation/generated/recipientinvitation_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -45,7 +44,7 @@ def recipient_invitation_group(): @cli_util.wrap_exceptions def accept_recipient_invitation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, recipient_invitation_id, if_match): - if isinstance(recipient_invitation_id, six.string_types) and len(recipient_invitation_id.strip()) == 0: + if isinstance(recipient_invitation_id, str) and len(recipient_invitation_id.strip()) == 0: raise click.UsageError('Parameter --recipient-invitation-id cannot be whitespace or empty string') kwargs = {} @@ -96,7 +95,7 @@ def accept_recipient_invitation(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def get_recipient_invitation(ctx, from_json, recipient_invitation_id): - if isinstance(recipient_invitation_id, six.string_types) and len(recipient_invitation_id.strip()) == 0: + if isinstance(recipient_invitation_id, str) and len(recipient_invitation_id.strip()) == 0: raise click.UsageError('Parameter --recipient-invitation-id cannot be whitespace or empty string') kwargs = {} @@ -122,7 +121,7 @@ def get_recipient_invitation(ctx, from_json, recipient_invitation_id): @cli_util.wrap_exceptions def ignore_recipient_invitation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, recipient_invitation_id, if_match): - if isinstance(recipient_invitation_id, six.string_types) and len(recipient_invitation_id.strip()) == 0: + if isinstance(recipient_invitation_id, str) and len(recipient_invitation_id.strip()) == 0: raise click.UsageError('Parameter --recipient-invitation-id cannot be whitespace or empty string') kwargs = {} @@ -216,7 +215,7 @@ def list_recipient_invitations(ctx, from_json, all_pages, compartment_id, sender @cli_util.wrap_exceptions def update_recipient_invitation(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, recipient_invitation_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(recipient_invitation_id, six.string_types) and len(recipient_invitation_id.strip()) == 0: + if isinstance(recipient_invitation_id, str) and len(recipient_invitation_id.strip()) == 0: raise click.UsageError('Parameter --recipient-invitation-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/tenant_manager_control_plane/src/oci_cli_sender_invitation/generated/senderinvitation_cli.py b/services/tenant_manager_control_plane/src/oci_cli_sender_invitation/generated/senderinvitation_cli.py index 3181f6000..640c057c2 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_sender_invitation/generated/senderinvitation_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_sender_invitation/generated/senderinvitation_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -45,7 +44,7 @@ def sender_invitation_group(): @cli_util.wrap_exceptions def cancel_sender_invitation(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sender_invitation_id, if_match): - if isinstance(sender_invitation_id, six.string_types) and len(sender_invitation_id.strip()) == 0: + if isinstance(sender_invitation_id, str) and len(sender_invitation_id.strip()) == 0: raise click.UsageError('Parameter --sender-invitation-id cannot be whitespace or empty string') kwargs = {} @@ -177,7 +176,7 @@ def create_sender_invitation(ctx, from_json, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def get_sender_invitation(ctx, from_json, sender_invitation_id): - if isinstance(sender_invitation_id, six.string_types) and len(sender_invitation_id.strip()) == 0: + if isinstance(sender_invitation_id, str) and len(sender_invitation_id.strip()) == 0: raise click.UsageError('Parameter --sender-invitation-id cannot be whitespace or empty string') kwargs = {} @@ -273,7 +272,7 @@ def list_sender_invitations(ctx, from_json, all_pages, page_size, compartment_id @cli_util.wrap_exceptions def update_sender_invitation(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sender_invitation_id, display_name, freeform_tags, defined_tags, if_match): - if isinstance(sender_invitation_id, six.string_types) and len(sender_invitation_id.strip()) == 0: + if isinstance(sender_invitation_id, str) and len(sender_invitation_id.strip()) == 0: raise click.UsageError('Parameter --sender-invitation-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/tenant_manager_control_plane/src/oci_cli_subscription/generated/subscription_cli.py b/services/tenant_manager_control_plane/src/oci_cli_subscription/generated/subscription_cli.py index 3217005a0..6bf44b91a 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_subscription/generated/subscription_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_subscription/generated/subscription_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -128,7 +127,7 @@ def create_subscription_mapping(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_subscription_mapping(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subscription_mapping_id, if_match): - if isinstance(subscription_mapping_id, six.string_types) and len(subscription_mapping_id.strip()) == 0: + if isinstance(subscription_mapping_id, str) and len(subscription_mapping_id.strip()) == 0: raise click.UsageError('Parameter --subscription-mapping-id cannot be whitespace or empty string') kwargs = {} @@ -187,7 +186,7 @@ def delete_subscription_mapping(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def get_assigned_subscription(ctx, from_json, assigned_subscription_id): - if isinstance(assigned_subscription_id, six.string_types) and len(assigned_subscription_id.strip()) == 0: + if isinstance(assigned_subscription_id, str) and len(assigned_subscription_id.strip()) == 0: raise click.UsageError('Parameter --assigned-subscription-id cannot be whitespace or empty string') kwargs = {} @@ -209,7 +208,7 @@ def get_assigned_subscription(ctx, from_json, assigned_subscription_id): @cli_util.wrap_exceptions def get_subscription(ctx, from_json, subscription_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -231,7 +230,7 @@ def get_subscription(ctx, from_json, subscription_id): @cli_util.wrap_exceptions def get_subscription_mapping(ctx, from_json, subscription_mapping_id): - if isinstance(subscription_mapping_id, six.string_types) and len(subscription_mapping_id.strip()) == 0: + if isinstance(subscription_mapping_id, str) and len(subscription_mapping_id.strip()) == 0: raise click.UsageError('Parameter --subscription-mapping-id cannot be whitespace or empty string') kwargs = {} @@ -262,7 +261,7 @@ def list_assigned_subscription_line_items(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(assigned_subscription_id, six.string_types) and len(assigned_subscription_id.strip()) == 0: + if isinstance(assigned_subscription_id, str) and len(assigned_subscription_id.strip()) == 0: raise click.UsageError('Parameter --assigned-subscription-id cannot be whitespace or empty string') kwargs = {} @@ -372,7 +371,7 @@ def list_assigned_subscriptions(ctx, from_json, all_pages, page_size, compartmen @cli_util.wrap_exceptions def list_available_regions(ctx, from_json, all_pages, subscription_id, page): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -412,7 +411,7 @@ def list_subscription_line_items(ctx, from_json, all_pages, page_size, subscript if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/tenant_manager_control_plane/src/oci_cli_work_request/generated/workrequest_cli.py b/services/tenant_manager_control_plane/src/oci_cli_work_request/generated/workrequest_cli.py index d4a6ec884..107c02926 100644 --- a/services/tenant_manager_control_plane/src/oci_cli_work_request/generated/workrequest_cli.py +++ b/services/tenant_manager_control_plane/src/oci_cli_work_request/generated/workrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -55,7 +54,7 @@ def work_request_group(): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -85,7 +84,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -139,7 +138,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/threat_intelligence/src/oci_cli_threatintel/generated/threatintel_cli.py b/services/threat_intelligence/src/oci_cli_threatintel/generated/threatintel_cli.py index 0dd5cb39a..fd869a2a1 100644 --- a/services/threat_intelligence/src/oci_cli_threatintel/generated/threatintel_cli.py +++ b/services/threat_intelligence/src/oci_cli_threatintel/generated/threatintel_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -62,7 +61,7 @@ def indicator_count_collection_group(): @cli_util.wrap_exceptions def get_indicator(ctx, from_json, indicator_id, compartment_id): - if isinstance(indicator_id, six.string_types) and len(indicator_id.strip()) == 0: + if isinstance(indicator_id, str) and len(indicator_id.strip()) == 0: raise click.UsageError('Parameter --indicator-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/usage/src/oci_cli_resources/generated/resources_cli.py b/services/usage/src/oci_cli_resources/generated/resources_cli.py index 7fd8d2b98..77280e418 100644 --- a/services/usage/src/oci_cli_resources/generated/resources_cli.py +++ b/services/usage/src/oci_cli_resources/generated/resources_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/usage/src/oci_cli_rewards/generated/rewards_cli.py b/services/usage/src/oci_cli_rewards/generated/rewards_cli.py index 54fb56286..16cb813f4 100644 --- a/services/usage/src/oci_cli_rewards/generated/rewards_cli.py +++ b/services/usage/src/oci_cli_rewards/generated/rewards_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -75,7 +74,7 @@ def product_summary_group(): @cli_util.wrap_exceptions def create_redeemable_user(ctx, from_json, tenancy_id, subscription_id, items, user_id, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -113,7 +112,7 @@ def create_redeemable_user(ctx, from_json, tenancy_id, subscription_id, items, u @cli_util.wrap_exceptions def delete_redeemable_user(ctx, from_json, email_id, tenancy_id, subscription_id, if_match): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -151,7 +150,7 @@ def list_products(ctx, from_json, all_pages, page_size, tenancy_id, subscription if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -217,7 +216,7 @@ def list_redeemable_users(ctx, from_json, all_pages, page_size, tenancy_id, subs if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -280,7 +279,7 @@ def list_redemptions(ctx, from_json, all_pages, page_size, tenancy_id, subscript if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -337,7 +336,7 @@ def list_redemptions(ctx, from_json, all_pages, page_size, tenancy_id, subscript @cli_util.wrap_exceptions def list_rewards(ctx, from_json, all_pages, tenancy_id, subscription_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/usage/src/oci_cli_usagelimits/generated/usagelimits_cli.py b/services/usage/src/oci_cli_usagelimits/generated/usagelimits_cli.py index a7209f05e..15e3272eb 100644 --- a/services/usage/src/oci_cli_usagelimits/generated/usagelimits_cli.py +++ b/services/usage/src/oci_cli_usagelimits/generated/usagelimits_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/usage_api/src/oci_cli_usageapi/generated/usageapi_cli.py b/services/usage_api/src/oci_cli_usageapi/generated/usageapi_cli.py index 2852d7835..cd2971a5d 100644 --- a/services/usage_api/src/oci_cli_usageapi/generated/usageapi_cli.py +++ b/services/usage_api/src/oci_cli_usageapi/generated/usageapi_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -142,7 +141,7 @@ def create_custom_table(ctx, from_json, compartment_id, saved_report_id, saved_c @cli_util.wrap_exceptions def create_email_recipients_group(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, recipients_list, subscription_id): - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -414,7 +413,7 @@ def create_usage_carbon_emissions_query(ctx, from_json, compartment_id, query_de @cli_util.wrap_exceptions def delete_custom_table(ctx, from_json, custom_table_id, if_match): - if isinstance(custom_table_id, six.string_types) and len(custom_table_id.strip()) == 0: + if isinstance(custom_table_id, str) and len(custom_table_id.strip()) == 0: raise click.UsageError('Parameter --custom-table-id cannot be whitespace or empty string') kwargs = {} @@ -442,10 +441,10 @@ def delete_custom_table(ctx, from_json, custom_table_id, if_match): @cli_util.wrap_exceptions def delete_email_recipients_group(ctx, from_json, email_recipients_group_id, subscription_id, compartment_id, if_match): - if isinstance(email_recipients_group_id, six.string_types) and len(email_recipients_group_id.strip()) == 0: + if isinstance(email_recipients_group_id, str) and len(email_recipients_group_id.strip()) == 0: raise click.UsageError('Parameter --email-recipients-group-id cannot be whitespace or empty string') - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -473,7 +472,7 @@ def delete_email_recipients_group(ctx, from_json, email_recipients_group_id, sub @cli_util.wrap_exceptions def delete_query(ctx, from_json, query_id, if_match): - if isinstance(query_id, six.string_types) and len(query_id.strip()) == 0: + if isinstance(query_id, str) and len(query_id.strip()) == 0: raise click.UsageError('Parameter --query-id cannot be whitespace or empty string') kwargs = {} @@ -502,7 +501,7 @@ def delete_query(ctx, from_json, query_id, if_match): @cli_util.wrap_exceptions def delete_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -563,7 +562,7 @@ def delete_schedule(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def delete_usage_carbon_emissions_query(ctx, from_json, usage_carbon_emissions_query_id, if_match): - if isinstance(usage_carbon_emissions_query_id, six.string_types) and len(usage_carbon_emissions_query_id.strip()) == 0: + if isinstance(usage_carbon_emissions_query_id, str) and len(usage_carbon_emissions_query_id.strip()) == 0: raise click.UsageError('Parameter --usage-carbon-emissions-query-id cannot be whitespace or empty string') kwargs = {} @@ -587,7 +586,7 @@ def delete_usage_carbon_emissions_query(ctx, from_json, usage_carbon_emissions_q @cli_util.wrap_exceptions def get_custom_table(ctx, from_json, custom_table_id): - if isinstance(custom_table_id, six.string_types) and len(custom_table_id.strip()) == 0: + if isinstance(custom_table_id, str) and len(custom_table_id.strip()) == 0: raise click.UsageError('Parameter --custom-table-id cannot be whitespace or empty string') kwargs = {} @@ -611,10 +610,10 @@ def get_custom_table(ctx, from_json, custom_table_id): @cli_util.wrap_exceptions def get_email_recipients_group(ctx, from_json, email_recipients_group_id, subscription_id, compartment_id): - if isinstance(email_recipients_group_id, six.string_types) and len(email_recipients_group_id.strip()) == 0: + if isinstance(email_recipients_group_id, str) and len(email_recipients_group_id.strip()) == 0: raise click.UsageError('Parameter --email-recipients-group-id cannot be whitespace or empty string') - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -638,7 +637,7 @@ def get_email_recipients_group(ctx, from_json, email_recipients_group_id, subscr @cli_util.wrap_exceptions def get_query(ctx, from_json, query_id): - if isinstance(query_id, six.string_types) and len(query_id.strip()) == 0: + if isinstance(query_id, str) and len(query_id.strip()) == 0: raise click.UsageError('Parameter --query-id cannot be whitespace or empty string') kwargs = {} @@ -660,7 +659,7 @@ def get_query(ctx, from_json, query_id): @cli_util.wrap_exceptions def get_schedule(ctx, from_json, schedule_id): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') kwargs = {} @@ -682,7 +681,7 @@ def get_schedule(ctx, from_json, schedule_id): @cli_util.wrap_exceptions def get_scheduled_run(ctx, from_json, scheduled_run_id): - if isinstance(scheduled_run_id, six.string_types) and len(scheduled_run_id.strip()) == 0: + if isinstance(scheduled_run_id, str) and len(scheduled_run_id.strip()) == 0: raise click.UsageError('Parameter --scheduled-run-id cannot be whitespace or empty string') kwargs = {} @@ -704,7 +703,7 @@ def get_scheduled_run(ctx, from_json, scheduled_run_id): @cli_util.wrap_exceptions def get_usage_carbon_emissions_query(ctx, from_json, usage_carbon_emissions_query_id): - if isinstance(usage_carbon_emissions_query_id, six.string_types) and len(usage_carbon_emissions_query_id.strip()) == 0: + if isinstance(usage_carbon_emissions_query_id, str) and len(usage_carbon_emissions_query_id.strip()) == 0: raise click.UsageError('Parameter --usage-carbon-emissions-query-id cannot be whitespace or empty string') kwargs = {} @@ -794,7 +793,7 @@ def list_email_recipients_groups(ctx, from_json, all_pages, page_size, subscript if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') kwargs = {} @@ -1064,7 +1063,7 @@ def list_usage_carbon_emissions_queries(ctx, from_json, all_pages, page_size, co @cli_util.wrap_exceptions def request_average_carbon_emission(ctx, from_json, sku_part_number): - if isinstance(sku_part_number, six.string_types) and len(sku_part_number.strip()) == 0: + if isinstance(sku_part_number, str) and len(sku_part_number.strip()) == 0: raise click.UsageError('Parameter --sku-part-number cannot be whitespace or empty string') kwargs = {} @@ -1087,7 +1086,7 @@ def request_average_carbon_emission(ctx, from_json, sku_part_number): @cli_util.wrap_exceptions def request_clean_energy_usage(ctx, from_json, region_parameterconflict, ad): - if isinstance(region_parameterconflict, six.string_types) and len(region_parameterconflict.strip()) == 0: + if isinstance(region_parameterconflict, str) and len(region_parameterconflict.strip()) == 0: raise click.UsageError('Parameter --region-parameterconflict cannot be whitespace or empty string') kwargs = {} @@ -1284,7 +1283,7 @@ def request_usage_carbon_emissions(ctx, from_json, tenant_id, time_usage_started @cli_util.wrap_exceptions def update_custom_table(ctx, from_json, force, saved_custom_table, custom_table_id, if_match): - if isinstance(custom_table_id, six.string_types) and len(custom_table_id.strip()) == 0: + if isinstance(custom_table_id, str) and len(custom_table_id.strip()) == 0: raise click.UsageError('Parameter --custom-table-id cannot be whitespace or empty string') if not force: if saved_custom_table: @@ -1325,10 +1324,10 @@ def update_custom_table(ctx, from_json, force, saved_custom_table, custom_table_ @cli_util.wrap_exceptions def update_email_recipients_group(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, recipients_list, email_recipients_group_id, subscription_id, compartment_id, if_match): - if isinstance(email_recipients_group_id, six.string_types) and len(email_recipients_group_id.strip()) == 0: + if isinstance(email_recipients_group_id, str) and len(email_recipients_group_id.strip()) == 0: raise click.UsageError('Parameter --email-recipients-group-id cannot be whitespace or empty string') - if isinstance(subscription_id, six.string_types) and len(subscription_id.strip()) == 0: + if isinstance(subscription_id, str) and len(subscription_id.strip()) == 0: raise click.UsageError('Parameter --subscription-id cannot be whitespace or empty string') if not force: if recipients_list: @@ -1389,7 +1388,7 @@ def update_email_recipients_group(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_query(ctx, from_json, force, query_definition, query_id, if_match): - if isinstance(query_id, six.string_types) and len(query_id.strip()) == 0: + if isinstance(query_id, str) and len(query_id.strip()) == 0: raise click.UsageError('Parameter --query-id cannot be whitespace or empty string') if not force: if query_definition: @@ -1432,7 +1431,7 @@ def update_query(ctx, from_json, force, query_definition, query_id, if_match): @cli_util.wrap_exceptions def update_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, description, output_file_format, result_location, freeform_tags, defined_tags, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') if not force: if result_location or freeform_tags or defined_tags: @@ -1514,7 +1513,7 @@ def update_schedule(ctx, from_json, force, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def update_schedule_object_storage_location(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, schedule_id, result_location_region, result_location_namespace, result_location_bucket_name, description, output_file_format, freeform_tags, defined_tags, if_match): - if isinstance(schedule_id, six.string_types) and len(schedule_id.strip()) == 0: + if isinstance(schedule_id, str) and len(schedule_id.strip()) == 0: raise click.UsageError('Parameter --schedule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -1590,7 +1589,7 @@ def update_schedule_object_storage_location(ctx, from_json, force, wait_for_stat @cli_util.wrap_exceptions def update_usage_carbon_emissions_query(ctx, from_json, force, query_definition, usage_carbon_emissions_query_id, if_match): - if isinstance(usage_carbon_emissions_query_id, six.string_types) and len(usage_carbon_emissions_query_id.strip()) == 0: + if isinstance(usage_carbon_emissions_query_id, str) and len(usage_carbon_emissions_query_id.strip()) == 0: raise click.UsageError('Parameter --usage-carbon-emissions-query-id cannot be whitespace or empty string') if not force: if query_definition: diff --git a/services/vault/src/oci_cli_vaults/generated/vaults_cli.py b/services/vault/src/oci_cli_vaults/generated/vaults_cli.py index bf1f08e61..c6bb96a49 100644 --- a/services/vault/src/oci_cli_vaults/generated/vaults_cli.py +++ b/services/vault/src/oci_cli_vaults/generated/vaults_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -48,7 +47,7 @@ def secret_group(): @cli_util.wrap_exceptions def cancel_secret_deletion(ctx, from_json, secret_id, if_match): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') kwargs = {} @@ -73,7 +72,7 @@ def cancel_secret_deletion(ctx, from_json, secret_id, if_match): @cli_util.wrap_exceptions def cancel_secret_rotation(ctx, from_json, secret_id, if_match): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') kwargs = {} @@ -99,10 +98,10 @@ def cancel_secret_rotation(ctx, from_json, secret_id, if_match): @cli_util.wrap_exceptions def cancel_secret_version_deletion(ctx, from_json, secret_id, secret_version_number, if_match): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') - if isinstance(secret_version_number, six.string_types) and len(secret_version_number.strip()) == 0: + if isinstance(secret_version_number, str) and len(secret_version_number.strip()) == 0: raise click.UsageError('Parameter --secret-version-number cannot be whitespace or empty string') kwargs = {} @@ -131,7 +130,7 @@ def cancel_secret_version_deletion(ctx, from_json, secret_id, secret_version_num @cli_util.wrap_exceptions def change_secret_compartment(ctx, from_json, secret_id, compartment_id, if_match): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') kwargs = {} @@ -685,7 +684,7 @@ def create_secret_bytes_generation_context(ctx, from_json, wait_for_state, max_w @cli_util.wrap_exceptions def get_secret(ctx, from_json, secret_id): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') kwargs = {} @@ -708,10 +707,10 @@ def get_secret(ctx, from_json, secret_id): @cli_util.wrap_exceptions def get_secret_version(ctx, from_json, secret_id, secret_version_number): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') - if isinstance(secret_version_number, six.string_types) and len(secret_version_number.strip()) == 0: + if isinstance(secret_version_number, str) and len(secret_version_number.strip()) == 0: raise click.UsageError('Parameter --secret-version-number cannot be whitespace or empty string') kwargs = {} @@ -743,7 +742,7 @@ def list_secret_versions(ctx, from_json, all_pages, page_size, secret_id, limit, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') kwargs = {} @@ -858,7 +857,7 @@ def list_secrets(ctx, from_json, all_pages, page_size, compartment_id, name, lim @cli_util.wrap_exceptions def rotate_secret(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, secret_id, if_match): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') kwargs = {} @@ -919,7 +918,7 @@ def rotate_secret(ctx, from_json, wait_for_state, max_wait_seconds, wait_interva @cli_util.wrap_exceptions def schedule_secret_deletion(ctx, from_json, secret_id, time_of_deletion, if_match): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') kwargs = {} @@ -953,10 +952,10 @@ def schedule_secret_deletion(ctx, from_json, secret_id, time_of_deletion, if_mat @cli_util.wrap_exceptions def schedule_secret_version_deletion(ctx, from_json, secret_id, secret_version_number, time_of_deletion, if_match): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') - if isinstance(secret_version_number, six.string_types) and len(secret_version_number.strip()) == 0: + if isinstance(secret_version_number, str) and len(secret_version_number.strip()) == 0: raise click.UsageError('Parameter --secret-version-number cannot be whitespace or empty string') kwargs = {} @@ -1008,7 +1007,7 @@ def schedule_secret_version_deletion(ctx, from_json, secret_id, secret_version_n @cli_util.wrap_exceptions def update_secret(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, secret_id, current_version_number, defined_tags, description, freeform_tags, metadata, secret_content, replication_config, rotation_config, secret_rules, secret_generation_context, enable_auto_generation, if_match): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or metadata or secret_content or replication_config or rotation_config or secret_rules or secret_generation_context: @@ -1118,7 +1117,7 @@ def update_secret(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_secret_base64_secret_content_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, secret_id, current_version_number, defined_tags, description, freeform_tags, metadata, replication_config, rotation_config, secret_rules, secret_generation_context, enable_auto_generation, if_match, secret_content_name, secret_content_stage, secret_content_content): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or metadata or replication_config or rotation_config or secret_rules or secret_generation_context: @@ -1237,7 +1236,7 @@ def update_secret_base64_secret_content_details(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_secret_passphrase_generation_context(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, secret_id, secret_generation_context_generation_template, current_version_number, defined_tags, description, freeform_tags, metadata, secret_content, replication_config, rotation_config, secret_rules, enable_auto_generation, if_match, secret_generation_context_secret_template, secret_generation_context_passphrase_length): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or metadata or secret_content or replication_config or rotation_config or secret_rules: @@ -1353,7 +1352,7 @@ def update_secret_passphrase_generation_context(ctx, from_json, force, wait_for_ @cli_util.wrap_exceptions def update_secret_ssh_key_generation_context(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, secret_id, secret_generation_context_generation_template, current_version_number, defined_tags, description, freeform_tags, metadata, secret_content, replication_config, rotation_config, secret_rules, enable_auto_generation, if_match, secret_generation_context_secret_template): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or metadata or secret_content or replication_config or rotation_config or secret_rules: @@ -1466,7 +1465,7 @@ def update_secret_ssh_key_generation_context(ctx, from_json, force, wait_for_sta @cli_util.wrap_exceptions def update_secret_bytes_generation_context(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, secret_id, secret_generation_context_generation_template, current_version_number, defined_tags, description, freeform_tags, metadata, secret_content, replication_config, rotation_config, secret_rules, enable_auto_generation, if_match, secret_generation_context_secret_template): - if isinstance(secret_id, six.string_types) and len(secret_id.strip()) == 0: + if isinstance(secret_id, str) and len(secret_id.strip()) == 0: raise click.UsageError('Parameter --secret-id cannot be whitespace or empty string') if not force: if defined_tags or freeform_tags or metadata or secret_content or replication_config or rotation_config or secret_rules: diff --git a/services/vbs_inst/src/oci_cli_vbs_instance/generated/vbsinstance_cli.py b/services/vbs_inst/src/oci_cli_vbs_instance/generated/vbsinstance_cli.py index d817c8b81..c102d4afd 100644 --- a/services/vbs_inst/src/oci_cli_vbs_instance/generated/vbsinstance_cli.py +++ b/services/vbs_inst/src/oci_cli_vbs_instance/generated/vbsinstance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -73,7 +72,7 @@ def work_request_group(): @cli_util.wrap_exceptions def change_vbs_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vbs_instance_id, compartment_id, if_match): - if isinstance(vbs_instance_id, six.string_types) and len(vbs_instance_id.strip()) == 0: + if isinstance(vbs_instance_id, str) and len(vbs_instance_id.strip()) == 0: raise click.UsageError('Parameter --vbs-instance-id cannot be whitespace or empty string') kwargs = {} @@ -210,7 +209,7 @@ def create_vbs_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_vbs_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vbs_instance_id, if_match): - if isinstance(vbs_instance_id, six.string_types) and len(vbs_instance_id.strip()) == 0: + if isinstance(vbs_instance_id, str) and len(vbs_instance_id.strip()) == 0: raise click.UsageError('Parameter --vbs-instance-id cannot be whitespace or empty string') kwargs = {} @@ -261,7 +260,7 @@ def delete_vbs_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def get_vbs_instance(ctx, from_json, vbs_instance_id): - if isinstance(vbs_instance_id, six.string_types) and len(vbs_instance_id.strip()) == 0: + if isinstance(vbs_instance_id, str) and len(vbs_instance_id.strip()) == 0: raise click.UsageError('Parameter --vbs-instance-id cannot be whitespace or empty string') kwargs = {} @@ -283,7 +282,7 @@ def get_vbs_instance(ctx, from_json, vbs_instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -377,7 +376,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -434,7 +433,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -549,7 +548,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_vbs_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vbs_instance_id, display_name, is_resource_usage_agreement_granted, resource_compartment_id, freeform_tags, defined_tags, if_match): - if isinstance(vbs_instance_id, six.string_types) and len(vbs_instance_id.strip()) == 0: + if isinstance(vbs_instance_id, str) and len(vbs_instance_id.strip()) == 0: raise click.UsageError('Parameter --vbs-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: diff --git a/services/visual_builder/src/oci_cli_vb_instance/generated/vbinstance_cli.py b/services/visual_builder/src/oci_cli_vb_instance/generated/vbinstance_cli.py index f176d7cfc..753116cfb 100644 --- a/services/visual_builder/src/oci_cli_vb_instance/generated/vbinstance_cli.py +++ b/services/visual_builder/src/oci_cli_vb_instance/generated/vbinstance_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -88,7 +87,7 @@ def work_request_log_entry_collection_group(): @cli_util.wrap_exceptions def change_vb_instance_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vb_instance_id, compartment_id, if_match): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') kwargs = {} @@ -440,7 +439,7 @@ def create_vb_instance_public_endpoint_details(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def delete_vb_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vb_instance_id, if_match): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') kwargs = {} @@ -491,7 +490,7 @@ def delete_vb_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_vb_instance(ctx, from_json, vb_instance_id): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') kwargs = {} @@ -513,7 +512,7 @@ def get_vb_instance(ctx, from_json, vb_instance_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -605,7 +604,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, compartment_i if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -660,7 +659,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, compartment_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -762,7 +761,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def reconfigure_private_endpoint_vb_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vb_instance_id, if_match): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') kwargs = {} @@ -815,7 +814,7 @@ def reconfigure_private_endpoint_vb_instance(ctx, from_json, wait_for_state, max @cli_util.wrap_exceptions def request_summarized_applications(ctx, from_json, vb_instance_id, idcs_open_id, if_match): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') kwargs = {} @@ -850,7 +849,7 @@ def request_summarized_applications(ctx, from_json, vb_instance_id, idcs_open_id @cli_util.wrap_exceptions def start_vb_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vb_instance_id, if_match): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') kwargs = {} @@ -905,7 +904,7 @@ def start_vb_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def stop_vb_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, vb_instance_id, if_match): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') kwargs = {} @@ -972,7 +971,7 @@ def stop_vb_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def update_vb_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vb_instance_id, display_name, freeform_tags, defined_tags, idcs_open_id, node_count, is_visual_builder_enabled, custom_endpoint, alternate_custom_endpoints, network_endpoint_details, if_match): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or custom_endpoint or alternate_custom_endpoints or network_endpoint_details: @@ -1077,7 +1076,7 @@ def update_vb_instance(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_vb_instance_update_public_endpoint_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vb_instance_id, display_name, freeform_tags, defined_tags, idcs_open_id, node_count, is_visual_builder_enabled, custom_endpoint, alternate_custom_endpoints, if_match, network_endpoint_details_allowlisted_http_ips, network_endpoint_details_allowlisted_http_vcns): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or custom_endpoint or alternate_custom_endpoints: @@ -1186,7 +1185,7 @@ def update_vb_instance_update_public_endpoint_details(ctx, from_json, force, wai @cli_util.wrap_exceptions def update_vb_instance_update_private_endpoint_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, vb_instance_id, display_name, freeform_tags, defined_tags, idcs_open_id, node_count, is_visual_builder_enabled, custom_endpoint, alternate_custom_endpoints, if_match, network_endpoint_details_subnet_id, network_endpoint_details_network_security_group_ids): - if isinstance(vb_instance_id, six.string_types) and len(vb_instance_id.strip()) == 0: + if isinstance(vb_instance_id, str) and len(vb_instance_id.strip()) == 0: raise click.UsageError('Parameter --vb-instance-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or custom_endpoint or alternate_custom_endpoints: diff --git a/services/vn_monitoring/src/oci_cli_vn_monitoring/generated/vnmonitoring_cli.py b/services/vn_monitoring/src/oci_cli_vn_monitoring/generated/vnmonitoring_cli.py index 1b3240064..9b0bfe952 100644 --- a/services/vn_monitoring/src/oci_cli_vn_monitoring/generated/vnmonitoring_cli.py +++ b/services/vn_monitoring/src/oci_cli_vn_monitoring/generated/vnmonitoring_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -85,7 +84,7 @@ def path_analyzer_test_group(): @cli_util.wrap_exceptions def change_path_analyzer_test_compartment(ctx, from_json, path_analyzer_test_id, compartment_id, if_match): - if isinstance(path_analyzer_test_id, six.string_types) and len(path_analyzer_test_id.strip()) == 0: + if isinstance(path_analyzer_test_id, str) and len(path_analyzer_test_id.strip()) == 0: raise click.UsageError('Parameter --path-analyzer-test-id cannot be whitespace or empty string') kwargs = {} @@ -194,7 +193,7 @@ def create_path_analyzer_test(ctx, from_json, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def delete_path_analyzer_test(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, path_analyzer_test_id, if_match): - if isinstance(path_analyzer_test_id, six.string_types) and len(path_analyzer_test_id.strip()) == 0: + if isinstance(path_analyzer_test_id, str) and len(path_analyzer_test_id.strip()) == 0: raise click.UsageError('Parameter --path-analyzer-test-id cannot be whitespace or empty string') kwargs = {} @@ -445,7 +444,7 @@ def get_path_analysis_persisted_get_path_analysis_details(ctx, from_json, wait_f @cli_util.wrap_exceptions def get_path_analyzer_test(ctx, from_json, path_analyzer_test_id): - if isinstance(path_analyzer_test_id, six.string_types) and len(path_analyzer_test_id.strip()) == 0: + if isinstance(path_analyzer_test_id, str) and len(path_analyzer_test_id.strip()) == 0: raise click.UsageError('Parameter --path-analyzer-test-id cannot be whitespace or empty string') kwargs = {} @@ -467,7 +466,7 @@ def get_path_analyzer_test(ctx, from_json, path_analyzer_test_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -564,7 +563,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -623,7 +622,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -681,7 +680,7 @@ def list_work_request_results(ctx, from_json, all_pages, page_size, work_request if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -805,7 +804,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_path_analyzer_test(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, path_analyzer_test_id, display_name, protocol, source_endpoint, destination_endpoint, protocol_parameters, query_options, freeform_tags, defined_tags, if_match): - if isinstance(path_analyzer_test_id, six.string_types) and len(path_analyzer_test_id.strip()) == 0: + if isinstance(path_analyzer_test_id, str) and len(path_analyzer_test_id.strip()) == 0: raise click.UsageError('Parameter --path-analyzer-test-id cannot be whitespace or empty string') if not force: if source_endpoint or destination_endpoint or protocol_parameters or query_options or freeform_tags or defined_tags: diff --git a/services/vulnerability_scanning/src/oci_cli_vulnerability_scanning/generated/vulnerabilityscanning_cli.py b/services/vulnerability_scanning/src/oci_cli_vulnerability_scanning/generated/vulnerabilityscanning_cli.py index 22ceeb730..a0324ecbb 100644 --- a/services/vulnerability_scanning/src/oci_cli_vulnerability_scanning/generated/vulnerabilityscanning_cli.py +++ b/services/vulnerability_scanning/src/oci_cli_vulnerability_scanning/generated/vulnerabilityscanning_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -140,7 +139,7 @@ def host_agent_scan_result_group(): @cli_util.wrap_exceptions def change_container_scan_recipe_compartment(ctx, from_json, container_scan_recipe_id, compartment_id, if_match): - if isinstance(container_scan_recipe_id, six.string_types) and len(container_scan_recipe_id.strip()) == 0: + if isinstance(container_scan_recipe_id, str) and len(container_scan_recipe_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -171,7 +170,7 @@ def change_container_scan_recipe_compartment(ctx, from_json, container_scan_reci @cli_util.wrap_exceptions def change_container_scan_result_compartment(ctx, from_json, container_scan_result_id, compartment_id, if_match): - if isinstance(container_scan_result_id, six.string_types) and len(container_scan_result_id.strip()) == 0: + if isinstance(container_scan_result_id, str) and len(container_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -202,7 +201,7 @@ def change_container_scan_result_compartment(ctx, from_json, container_scan_resu @cli_util.wrap_exceptions def change_container_scan_target_compartment(ctx, from_json, container_scan_target_id, compartment_id, if_match): - if isinstance(container_scan_target_id, six.string_types) and len(container_scan_target_id.strip()) == 0: + if isinstance(container_scan_target_id, str) and len(container_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-target-id cannot be whitespace or empty string') kwargs = {} @@ -233,7 +232,7 @@ def change_container_scan_target_compartment(ctx, from_json, container_scan_targ @cli_util.wrap_exceptions def change_host_agent_scan_result_compartment(ctx, from_json, host_agent_scan_result_id, compartment_id, if_match): - if isinstance(host_agent_scan_result_id, six.string_types) and len(host_agent_scan_result_id.strip()) == 0: + if isinstance(host_agent_scan_result_id, str) and len(host_agent_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-agent-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -264,7 +263,7 @@ def change_host_agent_scan_result_compartment(ctx, from_json, host_agent_scan_re @cli_util.wrap_exceptions def change_host_cis_benchmark_scan_result_compartment(ctx, from_json, host_cis_benchmark_scan_result_id, compartment_id, if_match): - if isinstance(host_cis_benchmark_scan_result_id, six.string_types) and len(host_cis_benchmark_scan_result_id.strip()) == 0: + if isinstance(host_cis_benchmark_scan_result_id, str) and len(host_cis_benchmark_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-cis-benchmark-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -295,7 +294,7 @@ def change_host_cis_benchmark_scan_result_compartment(ctx, from_json, host_cis_b @cli_util.wrap_exceptions def change_host_endpoint_protection_scan_result_compartment(ctx, from_json, host_endpoint_protection_scan_result_id, compartment_id, if_match): - if isinstance(host_endpoint_protection_scan_result_id, six.string_types) and len(host_endpoint_protection_scan_result_id.strip()) == 0: + if isinstance(host_endpoint_protection_scan_result_id, str) and len(host_endpoint_protection_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-endpoint-protection-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -326,7 +325,7 @@ def change_host_endpoint_protection_scan_result_compartment(ctx, from_json, host @cli_util.wrap_exceptions def change_host_port_scan_result_compartment(ctx, from_json, host_port_scan_result_id, compartment_id, if_match): - if isinstance(host_port_scan_result_id, six.string_types) and len(host_port_scan_result_id.strip()) == 0: + if isinstance(host_port_scan_result_id, str) and len(host_port_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-port-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -357,7 +356,7 @@ def change_host_port_scan_result_compartment(ctx, from_json, host_port_scan_resu @cli_util.wrap_exceptions def change_host_scan_recipe_compartment(ctx, from_json, host_scan_recipe_id, compartment_id, if_match): - if isinstance(host_scan_recipe_id, six.string_types) and len(host_scan_recipe_id.strip()) == 0: + if isinstance(host_scan_recipe_id, str) and len(host_scan_recipe_id.strip()) == 0: raise click.UsageError('Parameter --host-scan-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -388,7 +387,7 @@ def change_host_scan_recipe_compartment(ctx, from_json, host_scan_recipe_id, com @cli_util.wrap_exceptions def change_host_scan_target_compartment(ctx, from_json, host_scan_target_id, compartment_id, if_match): - if isinstance(host_scan_target_id, six.string_types) and len(host_scan_target_id.strip()) == 0: + if isinstance(host_scan_target_id, str) and len(host_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --host-scan-target-id cannot be whitespace or empty string') kwargs = {} @@ -802,7 +801,7 @@ def create_host_scan_target(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_container_scan_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, container_scan_recipe_id, if_match): - if isinstance(container_scan_recipe_id, six.string_types) and len(container_scan_recipe_id.strip()) == 0: + if isinstance(container_scan_recipe_id, str) and len(container_scan_recipe_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -858,7 +857,7 @@ def delete_container_scan_recipe(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_container_scan_result(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, container_scan_result_id, if_match): - if isinstance(container_scan_result_id, six.string_types) and len(container_scan_result_id.strip()) == 0: + if isinstance(container_scan_result_id, str) and len(container_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -914,7 +913,7 @@ def delete_container_scan_result(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_container_scan_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, container_scan_target_id, if_match): - if isinstance(container_scan_target_id, six.string_types) and len(container_scan_target_id.strip()) == 0: + if isinstance(container_scan_target_id, str) and len(container_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-target-id cannot be whitespace or empty string') kwargs = {} @@ -970,7 +969,7 @@ def delete_container_scan_target(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_host_agent_scan_result(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_agent_scan_result_id, if_match): - if isinstance(host_agent_scan_result_id, six.string_types) and len(host_agent_scan_result_id.strip()) == 0: + if isinstance(host_agent_scan_result_id, str) and len(host_agent_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-agent-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -1026,7 +1025,7 @@ def delete_host_agent_scan_result(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_host_cis_benchmark_scan_result(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_cis_benchmark_scan_result_id, if_match): - if isinstance(host_cis_benchmark_scan_result_id, six.string_types) and len(host_cis_benchmark_scan_result_id.strip()) == 0: + if isinstance(host_cis_benchmark_scan_result_id, str) and len(host_cis_benchmark_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-cis-benchmark-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -1082,7 +1081,7 @@ def delete_host_cis_benchmark_scan_result(ctx, from_json, wait_for_state, max_wa @cli_util.wrap_exceptions def delete_host_endpoint_protection_scan_result(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_endpoint_protection_scan_result_id, if_match): - if isinstance(host_endpoint_protection_scan_result_id, six.string_types) and len(host_endpoint_protection_scan_result_id.strip()) == 0: + if isinstance(host_endpoint_protection_scan_result_id, str) and len(host_endpoint_protection_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-endpoint-protection-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -1138,7 +1137,7 @@ def delete_host_endpoint_protection_scan_result(ctx, from_json, wait_for_state, @cli_util.wrap_exceptions def delete_host_port_scan_result(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_port_scan_result_id, if_match): - if isinstance(host_port_scan_result_id, six.string_types) and len(host_port_scan_result_id.strip()) == 0: + if isinstance(host_port_scan_result_id, str) and len(host_port_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-port-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -1194,7 +1193,7 @@ def delete_host_port_scan_result(ctx, from_json, wait_for_state, max_wait_second @cli_util.wrap_exceptions def delete_host_scan_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_scan_recipe_id, if_match): - if isinstance(host_scan_recipe_id, six.string_types) and len(host_scan_recipe_id.strip()) == 0: + if isinstance(host_scan_recipe_id, str) and len(host_scan_recipe_id.strip()) == 0: raise click.UsageError('Parameter --host-scan-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -1250,7 +1249,7 @@ def delete_host_scan_recipe(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_host_scan_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, host_scan_target_id, if_match): - if isinstance(host_scan_target_id, six.string_types) and len(host_scan_target_id.strip()) == 0: + if isinstance(host_scan_target_id, str) and len(host_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --host-scan-target-id cannot be whitespace or empty string') kwargs = {} @@ -1413,7 +1412,7 @@ def export_host_vulnerability_csv(ctx, from_json, file, compartment_id, time_las @cli_util.wrap_exceptions def get_container_scan_recipe(ctx, from_json, container_scan_recipe_id): - if isinstance(container_scan_recipe_id, six.string_types) and len(container_scan_recipe_id.strip()) == 0: + if isinstance(container_scan_recipe_id, str) and len(container_scan_recipe_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -1435,7 +1434,7 @@ def get_container_scan_recipe(ctx, from_json, container_scan_recipe_id): @cli_util.wrap_exceptions def get_container_scan_result(ctx, from_json, container_scan_result_id): - if isinstance(container_scan_result_id, six.string_types) and len(container_scan_result_id.strip()) == 0: + if isinstance(container_scan_result_id, str) and len(container_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -1457,7 +1456,7 @@ def get_container_scan_result(ctx, from_json, container_scan_result_id): @cli_util.wrap_exceptions def get_container_scan_target(ctx, from_json, container_scan_target_id): - if isinstance(container_scan_target_id, six.string_types) and len(container_scan_target_id.strip()) == 0: + if isinstance(container_scan_target_id, str) and len(container_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-target-id cannot be whitespace or empty string') kwargs = {} @@ -1479,7 +1478,7 @@ def get_container_scan_target(ctx, from_json, container_scan_target_id): @cli_util.wrap_exceptions def get_host_agent_scan_result(ctx, from_json, host_agent_scan_result_id): - if isinstance(host_agent_scan_result_id, six.string_types) and len(host_agent_scan_result_id.strip()) == 0: + if isinstance(host_agent_scan_result_id, str) and len(host_agent_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-agent-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -1501,7 +1500,7 @@ def get_host_agent_scan_result(ctx, from_json, host_agent_scan_result_id): @cli_util.wrap_exceptions def get_host_cis_benchmark_scan_result(ctx, from_json, host_cis_benchmark_scan_result_id): - if isinstance(host_cis_benchmark_scan_result_id, six.string_types) and len(host_cis_benchmark_scan_result_id.strip()) == 0: + if isinstance(host_cis_benchmark_scan_result_id, str) and len(host_cis_benchmark_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-cis-benchmark-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -1523,7 +1522,7 @@ def get_host_cis_benchmark_scan_result(ctx, from_json, host_cis_benchmark_scan_r @cli_util.wrap_exceptions def get_host_endpoint_protection_scan_result(ctx, from_json, host_endpoint_protection_scan_result_id): - if isinstance(host_endpoint_protection_scan_result_id, six.string_types) and len(host_endpoint_protection_scan_result_id.strip()) == 0: + if isinstance(host_endpoint_protection_scan_result_id, str) and len(host_endpoint_protection_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-endpoint-protection-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -1545,7 +1544,7 @@ def get_host_endpoint_protection_scan_result(ctx, from_json, host_endpoint_prote @cli_util.wrap_exceptions def get_host_port_scan_result(ctx, from_json, host_port_scan_result_id): - if isinstance(host_port_scan_result_id, six.string_types) and len(host_port_scan_result_id.strip()) == 0: + if isinstance(host_port_scan_result_id, str) and len(host_port_scan_result_id.strip()) == 0: raise click.UsageError('Parameter --host-port-scan-result-id cannot be whitespace or empty string') kwargs = {} @@ -1567,7 +1566,7 @@ def get_host_port_scan_result(ctx, from_json, host_port_scan_result_id): @cli_util.wrap_exceptions def get_host_scan_recipe(ctx, from_json, host_scan_recipe_id): - if isinstance(host_scan_recipe_id, six.string_types) and len(host_scan_recipe_id.strip()) == 0: + if isinstance(host_scan_recipe_id, str) and len(host_scan_recipe_id.strip()) == 0: raise click.UsageError('Parameter --host-scan-recipe-id cannot be whitespace or empty string') kwargs = {} @@ -1589,7 +1588,7 @@ def get_host_scan_recipe(ctx, from_json, host_scan_recipe_id): @cli_util.wrap_exceptions def get_host_scan_target(ctx, from_json, host_scan_target_id): - if isinstance(host_scan_target_id, six.string_types) and len(host_scan_target_id.strip()) == 0: + if isinstance(host_scan_target_id, str) and len(host_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --host-scan-target-id cannot be whitespace or empty string') kwargs = {} @@ -1611,7 +1610,7 @@ def get_host_scan_target(ctx, from_json, host_scan_target_id): @cli_util.wrap_exceptions def get_host_vulnerability(ctx, from_json, host_vulnerability_id): - if isinstance(host_vulnerability_id, six.string_types) and len(host_vulnerability_id.strip()) == 0: + if isinstance(host_vulnerability_id, str) and len(host_vulnerability_id.strip()) == 0: raise click.UsageError('Parameter --host-vulnerability-id cannot be whitespace or empty string') kwargs = {} @@ -1633,7 +1632,7 @@ def get_host_vulnerability(ctx, from_json, host_vulnerability_id): @cli_util.wrap_exceptions def get_vulnerability(ctx, from_json, vulnerability_id): - if isinstance(vulnerability_id, six.string_types) and len(vulnerability_id.strip()) == 0: + if isinstance(vulnerability_id, str) and len(vulnerability_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-id cannot be whitespace or empty string') kwargs = {} @@ -1655,7 +1654,7 @@ def get_vulnerability(ctx, from_json, vulnerability_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2234,7 +2233,7 @@ def list_host_scan_target_errors(ctx, from_json, all_pages, page_size, compartme if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(host_scan_target_id, six.string_types) and len(host_scan_target_id.strip()) == 0: + if isinstance(host_scan_target_id, str) and len(host_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --host-scan-target-id cannot be whitespace or empty string') kwargs = {} @@ -2422,7 +2421,7 @@ def list_host_vulnerability_impacted_hosts(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(host_vulnerability_id, six.string_types) and len(host_vulnerability_id.strip()) == 0: + if isinstance(host_vulnerability_id, str) and len(host_vulnerability_id.strip()) == 0: raise click.UsageError('Parameter --host-vulnerability-id cannot be whitespace or empty string') kwargs = {} @@ -2545,7 +2544,7 @@ def list_vulnerability_impacted_containers(ctx, from_json, all_pages, page_size, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vulnerability_id, six.string_types) and len(vulnerability_id.strip()) == 0: + if isinstance(vulnerability_id, str) and len(vulnerability_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-id cannot be whitespace or empty string') kwargs = {} @@ -2602,7 +2601,7 @@ def list_vulnerability_impacted_hosts(ctx, from_json, all_pages, page_size, vuln if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(vulnerability_id, six.string_types) and len(vulnerability_id.strip()) == 0: + if isinstance(vulnerability_id, str) and len(vulnerability_id.strip()) == 0: raise click.UsageError('Parameter --vulnerability-id cannot be whitespace or empty string') kwargs = {} @@ -2657,7 +2656,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2708,7 +2707,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -2810,7 +2809,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, pag @cli_util.wrap_exceptions def update_container_scan_recipe(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, container_scan_recipe_id, display_name, image_count, scan_settings, freeform_tags, defined_tags, if_match): - if isinstance(container_scan_recipe_id, six.string_types) and len(container_scan_recipe_id.strip()) == 0: + if isinstance(container_scan_recipe_id, str) and len(container_scan_recipe_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-recipe-id cannot be whitespace or empty string') if not force: if scan_settings or freeform_tags or defined_tags: @@ -2895,7 +2894,7 @@ def update_container_scan_recipe(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_container_scan_target(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, container_scan_target_id, display_name, description, target_registry, container_scan_recipe_id, freeform_tags, defined_tags, if_match): - if isinstance(container_scan_target_id, six.string_types) and len(container_scan_target_id.strip()) == 0: + if isinstance(container_scan_target_id, str) and len(container_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-target-id cannot be whitespace or empty string') if not force: if target_registry or freeform_tags or defined_tags: @@ -2985,7 +2984,7 @@ def update_container_scan_target(ctx, from_json, force, wait_for_state, max_wait @cli_util.wrap_exceptions def update_container_scan_target_update_ocir_container_scan_registry_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, container_scan_target_id, display_name, description, container_scan_recipe_id, freeform_tags, defined_tags, if_match, target_registry_url, target_registry_compartment_id, target_registry_repositories): - if isinstance(container_scan_target_id, six.string_types) and len(container_scan_target_id.strip()) == 0: + if isinstance(container_scan_target_id, str) and len(container_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --container-scan-target-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3083,7 +3082,7 @@ def update_container_scan_target_update_ocir_container_scan_registry_details(ctx @cli_util.wrap_exceptions def update_host_scan_recipe(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, host_scan_recipe_id, display_name, port_settings, agent_settings, application_settings, schedule, freeform_tags, defined_tags, if_match): - if isinstance(host_scan_recipe_id, six.string_types) and len(host_scan_recipe_id.strip()) == 0: + if isinstance(host_scan_recipe_id, str) and len(host_scan_recipe_id.strip()) == 0: raise click.UsageError('Parameter --host-scan-recipe-id cannot be whitespace or empty string') if not force: if port_settings or agent_settings or application_settings or schedule or freeform_tags or defined_tags: @@ -3175,7 +3174,7 @@ def update_host_scan_recipe(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_host_scan_target(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, host_scan_target_id, display_name, description, target_compartment_id, instance_ids, host_scan_recipe_id, freeform_tags, defined_tags, if_match): - if isinstance(host_scan_target_id, six.string_types) and len(host_scan_target_id.strip()) == 0: + if isinstance(host_scan_target_id, str) and len(host_scan_target_id.strip()) == 0: raise click.UsageError('Parameter --host-scan-target-id cannot be whitespace or empty string') if not force: if instance_ids or freeform_tags or defined_tags: diff --git a/services/waa/src/oci_cli_waa/generated/waa_cli.py b/services/waa/src/oci_cli_waa/generated/waa_cli.py index 0f122dd97..83f96bd7e 100644 --- a/services/waa/src/oci_cli_waa/generated/waa_cli.py +++ b/services/waa/src/oci_cli_waa/generated/waa_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -59,7 +58,7 @@ def web_app_acceleration_group(): @cli_util.wrap_exceptions def change_web_app_acceleration_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_acceleration_id, compartment_id, if_match): - if isinstance(web_app_acceleration_id, six.string_types) and len(web_app_acceleration_id.strip()) == 0: + if isinstance(web_app_acceleration_id, str) and len(web_app_acceleration_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-id cannot be whitespace or empty string') kwargs = {} @@ -120,7 +119,7 @@ def change_web_app_acceleration_compartment(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def change_web_app_acceleration_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_acceleration_policy_id, compartment_id, if_match): - if isinstance(web_app_acceleration_policy_id, six.string_types) and len(web_app_acceleration_policy_id.strip()) == 0: + if isinstance(web_app_acceleration_policy_id, str) and len(web_app_acceleration_policy_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-policy-id cannot be whitespace or empty string') kwargs = {} @@ -406,7 +405,7 @@ def create_web_app_acceleration_policy(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def delete_web_app_acceleration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_acceleration_id, if_match): - if isinstance(web_app_acceleration_id, six.string_types) and len(web_app_acceleration_id.strip()) == 0: + if isinstance(web_app_acceleration_id, str) and len(web_app_acceleration_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-id cannot be whitespace or empty string') kwargs = {} @@ -462,7 +461,7 @@ def delete_web_app_acceleration(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_web_app_acceleration_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_acceleration_policy_id, if_match): - if isinstance(web_app_acceleration_policy_id, six.string_types) and len(web_app_acceleration_policy_id.strip()) == 0: + if isinstance(web_app_acceleration_policy_id, str) and len(web_app_acceleration_policy_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-policy-id cannot be whitespace or empty string') kwargs = {} @@ -513,7 +512,7 @@ def delete_web_app_acceleration_policy(ctx, from_json, wait_for_state, max_wait_ @cli_util.wrap_exceptions def get_web_app_acceleration(ctx, from_json, web_app_acceleration_id): - if isinstance(web_app_acceleration_id, six.string_types) and len(web_app_acceleration_id.strip()) == 0: + if isinstance(web_app_acceleration_id, str) and len(web_app_acceleration_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-id cannot be whitespace or empty string') kwargs = {} @@ -535,7 +534,7 @@ def get_web_app_acceleration(ctx, from_json, web_app_acceleration_id): @cli_util.wrap_exceptions def get_web_app_acceleration_policy(ctx, from_json, web_app_acceleration_policy_id): - if isinstance(web_app_acceleration_policy_id, six.string_types) and len(web_app_acceleration_policy_id.strip()) == 0: + if isinstance(web_app_acceleration_policy_id, str) and len(web_app_acceleration_policy_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-policy-id cannot be whitespace or empty string') kwargs = {} @@ -690,7 +689,7 @@ def list_web_app_accelerations(ctx, from_json, all_pages, page_size, compartment @cli_util.wrap_exceptions def purge_web_app_acceleration_cache(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_acceleration_id, purge_type): - if isinstance(web_app_acceleration_id, six.string_types) and len(web_app_acceleration_id.strip()) == 0: + if isinstance(web_app_acceleration_id, str) and len(web_app_acceleration_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-id cannot be whitespace or empty string') kwargs = {} @@ -747,7 +746,7 @@ def purge_web_app_acceleration_cache(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def purge_web_app_acceleration_cache_purge_entire_web_app_acceleration_cache_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_acceleration_id): - if isinstance(web_app_acceleration_id, six.string_types) and len(web_app_acceleration_id.strip()) == 0: + if isinstance(web_app_acceleration_id, str) and len(web_app_acceleration_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-id cannot be whitespace or empty string') kwargs = {} @@ -812,7 +811,7 @@ def purge_web_app_acceleration_cache_purge_entire_web_app_acceleration_cache_det @cli_util.wrap_exceptions def update_web_app_acceleration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_acceleration_id, display_name, web_app_acceleration_policy_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(web_app_acceleration_id, six.string_types) and len(web_app_acceleration_id.strip()) == 0: + if isinstance(web_app_acceleration_id, str) and len(web_app_acceleration_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: @@ -897,7 +896,7 @@ def update_web_app_acceleration(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_web_app_acceleration_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_acceleration_policy_id, display_name, response_caching_policy, response_compression_policy, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(web_app_acceleration_policy_id, six.string_types) and len(web_app_acceleration_policy_id.strip()) == 0: + if isinstance(web_app_acceleration_policy_id, str) and len(web_app_acceleration_policy_id.strip()) == 0: raise click.UsageError('Parameter --web-app-acceleration-policy-id cannot be whitespace or empty string') if not force: if response_caching_policy or response_compression_policy or freeform_tags or defined_tags or system_tags: diff --git a/services/waa/src/oci_cli_work_request/generated/workrequest_cli.py b/services/waa/src/oci_cli_work_request/generated/workrequest_cli.py index 4791c2f90..8c2b9f91e 100644 --- a/services/waa/src/oci_cli_work_request/generated/workrequest_cli.py +++ b/services/waa/src/oci_cli_work_request/generated/workrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -57,7 +56,7 @@ def work_request_group(): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -86,7 +85,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -137,7 +136,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/waas/src/oci_cli_redirect/generated/redirect_cli.py b/services/waas/src/oci_cli_redirect/generated/redirect_cli.py index b9080fd63..55be5bf79 100644 --- a/services/waas/src/oci_cli_redirect/generated/redirect_cli.py +++ b/services/waas/src/oci_cli_redirect/generated/redirect_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -45,7 +44,7 @@ def http_redirect_group(): @cli_util.wrap_exceptions def change_http_redirect_compartment(ctx, from_json, http_redirect_id, compartment_id, if_match): - if isinstance(http_redirect_id, six.string_types) and len(http_redirect_id.strip()) == 0: + if isinstance(http_redirect_id, str) and len(http_redirect_id.strip()) == 0: raise click.UsageError('Parameter --http-redirect-id cannot be whitespace or empty string') kwargs = {} @@ -156,7 +155,7 @@ def create_http_redirect(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def delete_http_redirect(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, http_redirect_id, if_match): - if isinstance(http_redirect_id, six.string_types) and len(http_redirect_id.strip()) == 0: + if isinstance(http_redirect_id, str) and len(http_redirect_id.strip()) == 0: raise click.UsageError('Parameter --http-redirect-id cannot be whitespace or empty string') kwargs = {} @@ -207,7 +206,7 @@ def delete_http_redirect(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def get_http_redirect(ctx, from_json, http_redirect_id): - if isinstance(http_redirect_id, six.string_types) and len(http_redirect_id.strip()) == 0: + if isinstance(http_redirect_id, str) and len(http_redirect_id.strip()) == 0: raise click.UsageError('Parameter --http-redirect-id cannot be whitespace or empty string') kwargs = {} @@ -312,7 +311,7 @@ def list_http_redirects(ctx, from_json, all_pages, page_size, compartment_id, li @cli_util.wrap_exceptions def update_http_redirect(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, http_redirect_id, display_name, target, response_code, freeform_tags, defined_tags, if_match): - if isinstance(http_redirect_id, six.string_types) and len(http_redirect_id.strip()) == 0: + if isinstance(http_redirect_id, str) and len(http_redirect_id.strip()) == 0: raise click.UsageError('Parameter --http-redirect-id cannot be whitespace or empty string') if not force: if target or freeform_tags or defined_tags: diff --git a/services/waas/src/oci_cli_waas/generated/waas_cli.py b/services/waas/src/oci_cli_waas/generated/waas_cli.py index 4cbf99d79..fdd91d4b5 100644 --- a/services/waas/src/oci_cli_waas/generated/waas_cli.py +++ b/services/waas/src/oci_cli_waas/generated/waas_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -257,7 +256,7 @@ def waf_config_group(): @cli_util.wrap_exceptions def accept_recommendations(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, protection_rule_keys, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -311,7 +310,7 @@ def accept_recommendations(ctx, from_json, wait_for_state, max_wait_seconds, wai @cli_util.wrap_exceptions def cancel_work_request(ctx, from_json, work_request_id, if_match): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -337,7 +336,7 @@ def cancel_work_request(ctx, from_json, work_request_id, if_match): @cli_util.wrap_exceptions def change_address_list_compartment(ctx, from_json, address_list_id, compartment_id, if_match): - if isinstance(address_list_id, six.string_types) and len(address_list_id.strip()) == 0: + if isinstance(address_list_id, str) and len(address_list_id.strip()) == 0: raise click.UsageError('Parameter --address-list-id cannot be whitespace or empty string') kwargs = {} @@ -368,7 +367,7 @@ def change_address_list_compartment(ctx, from_json, address_list_id, compartment @cli_util.wrap_exceptions def change_certificate_compartment(ctx, from_json, certificate_id, compartment_id, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -399,7 +398,7 @@ def change_certificate_compartment(ctx, from_json, certificate_id, compartment_i @cli_util.wrap_exceptions def change_custom_protection_rule_compartment(ctx, from_json, custom_protection_rule_id, compartment_id, if_match): - if isinstance(custom_protection_rule_id, six.string_types) and len(custom_protection_rule_id.strip()) == 0: + if isinstance(custom_protection_rule_id, str) and len(custom_protection_rule_id.strip()) == 0: raise click.UsageError('Parameter --custom-protection-rule-id cannot be whitespace or empty string') kwargs = {} @@ -430,7 +429,7 @@ def change_custom_protection_rule_compartment(ctx, from_json, custom_protection_ @cli_util.wrap_exceptions def change_waas_policy_compartment(ctx, from_json, waas_policy_id, compartment_id, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -802,7 +801,7 @@ def create_waas_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_address_list(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, address_list_id, if_match): - if isinstance(address_list_id, six.string_types) and len(address_list_id.strip()) == 0: + if isinstance(address_list_id, str) and len(address_list_id.strip()) == 0: raise click.UsageError('Parameter --address-list-id cannot be whitespace or empty string') kwargs = {} @@ -866,7 +865,7 @@ def delete_address_list(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def delete_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, if_match): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -930,7 +929,7 @@ def delete_certificate(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def delete_custom_protection_rule(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, custom_protection_rule_id, if_match): - if isinstance(custom_protection_rule_id, six.string_types) and len(custom_protection_rule_id.strip()) == 0: + if isinstance(custom_protection_rule_id, str) and len(custom_protection_rule_id.strip()) == 0: raise click.UsageError('Parameter --custom-protection-rule-id cannot be whitespace or empty string') kwargs = {} @@ -994,7 +993,7 @@ def delete_custom_protection_rule(ctx, from_json, wait_for_state, max_wait_secon @cli_util.wrap_exceptions def delete_waas_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1045,7 +1044,7 @@ def delete_waas_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def get_address_list(ctx, from_json, address_list_id): - if isinstance(address_list_id, six.string_types) and len(address_list_id.strip()) == 0: + if isinstance(address_list_id, str) and len(address_list_id.strip()) == 0: raise click.UsageError('Parameter --address-list-id cannot be whitespace or empty string') kwargs = {} @@ -1067,7 +1066,7 @@ def get_address_list(ctx, from_json, address_list_id): @cli_util.wrap_exceptions def get_certificate(ctx, from_json, certificate_id): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') kwargs = {} @@ -1089,7 +1088,7 @@ def get_certificate(ctx, from_json, certificate_id): @cli_util.wrap_exceptions def get_custom_protection_rule(ctx, from_json, custom_protection_rule_id): - if isinstance(custom_protection_rule_id, six.string_types) and len(custom_protection_rule_id.strip()) == 0: + if isinstance(custom_protection_rule_id, str) and len(custom_protection_rule_id.strip()) == 0: raise click.UsageError('Parameter --custom-protection-rule-id cannot be whitespace or empty string') kwargs = {} @@ -1111,7 +1110,7 @@ def get_custom_protection_rule(ctx, from_json, custom_protection_rule_id): @cli_util.wrap_exceptions def get_device_fingerprint_challenge(ctx, from_json, waas_policy_id): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1133,7 +1132,7 @@ def get_device_fingerprint_challenge(ctx, from_json, waas_policy_id): @cli_util.wrap_exceptions def get_human_interaction_challenge(ctx, from_json, waas_policy_id): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1155,7 +1154,7 @@ def get_human_interaction_challenge(ctx, from_json, waas_policy_id): @cli_util.wrap_exceptions def get_js_challenge(ctx, from_json, waas_policy_id): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1177,7 +1176,7 @@ def get_js_challenge(ctx, from_json, waas_policy_id): @cli_util.wrap_exceptions def get_policy_config(ctx, from_json, waas_policy_id): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1200,10 +1199,10 @@ def get_policy_config(ctx, from_json, waas_policy_id): @cli_util.wrap_exceptions def get_protection_rule(ctx, from_json, waas_policy_id, protection_rule_key): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') - if isinstance(protection_rule_key, six.string_types) and len(protection_rule_key.strip()) == 0: + if isinstance(protection_rule_key, str) and len(protection_rule_key.strip()) == 0: raise click.UsageError('Parameter --protection-rule-key cannot be whitespace or empty string') kwargs = {} @@ -1226,7 +1225,7 @@ def get_protection_rule(ctx, from_json, waas_policy_id, protection_rule_key): @cli_util.wrap_exceptions def get_protection_settings(ctx, from_json, waas_policy_id): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1248,7 +1247,7 @@ def get_protection_settings(ctx, from_json, waas_policy_id): @cli_util.wrap_exceptions def get_waas_policy(ctx, from_json, waas_policy_id): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1270,7 +1269,7 @@ def get_waas_policy(ctx, from_json, waas_policy_id): @cli_util.wrap_exceptions def get_waf_address_rate_limiting(ctx, from_json, waas_policy_id): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1292,7 +1291,7 @@ def get_waf_address_rate_limiting(ctx, from_json, waas_policy_id): @cli_util.wrap_exceptions def get_waf_config(ctx, from_json, waas_policy_id): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1314,7 +1313,7 @@ def get_waf_config(ctx, from_json, waas_policy_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1343,7 +1342,7 @@ def list_access_rules(ctx, from_json, all_pages, page_size, waas_policy_id, limi if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1463,7 +1462,7 @@ def list_caching_rules(ctx, from_json, all_pages, page_size, waas_policy_id, lim if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1516,7 +1515,7 @@ def list_captchas(ctx, from_json, all_pages, page_size, waas_policy_id, limit, p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1757,7 +1756,7 @@ def list_good_bots(ctx, from_json, all_pages, page_size, waas_policy_id, limit, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1810,7 +1809,7 @@ def list_protection_rules(ctx, from_json, all_pages, page_size, waas_policy_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1868,7 +1867,7 @@ def list_recommendations(ctx, from_json, all_pages, page_size, waas_policy_id, r if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -1921,7 +1920,7 @@ def list_threat_feeds(ctx, from_json, all_pages, page_size, waas_policy_id, limi if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2043,7 +2042,7 @@ def list_waas_policy_custom_protection_rules(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2101,7 +2100,7 @@ def list_waf_blocked_requests(ctx, from_json, all_pages, page_size, waas_policy_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2177,7 +2176,7 @@ def list_waf_logs(ctx, from_json, all_pages, page_size, waas_policy_id, limit, p if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2268,7 +2267,7 @@ def list_waf_requests(ctx, from_json, all_pages, page_size, waas_policy_id, time if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2325,7 +2324,7 @@ def list_waf_traffic(ctx, from_json, all_pages, page_size, waas_policy_id, time_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2380,7 +2379,7 @@ def list_whitelists(ctx, from_json, all_pages, page_size, waas_policy_id, limit, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2487,7 +2486,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, waas_policy_id, com @cli_util.wrap_exceptions def purge_cache(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, if_match, resources): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2558,7 +2557,7 @@ def purge_cache(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_ @cli_util.wrap_exceptions def update_access_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, access_rules, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2623,7 +2622,7 @@ def update_access_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_address_list(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, address_list_id, if_match, display_name, addresses, freeform_tags, defined_tags): - if isinstance(address_list_id, six.string_types) and len(address_list_id.strip()) == 0: + if isinstance(address_list_id, str) and len(address_list_id.strip()) == 0: raise click.UsageError('Parameter --address-list-id cannot be whitespace or empty string') if not force: if addresses or freeform_tags or defined_tags: @@ -2701,7 +2700,7 @@ def update_address_list(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_caching_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, caching_rules_details, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2764,7 +2763,7 @@ def update_caching_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_ @cli_util.wrap_exceptions def update_captchas(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, captchas, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -2828,7 +2827,7 @@ def update_captchas(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def update_certificate(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, certificate_id, if_match, display_name, freeform_tags, defined_tags): - if isinstance(certificate_id, six.string_types) and len(certificate_id.strip()) == 0: + if isinstance(certificate_id, str) and len(certificate_id.strip()) == 0: raise click.UsageError('Parameter --certificate-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -2922,7 +2921,7 @@ def update_certificate(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_custom_protection_rule(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, custom_protection_rule_id, display_name, description, template, freeform_tags, defined_tags, if_match): - if isinstance(custom_protection_rule_id, six.string_types) and len(custom_protection_rule_id.strip()) == 0: + if isinstance(custom_protection_rule_id, str) and len(custom_protection_rule_id.strip()) == 0: raise click.UsageError('Parameter --custom-protection-rule-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags: @@ -3009,7 +3008,7 @@ def update_custom_protection_rule(ctx, from_json, force, wait_for_state, max_wai @cli_util.wrap_exceptions def update_device_fingerprint_challenge(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, is_enabled, action, failure_threshold, action_expiration_in_seconds, failure_threshold_expiration_in_seconds, max_address_count, max_address_count_expiration_in_seconds, challenge_settings, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if challenge_settings: @@ -3097,7 +3096,7 @@ def update_device_fingerprint_challenge(ctx, from_json, force, wait_for_state, m @cli_util.wrap_exceptions def update_good_bots(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, good_bots, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -3164,7 +3163,7 @@ def update_good_bots(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def update_human_interaction_challenge(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, is_enabled, action, failure_threshold, action_expiration_in_seconds, failure_threshold_expiration_in_seconds, interaction_threshold, recording_period_in_seconds, set_http_header, challenge_settings, is_nat_enabled, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if set_http_header or challenge_settings: @@ -3267,7 +3266,7 @@ def update_human_interaction_challenge(ctx, from_json, force, wait_for_state, ma @cli_util.wrap_exceptions def update_js_challenge(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, is_enabled, action, failure_threshold, action_expiration_in_seconds, set_http_header, challenge_settings, are_redirects_challenged, criteria, is_nat_enabled, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if set_http_header or challenge_settings or criteria: @@ -3394,7 +3393,7 @@ def update_js_challenge(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_policy_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, certificate_id, is_https_enabled, is_https_forced, tls_protocols, is_origin_compression_enabled, is_behind_cdn, client_address_header, is_cache_control_respected, is_response_buffering_enabled, cipher_group, load_balancing_method, websocket_path_prefixes, is_sni_enabled, health_checks, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if tls_protocols or load_balancing_method or websocket_path_prefixes or health_checks: @@ -3537,7 +3536,7 @@ def update_policy_config(ctx, from_json, force, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def update_policy_config_round_robin_load_balancing_method(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, certificate_id, is_https_enabled, is_https_forced, tls_protocols, is_origin_compression_enabled, is_behind_cdn, client_address_header, is_cache_control_respected, is_response_buffering_enabled, cipher_group, websocket_path_prefixes, is_sni_enabled, health_checks, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if tls_protocols or websocket_path_prefixes or health_checks: @@ -3683,7 +3682,7 @@ def update_policy_config_round_robin_load_balancing_method(ctx, from_json, force @cli_util.wrap_exceptions def update_policy_config_sticky_cookie_load_balancing_method(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, certificate_id, is_https_enabled, is_https_forced, tls_protocols, is_origin_compression_enabled, is_behind_cdn, client_address_header, is_cache_control_respected, is_response_buffering_enabled, cipher_group, websocket_path_prefixes, is_sni_enabled, health_checks, if_match, load_balancing_method_name, load_balancing_method_domain, load_balancing_method_expiration_time_in_seconds): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if tls_protocols or websocket_path_prefixes or health_checks: @@ -3835,7 +3834,7 @@ def update_policy_config_sticky_cookie_load_balancing_method(ctx, from_json, for @cli_util.wrap_exceptions def update_policy_config_ip_hash_load_balancing_method(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, certificate_id, is_https_enabled, is_https_forced, tls_protocols, is_origin_compression_enabled, is_behind_cdn, client_address_header, is_cache_control_respected, is_response_buffering_enabled, cipher_group, websocket_path_prefixes, is_sni_enabled, health_checks, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if tls_protocols or websocket_path_prefixes or health_checks: @@ -3941,7 +3940,7 @@ def update_policy_config_ip_hash_load_balancing_method(ctx, from_json, force, wa @cli_util.wrap_exceptions def update_protection_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, protection_rules, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -4021,7 +4020,7 @@ def update_protection_rules(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def update_protection_settings(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, block_action, block_response_code, block_error_page_message, block_error_page_code, block_error_page_description, max_argument_count, max_name_length_per_argument, max_total_name_length_of_arguments, recommendations_period_in_days, is_response_inspected, max_response_size_in_ki_b, allowed_http_methods, media_types, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if allowed_http_methods or media_types: @@ -4124,7 +4123,7 @@ def update_protection_settings(ctx, from_json, force, wait_for_state, max_wait_s @cli_util.wrap_exceptions def update_threat_feeds(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, threat_feeds, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -4197,7 +4196,7 @@ def update_threat_feeds(ctx, from_json, wait_for_state, max_wait_seconds, wait_i @cli_util.wrap_exceptions def update_waas_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, display_name, additional_domains, origins, origin_groups, policy_config, waf_config, freeform_tags, defined_tags, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if additional_domains or origins or origin_groups or policy_config or waf_config or freeform_tags or defined_tags: @@ -4285,7 +4284,7 @@ def update_waas_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, @cli_util.wrap_exceptions def update_waas_policy_custom_protection_rules(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, update_custom_protection_rules_details, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -4345,7 +4344,7 @@ def update_waas_policy_custom_protection_rules(ctx, from_json, wait_for_state, m @cli_util.wrap_exceptions def update_waf_address_rate_limiting(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, is_enabled, allowed_rate_per_address, max_delayed_count_per_address, block_response_code, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} @@ -4450,7 +4449,7 @@ def update_waf_address_rate_limiting(ctx, from_json, wait_for_state, max_wait_se @cli_util.wrap_exceptions def update_waf_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, access_rules, address_rate_limiting, captchas, device_fingerprint_challenge, good_bots, human_interaction_challenge, js_challenge, origin, caching_rules, custom_protection_rules, origin_groups, protection_rules, protection_settings, threat_feeds, whitelists, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if access_rules or address_rate_limiting or captchas or device_fingerprint_challenge or good_bots or human_interaction_challenge or js_challenge or caching_rules or custom_protection_rules or origin_groups or protection_rules or protection_settings or threat_feeds or whitelists: @@ -4567,7 +4566,7 @@ def update_waf_config(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_whitelists(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, whitelists, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/waas/src/oci_cli_waas/waas_cli_extended.py b/services/waas/src/oci_cli_waas/waas_cli_extended.py index 77b46230c..338eeaa2d 100644 --- a/services/waas/src/oci_cli_waas/waas_cli_extended.py +++ b/services/waas/src/oci_cli_waas/waas_cli_extended.py @@ -8,7 +8,6 @@ from oci_cli import cli_util from oci_cli import custom_types # noqa: F401 import sys # noqa: F401 -import six # noqa: F401 import oci # noqa: F401 from oci_cli import json_skeleton_utils from oci_cli.aliasing import CommandGroupWithAlias @@ -88,7 +87,7 @@ def update_address_list_extended(ctx, **kwargs): @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'load-balancing-method': {'module': 'waas', 'class': 'LoadBalancingMethod'}, 'websocket-path-prefixes': {'module': 'waas', 'class': 'list[string]'}, 'health-checks': {'module': 'waas', 'class': 'HealthCheck'}}) @cli_util.wrap_exceptions def update_policy_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, waas_policy_id, certificate_id, is_https_enabled, is_https_forced, tls_protocols, is_origin_compression_enabled, is_behind_cdn, client_address_header, is_cache_control_respected, is_response_buffering_enabled, cipher_group, load_balancing_method, websocket_path_prefixes, is_sni_enabled, health_checks, if_match): - if isinstance(waas_policy_id, six.string_types) and len(waas_policy_id.strip()) == 0: + if isinstance(waas_policy_id, str) and len(waas_policy_id.strip()) == 0: raise click.UsageError('Parameter --waas-policy-id cannot be whitespace or empty string') if not force: if tls_protocols or load_balancing_method or websocket_path_prefixes or health_checks: diff --git a/services/waf/src/oci_cli_waf/generated/waf_cli.py b/services/waf/src/oci_cli_waf/generated/waf_cli.py index c56536099..0e4c866eb 100644 --- a/services/waf/src/oci_cli_waf/generated/waf_cli.py +++ b/services/waf/src/oci_cli_waf/generated/waf_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -92,7 +91,7 @@ def network_address_list_group(): @cli_util.wrap_exceptions def change_network_address_list_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_address_list_id, compartment_id, if_match): - if isinstance(network_address_list_id, six.string_types) and len(network_address_list_id.strip()) == 0: + if isinstance(network_address_list_id, str) and len(network_address_list_id.strip()) == 0: raise click.UsageError('Parameter --network-address-list-id cannot be whitespace or empty string') kwargs = {} @@ -153,7 +152,7 @@ def change_network_address_list_compartment(ctx, from_json, wait_for_state, max_ @cli_util.wrap_exceptions def change_web_app_firewall_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_firewall_id, compartment_id, if_match): - if isinstance(web_app_firewall_id, six.string_types) and len(web_app_firewall_id.strip()) == 0: + if isinstance(web_app_firewall_id, str) and len(web_app_firewall_id.strip()) == 0: raise click.UsageError('Parameter --web-app-firewall-id cannot be whitespace or empty string') kwargs = {} @@ -214,7 +213,7 @@ def change_web_app_firewall_compartment(ctx, from_json, wait_for_state, max_wait @cli_util.wrap_exceptions def change_web_app_firewall_policy_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_firewall_policy_id, compartment_id, if_match): - if isinstance(web_app_firewall_policy_id, six.string_types) and len(web_app_firewall_policy_id.strip()) == 0: + if isinstance(web_app_firewall_policy_id, str) and len(web_app_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --web-app-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -735,7 +734,7 @@ def create_web_app_firewall_policy(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def delete_network_address_list(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, network_address_list_id, if_match): - if isinstance(network_address_list_id, six.string_types) and len(network_address_list_id.strip()) == 0: + if isinstance(network_address_list_id, str) and len(network_address_list_id.strip()) == 0: raise click.UsageError('Parameter --network-address-list-id cannot be whitespace or empty string') kwargs = {} @@ -791,7 +790,7 @@ def delete_network_address_list(ctx, from_json, wait_for_state, max_wait_seconds @cli_util.wrap_exceptions def delete_web_app_firewall(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_firewall_id, if_match): - if isinstance(web_app_firewall_id, six.string_types) and len(web_app_firewall_id.strip()) == 0: + if isinstance(web_app_firewall_id, str) and len(web_app_firewall_id.strip()) == 0: raise click.UsageError('Parameter --web-app-firewall-id cannot be whitespace or empty string') kwargs = {} @@ -847,7 +846,7 @@ def delete_web_app_firewall(ctx, from_json, wait_for_state, max_wait_seconds, wa @cli_util.wrap_exceptions def delete_web_app_firewall_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_firewall_policy_id, if_match): - if isinstance(web_app_firewall_policy_id, six.string_types) and len(web_app_firewall_policy_id.strip()) == 0: + if isinstance(web_app_firewall_policy_id, str) and len(web_app_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --web-app-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -898,7 +897,7 @@ def delete_web_app_firewall_policy(ctx, from_json, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def get_network_address_list(ctx, from_json, network_address_list_id): - if isinstance(network_address_list_id, six.string_types) and len(network_address_list_id.strip()) == 0: + if isinstance(network_address_list_id, str) and len(network_address_list_id.strip()) == 0: raise click.UsageError('Parameter --network-address-list-id cannot be whitespace or empty string') kwargs = {} @@ -920,7 +919,7 @@ def get_network_address_list(ctx, from_json, network_address_list_id): @cli_util.wrap_exceptions def get_web_app_firewall(ctx, from_json, web_app_firewall_id): - if isinstance(web_app_firewall_id, six.string_types) and len(web_app_firewall_id.strip()) == 0: + if isinstance(web_app_firewall_id, str) and len(web_app_firewall_id.strip()) == 0: raise click.UsageError('Parameter --web-app-firewall-id cannot be whitespace or empty string') kwargs = {} @@ -942,7 +941,7 @@ def get_web_app_firewall(ctx, from_json, web_app_firewall_id): @cli_util.wrap_exceptions def get_web_app_firewall_policy(ctx, from_json, web_app_firewall_policy_id): - if isinstance(web_app_firewall_policy_id, six.string_types) and len(web_app_firewall_policy_id.strip()) == 0: + if isinstance(web_app_firewall_policy_id, str) and len(web_app_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --web-app-firewall-policy-id cannot be whitespace or empty string') kwargs = {} @@ -964,7 +963,7 @@ def get_web_app_firewall_policy(ctx, from_json, web_app_firewall_policy_id): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1314,7 +1313,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1365,7 +1364,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1470,7 +1469,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def update_network_address_list(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_address_list_id, type, display_name, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(network_address_list_id, six.string_types) and len(network_address_list_id.strip()) == 0: + if isinstance(network_address_list_id, str) and len(network_address_list_id.strip()) == 0: raise click.UsageError('Parameter --network-address-list-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: @@ -1552,7 +1551,7 @@ def update_network_address_list(ctx, from_json, force, wait_for_state, max_wait_ @cli_util.wrap_exceptions def update_network_address_list_update_network_address_list_addresses_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_address_list_id, display_name, freeform_tags, defined_tags, system_tags, addresses, if_match): - if isinstance(network_address_list_id, six.string_types) and len(network_address_list_id.strip()) == 0: + if isinstance(network_address_list_id, str) and len(network_address_list_id.strip()) == 0: raise click.UsageError('Parameter --network-address-list-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags or addresses: @@ -1640,7 +1639,7 @@ def update_network_address_list_update_network_address_list_addresses_details(ct @cli_util.wrap_exceptions def update_network_address_list_update_network_address_list_vcn_addresses_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, network_address_list_id, display_name, freeform_tags, defined_tags, system_tags, vcn_addresses, if_match): - if isinstance(network_address_list_id, six.string_types) and len(network_address_list_id.strip()) == 0: + if isinstance(network_address_list_id, str) and len(network_address_list_id.strip()) == 0: raise click.UsageError('Parameter --network-address-list-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags or vcn_addresses: @@ -1726,7 +1725,7 @@ def update_network_address_list_update_network_address_list_vcn_addresses_detail @cli_util.wrap_exceptions def update_web_app_firewall(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_firewall_id, display_name, web_app_firewall_policy_id, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(web_app_firewall_id, six.string_types) and len(web_app_firewall_id.strip()) == 0: + if isinstance(web_app_firewall_id, str) and len(web_app_firewall_id.strip()) == 0: raise click.UsageError('Parameter --web-app-firewall-id cannot be whitespace or empty string') if not force: if freeform_tags or defined_tags or system_tags: @@ -1817,7 +1816,7 @@ def update_web_app_firewall(ctx, from_json, force, wait_for_state, max_wait_seco @cli_util.wrap_exceptions def update_web_app_firewall_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, web_app_firewall_policy_id, display_name, actions, request_access_control, request_rate_limiting, request_protection, response_access_control, response_protection, freeform_tags, defined_tags, system_tags, if_match): - if isinstance(web_app_firewall_policy_id, six.string_types) and len(web_app_firewall_policy_id.strip()) == 0: + if isinstance(web_app_firewall_policy_id, str) and len(web_app_firewall_policy_id.strip()) == 0: raise click.UsageError('Parameter --web-app-firewall-policy-id cannot be whitespace or empty string') if not force: if actions or request_access_control or request_rate_limiting or request_protection or response_access_control or response_protection or freeform_tags or defined_tags or system_tags: diff --git a/services/wlms/src/oci_cli_weblogic_management_service/generated/weblogicmanagementservice_cli.py b/services/wlms/src/oci_cli_weblogic_management_service/generated/weblogicmanagementservice_cli.py index 051c7e3e1..c2b8f7364 100644 --- a/services/wlms/src/oci_cli_weblogic_management_service/generated/weblogicmanagementservice_cli.py +++ b/services/wlms/src/oci_cli_weblogic_management_service/generated/weblogicmanagementservice_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util @@ -86,7 +85,7 @@ def work_request_group(): @cli_util.wrap_exceptions def change_wls_domain_compartment(ctx, from_json, wls_domain_id, compartment_id, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -118,7 +117,7 @@ def change_wls_domain_compartment(ctx, from_json, wls_domain_id, compartment_id, @cli_util.wrap_exceptions def create_agreement_record(ctx, from_json, agreement_uuid, agreement_signature, wls_domain_id, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -153,7 +152,7 @@ def create_agreement_record(ctx, from_json, agreement_uuid, agreement_signature, @cli_util.wrap_exceptions def delete_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, wls_domain_id, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -229,7 +228,7 @@ def get_agreement(ctx, from_json, ): @cli_util.wrap_exceptions def get_managed_instance(ctx, from_json, managed_instance_id): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -254,10 +253,10 @@ def get_managed_instance(ctx, from_json, managed_instance_id): @cli_util.wrap_exceptions def get_managed_instance_server(ctx, from_json, managed_instance_id, server_id): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') - if isinstance(server_id, six.string_types) and len(server_id.strip()) == 0: + if isinstance(server_id, str) and len(server_id.strip()) == 0: raise click.UsageError('Parameter --server-id cannot be whitespace or empty string') kwargs = {} @@ -280,7 +279,7 @@ def get_managed_instance_server(ctx, from_json, managed_instance_id, server_id): @cli_util.wrap_exceptions def get_wls_domain(ctx, from_json, wls_domain_id): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -303,10 +302,10 @@ def get_wls_domain(ctx, from_json, wls_domain_id): @cli_util.wrap_exceptions def get_wls_domain_credential(ctx, from_json, wls_domain_id, credential_type): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') - if isinstance(credential_type, six.string_types) and len(credential_type.strip()) == 0: + if isinstance(credential_type, str) and len(credential_type.strip()) == 0: raise click.UsageError('Parameter --credential-type cannot be whitespace or empty string') kwargs = {} @@ -332,10 +331,10 @@ def get_wls_domain_credential(ctx, from_json, wls_domain_id, credential_type): @cli_util.wrap_exceptions def get_wls_domain_server(ctx, from_json, wls_domain_id, server_id): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') - if isinstance(server_id, six.string_types) and len(server_id.strip()) == 0: + if isinstance(server_id, str) and len(server_id.strip()) == 0: raise click.UsageError('Parameter --server-id cannot be whitespace or empty string') kwargs = {} @@ -364,13 +363,13 @@ def get_wls_domain_server(ctx, from_json, wls_domain_id, server_id): @cli_util.wrap_exceptions def get_wls_domain_server_backup(ctx, from_json, wls_domain_id, server_id, backup_id): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') - if isinstance(server_id, six.string_types) and len(server_id.strip()) == 0: + if isinstance(server_id, str) and len(server_id.strip()) == 0: raise click.UsageError('Parameter --server-id cannot be whitespace or empty string') - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -400,13 +399,13 @@ def get_wls_domain_server_backup(ctx, from_json, wls_domain_id, server_id, backu @cli_util.wrap_exceptions def get_wls_domain_server_backup_content(ctx, from_json, wls_domain_id, server_id, backup_id): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') - if isinstance(server_id, six.string_types) and len(server_id.strip()) == 0: + if isinstance(server_id, str) and len(server_id.strip()) == 0: raise click.UsageError('Parameter --server-id cannot be whitespace or empty string') - if isinstance(backup_id, six.string_types) and len(backup_id.strip()) == 0: + if isinstance(backup_id, str) and len(backup_id.strip()) == 0: raise click.UsageError('Parameter --backup-id cannot be whitespace or empty string') kwargs = {} @@ -430,7 +429,7 @@ def get_wls_domain_server_backup_content(ctx, from_json, wls_domain_id, server_i @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -458,7 +457,7 @@ def get_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def install_latest_patches_on_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, wls_domain_id, is_force_servers_shutdown, must_include_domains_sharing_middleware, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -528,7 +527,7 @@ def list_agreement_records(ctx, from_json, all_pages, page_size, wls_domain_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -585,7 +584,7 @@ def list_applicable_patches(ctx, from_json, all_pages, page_size, wls_domain_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -644,7 +643,7 @@ def list_managed_instance_scan_results(ctx, from_json, all_pages, page_size, man if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -708,10 +707,10 @@ def list_managed_instance_server_installed_patches(ctx, from_json, all_pages, pa if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') - if isinstance(server_id, six.string_types) and len(server_id.strip()) == 0: + if isinstance(server_id, str) and len(server_id.strip()) == 0: raise click.UsageError('Parameter --server-id cannot be whitespace or empty string') kwargs = {} @@ -772,7 +771,7 @@ def list_managed_instance_servers(ctx, from_json, all_pages, page_size, managed_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -903,7 +902,7 @@ def list_required_policies(ctx, from_json, all_pages, ): @cli_util.wrap_exceptions def list_wls_domain_credentials(ctx, from_json, all_pages, wls_domain_id): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -935,7 +934,7 @@ def list_wls_domain_scan_results(ctx, from_json, all_pages, page_size, wls_domai if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -997,10 +996,10 @@ def list_wls_domain_server_backups(ctx, from_json, all_pages, page_size, wls_dom if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') - if isinstance(server_id, six.string_types) and len(server_id.strip()) == 0: + if isinstance(server_id, str) and len(server_id.strip()) == 0: raise click.UsageError('Parameter --server-id cannot be whitespace or empty string') kwargs = {} @@ -1063,10 +1062,10 @@ def list_wls_domain_server_installed_patches(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') - if isinstance(server_id, six.string_types) and len(server_id.strip()) == 0: + if isinstance(server_id, str) and len(server_id.strip()) == 0: raise click.UsageError('Parameter --server-id cannot be whitespace or empty string') kwargs = {} @@ -1127,7 +1126,7 @@ def list_wls_domain_servers(ctx, from_json, all_pages, page_size, wls_domain_id, if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1257,7 +1256,7 @@ def list_wls_domains_sharing_middlewares(ctx, from_json, all_pages, page_size, w if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1314,7 +1313,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1371,7 +1370,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -1486,7 +1485,7 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor @cli_util.wrap_exceptions def restart_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, wls_domain_id, is_force_servers_shutdown, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1553,7 +1552,7 @@ def restart_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def restore_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, wls_domain_id, is_force_servers_shutdown, must_include_domains_sharing_middleware, servers_to_restore, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1621,7 +1620,7 @@ def restore_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_in @cli_util.wrap_exceptions def scan_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, managed_instance_id, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') kwargs = {} @@ -1676,7 +1675,7 @@ def scan_managed_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait @cli_util.wrap_exceptions def scan_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, wls_domain_id, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1729,7 +1728,7 @@ def scan_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter @cli_util.wrap_exceptions def set_restart_order(ctx, from_json, wls_domain_id, servers, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1762,7 +1761,7 @@ def set_restart_order(ctx, from_json, wls_domain_id, servers, if_match): @cli_util.wrap_exceptions def start_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, wls_domain_id, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1818,7 +1817,7 @@ def start_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte @cli_util.wrap_exceptions def stop_wls_domain(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, wls_domain_id, is_force_servers_shutdown, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') kwargs = {} @@ -1898,7 +1897,7 @@ def summarize_resource_inventory(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def update_managed_instance(ctx, from_json, force, managed_instance_id, configuration, if_match): - if isinstance(managed_instance_id, six.string_types) and len(managed_instance_id.strip()) == 0: + if isinstance(managed_instance_id, str) and len(managed_instance_id.strip()) == 0: raise click.UsageError('Parameter --managed-instance-id cannot be whitespace or empty string') if not force: if configuration: @@ -1945,7 +1944,7 @@ def update_managed_instance(ctx, from_json, force, managed_instance_id, configur @cli_util.wrap_exceptions def update_wls_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, wls_domain_id, configuration, defined_tags, freeform_tags, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') if not force: if configuration or defined_tags or freeform_tags: @@ -2014,10 +2013,10 @@ def update_wls_domain(ctx, from_json, force, wait_for_state, max_wait_seconds, w @cli_util.wrap_exceptions def update_wls_domain_credential(ctx, from_json, wls_domain_id, credential_type, strategy, user_secret_id, password_secret_id, if_match): - if isinstance(wls_domain_id, six.string_types) and len(wls_domain_id.strip()) == 0: + if isinstance(wls_domain_id, str) and len(wls_domain_id.strip()) == 0: raise click.UsageError('Parameter --wls-domain-id cannot be whitespace or empty string') - if isinstance(credential_type, six.string_types) and len(credential_type.strip()) == 0: + if isinstance(credential_type, str) and len(credential_type.strip()) == 0: raise click.UsageError('Parameter --credential-type cannot be whitespace or empty string') kwargs = {} diff --git a/services/wlms/src/oci_cli_weblogic_management_service_configuration/generated/weblogicmanagementserviceconfiguration_cli.py b/services/wlms/src/oci_cli_weblogic_management_service_configuration/generated/weblogicmanagementserviceconfiguration_cli.py index f8963095d..688a9160e 100644 --- a/services/wlms/src/oci_cli_weblogic_management_service_configuration/generated/weblogicmanagementserviceconfiguration_cli.py +++ b/services/wlms/src/oci_cli_weblogic_management_service_configuration/generated/weblogicmanagementserviceconfiguration_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli import cli_constants # noqa: F401 from oci_cli import cli_util diff --git a/services/work_requests/src/oci_cli_work_request/generated/workrequest_cli.py b/services/work_requests/src/oci_cli_work_request/generated/workrequest_cli.py index b35665423..806ad9671 100644 --- a/services/work_requests/src/oci_cli_work_request/generated/workrequest_cli.py +++ b/services/work_requests/src/oci_cli_work_request/generated/workrequest_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -59,7 +58,7 @@ def work_request_group(): @cli_util.wrap_exceptions def get_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -89,7 +88,7 @@ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_ if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -143,7 +142,7 @@ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} diff --git a/services/zpr/src/oci_cli_zpr/generated/zpr_cli.py b/services/zpr/src/oci_cli_zpr/generated/zpr_cli.py index c047d9b1d..8e06b78d8 100644 --- a/services/zpr/src/oci_cli_zpr/generated/zpr_cli.py +++ b/services/zpr/src/oci_cli_zpr/generated/zpr_cli.py @@ -6,7 +6,6 @@ from __future__ import print_function import click import oci # noqa: F401 -import six # noqa: F401 import sys # noqa: F401 from oci_cli.cli_root import cli from oci_cli import cli_constants # noqa: F401 @@ -229,7 +228,7 @@ def create_zpr_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_int @cli_util.wrap_exceptions def delete_zpr_policy(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, zpr_policy_id, if_match, opc_dry_run): - if isinstance(zpr_policy_id, six.string_types) and len(zpr_policy_id.strip()) == 0: + if isinstance(zpr_policy_id, str) and len(zpr_policy_id.strip()) == 0: raise click.UsageError('Parameter --zpr-policy-id cannot be whitespace or empty string') kwargs = {} @@ -302,7 +301,7 @@ def get_configuration(ctx, from_json, compartment_id): @cli_util.wrap_exceptions def get_zpr_configuration_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -324,7 +323,7 @@ def get_zpr_configuration_work_request(ctx, from_json, work_request_id): @cli_util.wrap_exceptions def get_zpr_policy(ctx, from_json, zpr_policy_id): - if isinstance(zpr_policy_id, six.string_types) and len(zpr_policy_id.strip()) == 0: + if isinstance(zpr_policy_id, str) and len(zpr_policy_id.strip()) == 0: raise click.UsageError('Parameter --zpr-policy-id cannot be whitespace or empty string') kwargs = {} @@ -346,7 +345,7 @@ def get_zpr_policy(ctx, from_json, zpr_policy_id): @cli_util.wrap_exceptions def get_zpr_policy_work_request(ctx, from_json, work_request_id): - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -377,7 +376,7 @@ def list_zpr_configuration_work_request_errors(ctx, from_json, all_pages, page_s if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -434,7 +433,7 @@ def list_zpr_configuration_work_request_logs(ctx, from_json, all_pages, page_siz if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -615,7 +614,7 @@ def list_zpr_policy_work_request_errors(ctx, from_json, all_pages, page_size, wo if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -672,7 +671,7 @@ def list_zpr_policy_work_request_logs(ctx, from_json, all_pages, page_size, work if all_pages and limit: raise click.UsageError('If you provide the --all option you cannot provide the --limit option') - if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0: + if isinstance(work_request_id, str) and len(work_request_id.strip()) == 0: raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string') kwargs = {} @@ -796,7 +795,7 @@ def list_zpr_policy_work_requests(ctx, from_json, all_pages, page_size, compartm @cli_util.wrap_exceptions def update_zpr_policy(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, zpr_policy_id, description, statements, freeform_tags, defined_tags, if_match, opc_dry_run): - if isinstance(zpr_policy_id, six.string_types) and len(zpr_policy_id.strip()) == 0: + if isinstance(zpr_policy_id, str) and len(zpr_policy_id.strip()) == 0: raise click.UsageError('Parameter --zpr-policy-id cannot be whitespace or empty string') if not force: if statements or freeform_tags or defined_tags: diff --git a/setup.py b/setup.py index 2a113f25a..f157337f7 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,6 @@ def open_relative(*path): 'jmespath>=0.10.0,<=1.0.1', 'python-dateutil>=2.5.3,<3.0.0', 'pytz>=2016.10,<=2026.2', - 'six>=1.15.0,<2.0.0', 'terminaltables==3.1.10', 'pyOpenSSL>=17.5.0,<22.0.0; python_version <= "3.7"', 'pyOpenSSL>=26.2.0,<27.0.0; python_version >= "3.8"', diff --git a/src/oci_cli/aliasing/parameter_alias.py b/src/oci_cli/aliasing/parameter_alias.py index c56563adf..55682c1c0 100644 --- a/src/oci_cli/aliasing/parameter_alias.py +++ b/src/oci_cli/aliasing/parameter_alias.py @@ -4,7 +4,6 @@ from copy import deepcopy import click -import six ALIASES = {} @@ -19,7 +18,7 @@ def get_aliases_for_long_parameter(long_param_name): def shim_in_aliases(command_group): remove_redundant_aliases() collision_errors = set() - for cmd_name, cmd_obj in six.iteritems(command_group.commands): + for cmd_name, cmd_obj in command_group.commands.items(): if isinstance(cmd_obj, click.Group): collision_errors.update(shim_in_aliases(cmd_obj)) elif isinstance(cmd_obj, click.Command): @@ -50,7 +49,7 @@ def add_alias_to_command_params(params): def does_option_name_already_exist(original_opts, param_name, aliases): - for param, opts in six.iteritems(original_opts): + for param, opts in original_opts.items(): if param == param_name: continue diff --git a/src/oci_cli/cli_root.py b/src/oci_cli/cli_root.py index c303cfd20..513690e78 100644 --- a/src/oci_cli/cli_root.py +++ b/src/oci_cli/cli_root.py @@ -13,7 +13,6 @@ import os.path # noqa: E402 import logging # noqa: E402 from oci.util import Sentinel # noqa: E402 -import six # noqa: E402 import importlib # noqa: E402 import re # noqa: E402 from oci_cli.version import __version__ # noqa: E402 @@ -635,7 +634,7 @@ def is_top_level_help(ctx): return False top_level_command_tuples = [] - for cmd_name, cmd_obj in six.iteritems(ctx.command.commands): + for cmd_name, cmd_obj in ctx.command.commands.items(): if isinstance(cmd_obj, click.Group): top_level_command_tuples.append((cmd_name, cmd_obj)) diff --git a/src/oci_cli/cli_session.py b/src/oci_cli/cli_session.py index d380aee4e..7e3cf40a4 100644 --- a/src/oci_cli/cli_session.py +++ b/src/oci_cli/cli_session.py @@ -16,7 +16,6 @@ import oci import os from oci._vendor import requests -import six from shutil import copy, make_archive, rmtree import sys import tempfile @@ -329,7 +328,7 @@ def export(ctx, output_file, force): config[profile] = translate_config_filepaths_to_prefix(profile_to_export) config.write(export_config_file) - for key, value in six.iteritems(profile_to_export): + for key, value in profile_to_export.items(): if key.endswith((CONFIG_KEY_FILE_SUFFIX, TOKEN_FILE_SUFFIX)): copy(os.path.expanduser(value), temp_dir_name) @@ -406,7 +405,7 @@ def import_session(ctx, session_archive, force): os.makedirs(imported_resources_dir) # copy referenced files from archived config to imported_resources_dir - for key, value in six.iteritems(archived_profile): + for key, value in archived_profile.items(): if key.endswith((CONFIG_KEY_FILE_SUFFIX, TOKEN_FILE_SUFFIX)): # there is no nesting in the archive so the config will always reference the filename directly new_file_location = os.path.join(imported_resources_dir, value) @@ -433,7 +432,7 @@ def import_session(ctx, session_archive, force): def translate_config_filepaths_to_prefix(config, prefix=''): translated_config = {} - for key, value in six.iteritems(config): + for key, value in config.items(): if key.endswith((CONFIG_KEY_FILE_SUFFIX, TOKEN_FILE_SUFFIX)): basename = os.path.basename(value) translated_config[key] = os.path.join(prefix, basename) diff --git a/src/oci_cli/cli_util.py b/src/oci_cli/cli_util.py index f13c4a1ce..f088b4524 100644 --- a/src/oci_cli/cli_util.py +++ b/src/oci_cli/cli_util.py @@ -19,7 +19,6 @@ import os.path import pytz import re -import six import stat import subprocess import sys @@ -792,7 +791,7 @@ def render(data, headers, ctx, display_all_headers=False, nest_data_in_data_attr output_memory('total memory usage before printing: ') if ctx.obj['output'] == "json": - if ctx.obj['raw_output'] and isinstance(display_data, six.string_types): + if ctx.obj['raw_output'] and isinstance(display_data, str): print(display_data) else: start_format = timer() @@ -847,7 +846,7 @@ def render(data, headers, ctx, display_all_headers=False, nest_data_in_data_attr def print_table(data): table_data = [] - if isinstance(data, six.string_types): + if isinstance(data, str): # if data is just a raw string, hard code the column header to 'Column1' table_data.append(['Column1']) table_data.append([data]) @@ -856,7 +855,7 @@ def print_table(data): click.echo("Command returned empty list, no table to display.") return - if isinstance(data[0], six.string_types): + if isinstance(data[0], str): # handle strings so they dont get handled as a list below table_data = [["Column1"]] for row in data: @@ -914,7 +913,7 @@ def to_dict(obj): key only. """ # Shortcut strings so they don't count as Iterables - if isinstance(obj, six.string_types): + if isinstance(obj, str): return obj elif isinstance(obj, (datetime.datetime, datetime.time)): # always use UTC @@ -928,7 +927,7 @@ def to_dict(obj): # datetime.date doesn't have a timezone return obj.isoformat() elif isinstance(obj, abc.Mapping): - return {k: to_dict(v) for k, v in six.iteritems(obj)} + return {k: to_dict(v) for k, v in obj.items()} elif isinstance(obj, abc.Iterable): return [to_dict(v) for v in obj] # Not a string, datetime, dict, list, or model - return directly @@ -937,7 +936,7 @@ def to_dict(obj): # Collect attrs from obj according to swagger_types into a dict as_dict = {} - for key in six.iterkeys(obj.swagger_types): + for key in obj.swagger_types.keys(): value = getattr(obj, key, missing_attr) if value is not missing_attr: key = key.replace("_", "-") @@ -1050,7 +1049,7 @@ def parse_json_parameter(parameter_name, parameter_value, default=None, camelize # Can't parse something which isn't a string, so just return it as-is. We'd hit this flow if we had already # pre-parsed the data, such as when we provide the input via --from-json, since that already parses out the JSON - if not isinstance(parameter_value, six.string_types): + if not isinstance(parameter_value, str): return parameter_value # Try to load from a file first. If we couldn't (e.g. because the parameter didn't specify a file) then @@ -1095,7 +1094,7 @@ def parse_json_parameter(parameter_name, parameter_value, default=None, camelize # - parameter_name can be used to look up the type from the metadata of (complex) types against each command. This metadata is decorated via # @json_skeleton_utils.json_skeleton_generation_handler on each command def make_dict_keys_camel_case(original_obj, parameter_name=None, complex_parameter_type=None): - if isinstance(original_obj, six.string_types): + if isinstance(original_obj, str): return original_obj if not isinstance(original_obj, abc.Mapping) and not isinstance(original_obj, abc.Iterable): @@ -1122,7 +1121,7 @@ def make_dict_keys_camel_case(original_obj, parameter_name=None, complex_paramet camelize_keys = False new_dict = {} - for key, value in six.iteritems(original_obj): + for key, value in original_obj.items(): camelized_key = string_utils.camelize(key) @@ -1226,7 +1225,7 @@ def get_possible_subtype_based_on_payload(declared_type, module, payload): if hasattr(declared_type, 'get_subtype'): # get_subtype method checks the discriminator field on the input object to determine which type it is # it expects the keys to be camelized so thus we are passing in camelized_top_level_keys instead of just original_obj - camelized_top_level_keys = {string_utils.camelize(key): value for key, value in six.iteritems(payload)} + camelized_top_level_keys = {string_utils.camelize(key): value for key, value in payload.items()} subtype_name_of_input_data = declared_type.get_subtype(camelized_top_level_keys) subtype_of_input_data = getattr(getattr(getattr(oci, module), 'models'), subtype_name_of_input_data) return subtype_of_input_data() @@ -1277,7 +1276,7 @@ def collect_commands(command): if not hasattr(command, "commands"): yield command else: - for _, subcommand in six.iteritems(command.commands): + for _, subcommand in command.commands.items(): for descendent in collect_commands(subcommand): descendent.parent = subcommand yield descendent @@ -1286,7 +1285,7 @@ def collect_commands(command): def filter_object_headers(headers, whitelist): """Filter headers based on the whitelist.""" whitelist = [x.lower() for x in whitelist] - return {h.lower(): v for h, v in six.iteritems(headers) if h.lower() in whitelist} + return {h.lower(): v for h, v in headers.items() if h.lower() in whitelist} def help_callback(ctx, param, value): @@ -1358,7 +1357,7 @@ def serialize_key(private_key=None, public_key=None, passphrase=None): if private_key: if passphrase: - if isinstance(passphrase, six.string_types): + if isinstance(passphrase, str): passphrase = passphrase.encode("ascii") encryption_algorithm = serialization.BestAvailableEncryption(passphrase) else: @@ -1404,7 +1403,7 @@ def copy_params(extended_func): def load_file_contents(path): file_contents = None - if isinstance(path, six.string_types): + if isinstance(path, str): for prefix, function_spec in FILE_LOAD_PREFIX_MAP.items(): # Case insenstive prefix check if path.lower().startswith(prefix): @@ -1648,7 +1647,7 @@ def convert_value_from_param_type(value, param_type, param_takes_multiple): return value # Expansion only really makes sense for strings - if isinstance(value, six.string_types): + if isinstance(value, str): expanded_value = os.path.expandvars(value) else: expanded_value = value @@ -1679,7 +1678,7 @@ def convert_value_from_param_type_accepting_multiple(value, param_type): # Since our splitting into multiples relies on a string split, we can't do anything if it's # not a string - if not isinstance(value, six.string_types): + if not isinstance(value, str): if isinstance(value, abc.Iterable): return value else: @@ -1813,7 +1812,7 @@ def get_spec_name_from_command_name(command_name, link_replacements={}, generate if command_name not in update_list_of_command_names_to_spec_names: # first check if we override the codegen root command name to something else in cli_util GROUP_NAME_OVERRIDE_SUFFIX = '_root_group.command_name' - for key, value in six.iteritems(OVERRIDES): + for key, value in OVERRIDES.items(): if key.endswith(GROUP_NAME_OVERRIDE_SUFFIX): if value == command_name: # all command names from the codegen will have '-' instead of '_' so diff --git a/src/oci_cli/custom_types/cli_datetime.py b/src/oci_cli/custom_types/cli_datetime.py index 7a098f9e4..46e4942e8 100644 --- a/src/oci_cli/custom_types/cli_datetime.py +++ b/src/oci_cli/custom_types/cli_datetime.py @@ -5,7 +5,6 @@ import arrow import click import re -import six class CliDatetime(click.ParamType): @@ -305,7 +304,7 @@ def convert(self, value, param, ctx): if value is None: return None - if not isinstance(value, six.string_types): + if not isinstance(value, str): raise click.BadParameter('Value {} is not a valid datetime. {}'.format(value, self.VALID_DATETIME_EXCEPTION_MESSAGE)) if value.isdigit(): diff --git a/src/oci_cli/custom_types/object_storage_bulk_operation_output.py b/src/oci_cli/custom_types/object_storage_bulk_operation_output.py index b1bf07572..9fc357a8c 100644 --- a/src/oci_cli/custom_types/object_storage_bulk_operation_output.py +++ b/src/oci_cli/custom_types/object_storage_bulk_operation_output.py @@ -4,8 +4,6 @@ from .. import cli_util -import six - class BulkObjectStorageOperationOutput(object): def __init__(self): @@ -64,12 +62,12 @@ def get_output(self, output_format): elif output_format == 'table': consolidated_result = [] - for uploaded_object, result in six.iteritems(self._uploaded): + for uploaded_object, result in self._uploaded.items(): output_result = {'action': 'Uploaded', 'name': uploaded_object, 'type': 'file'} output_result.update(result) consolidated_result.append(output_result) - for uploaded_object, failure in six.iteritems(self._failures): + for uploaded_object, failure in self._failures.items(): consolidated_result.append({ 'action': 'Failed', 'name': uploaded_object, @@ -114,7 +112,7 @@ def get_output(self, output_format): 'type': 'object' }) - for downloaded_obj, failure in six.iteritems(self._failures): + for downloaded_obj, failure in self._failures.items(): consolidated_result.append({ 'action': 'Failed', 'name': downloaded_obj, @@ -151,7 +149,7 @@ def get_output(self, output_format, dry_run=False): elif output_format == 'table': consolidated_result = [] - for deleted_obj, failure in six.iteritems(self._failures): + for deleted_obj, failure in self._failures.items(): consolidated_result.append({ 'action': 'Failed', self._type: deleted_obj, diff --git a/src/oci_cli/formatting.py b/src/oci_cli/formatting.py index 41c689c9b..b5c45d0b2 100644 --- a/src/oci_cli/formatting.py +++ b/src/oci_cli/formatting.py @@ -2,7 +2,6 @@ # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # 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. -import six import terminaltables error_hints = { @@ -23,7 +22,7 @@ def render_config_errors(config_exception): # (key, code, hint) pieces = [ [param, code, error_hints.get((param, code), "")] - for (param, code) in six.iteritems(config_exception.errors) + for (param, code) in config_exception.errors.items() ] data = [headers] + pieces # TODO include config_file name? diff --git a/src/oci_cli/json_skeleton_utils.py b/src/oci_cli/json_skeleton_utils.py index 0ace4b717..85632a650 100644 --- a/src/oci_cli/json_skeleton_utils.py +++ b/src/oci_cli/json_skeleton_utils.py @@ -6,7 +6,6 @@ import functools import json import re -import six import sys from oci_cli import cli_util @@ -207,7 +206,7 @@ def generate_input_dict_for_skeleton(ctx, targeted_complex_param=None): # Complex parameters represent some sort of model type or at least something non-primitive like a list or a dict so # we'll represent them as a nested object inside the dict generated by this method - for attr_name, complex_param_entry in six.iteritems(input_params_to_complex_types): + for attr_name, complex_param_entry in input_params_to_complex_types.items(): tags_obj = get_example_object_for_tags(attr_name) if tags_obj: input_as_dict[camelize(attr_name)] = tags_obj @@ -362,7 +361,7 @@ def cli_json_input_callback(ctx, param, value): if ctx.default_map is None: ctx.default_map = {} - for key, val in six.iteritems(parsed_json): + for key, val in parsed_json.items(): # Even if parsed_json[key] represents a JSON object or an array of JSON objects, we will leave their keys as-is without # converting them to underscores. The reason for this is that the top-level keys correspond to named parameters we pass # to each command method and so we underscore their names to help map the key to the named parameter. diff --git a/src/oci_cli/raw_request_cli.py b/src/oci_cli/raw_request_cli.py index 4c34512c8..b4583514c 100644 --- a/src/oci_cli/raw_request_cli.py +++ b/src/oci_cli/raw_request_cli.py @@ -5,7 +5,6 @@ import click import json import oci -import six.moves from oci_cli.cli_root import cli from oci_cli import cli_util @@ -46,7 +45,7 @@ def _make_raw_request(ctx, target_uri, http_method, request_body, request_header raise click.UsageError('The table output format is not supported with this command') if ctx.obj['debug']: - six.moves.http_client.HTTPConnection.debuglevel = 1 + http.client.HTTPConnection.debuglevel = 1 jmespath_expression = cli_util.get_jmespath_expression_from_context(ctx) diff --git a/tests/test_cli_setup.py b/tests/test_cli_setup.py index ac69feb20..d56f1e0f2 100644 --- a/tests/test_cli_setup.py +++ b/tests/test_cli_setup.py @@ -15,7 +15,6 @@ from io import StringIO import os import os.path -import six import stat import subprocess import sys @@ -640,17 +639,6 @@ def subtest_instance_principal_setup_invalid_inputs(self): @util.log_test def subtest_autocomplete_deny_bash_rc_access(self): - if oci_cli.cli_util.is_windows() and six.PY2: - print( - """ - Skipping subtest_autocomplete_deny_bash_rc_access on Windows without Python 3 as the CliRunner click offers for testing seems to use a StringIO - to back stdout, which throws an error when sys.stdout.encoding is called since there is no encoding attribute on a StringIO. - - Running manually on Windows with and without Python 3 both work, just this case breaks. - """ - ) - return - # fully testing the command would edit the machine's bash_profile / bash_rc # this test rejects the prompt to edit the bash_profile but provides a basic smoke test for the command result = self.invoke( diff --git a/tests/test_config_container.py b/tests/test_config_container.py index 667e87df8..c37716771 100644 --- a/tests/test_config_container.py +++ b/tests/test_config_container.py @@ -12,7 +12,6 @@ import logging import oci import os -import six import urllib.parse import vcr @@ -347,7 +346,7 @@ def vcr_body_matcher(r1, r2, match_request_json_object_values=False): # optionally replaces all values with empty strings so that we can compare only keys def normalize_json_request_bodies_for_comparison(obj, replace_all_values): if isinstance(obj, dict): - processed = {k: normalize_json_request_bodies_for_comparison(v, replace_all_values) for k, v in six.iteritems(obj) if k not in KEYS_TO_IGNORE_COMPARING_REQUEST_BODIES} + processed = {k: normalize_json_request_bodies_for_comparison(v, replace_all_values) for k, v in obj.items() if k not in KEYS_TO_IGNORE_COMPARING_REQUEST_BODIES} return processed if isinstance(obj, list): return [normalize_json_request_bodies_for_comparison(x, replace_all_values) for x in obj] diff --git a/tests/test_json_skeleton_command_coverage.py b/tests/test_json_skeleton_command_coverage.py index 5a33bae8a..eb5c2cb67 100644 --- a/tests/test_json_skeleton_command_coverage.py +++ b/tests/test_json_skeleton_command_coverage.py @@ -6,7 +6,6 @@ import click import json import oci_cli -import six import random import vcr import os @@ -154,7 +153,7 @@ def process_json_input(input, tmpdir): modified_input.pop('all', None) for key in modified_input: # if input is a Multiple choice option, this will extract a single choice from the choice list. - if isinstance(modified_input[key], list) and len(modified_input[key]) == 1 and isinstance(modified_input[key][0], six.string_types): + if isinstance(modified_input[key], list) and len(modified_input[key]) == 1 and isinstance(modified_input[key][0], str): first_val = str(modified_input[key][0]) if "|" in first_val: modified_input[key][0] = get_choice_from_choices(first_val) @@ -182,7 +181,7 @@ def get_choice_from_choices(choices): def _traverse_oci_cli(command, path, failed_commands, ignored_extended_commands): if hasattr(command, "commands"): - for name, command in six.iteritems(command.commands): + for name, command in command.commands.items(): _traverse_oci_cli(command, path + [name], failed_commands, ignored_extended_commands) else: if path not in ignored_commands.IGNORED_COMMANDS and path not in ignored_extended_commands: @@ -214,7 +213,7 @@ def teardown_module(module): def reset_prompt_in_group(click_group): - for cmd_name, cmd in six.iteritems(click_group): + for cmd_name, cmd in click_group.items(): if isinstance(cmd, click.Group): reset_prompt_in_group(cmd.commands) else: diff --git a/tests/test_root_options.py b/tests/test_root_options.py index 233759ae1..f97915376 100644 --- a/tests/test_root_options.py +++ b/tests/test_root_options.py @@ -5,7 +5,6 @@ import oci_cli import oci import os -import six.moves import traceback from mock import mock_open, patch from oci_cli.cli_constants import OCI_CONFIG_REQUIRED_VARS as config_required_vars @@ -388,7 +387,7 @@ def test_operation_retries_if_no_retry_not_supplied(config_file): # # This teardown explicitly does this so that we don't get debug output in other tests (which can cause failures) def teardown_module(module): - six.moves.http_client.HTTPConnection.debuglevel = 0 + http.client.HTTPConnection.debuglevel = 0 def invoke_example_operation(runner, root_args, config_file, command_input=None): diff --git a/tests/util.py b/tests/util.py index c823fba0e..a4756b09e 100644 --- a/tests/util.py +++ b/tests/util.py @@ -7,6 +7,7 @@ import collections.abc as abc import contextlib import functools +import io import json import os import random @@ -18,9 +19,7 @@ import oci import pytest -import six from oci.object_storage.transfer.constants import MEBIBYTE -from six import StringIO import oci_cli.cli_util from conftest import runner @@ -533,7 +532,7 @@ def _collect_commands(command, prefix=None, leaf_commands_only=False): if not leaf_commands_only: yield prefix, 0, 0 - for name, command in six.iteritems(subcommands): + for name, command in subcommands.items(): for path, params_count, req_params_count in \ _collect_commands(command, prefix + [name], leaf_commands_only=leaf_commands_only): yield path, params_count, req_params_count @@ -549,7 +548,7 @@ def collect_commands_with_given_args(command, include_args=[], match_mode='any', subcommands = getattr(command, "commands", {}) if subcommands: - for name, command in six.iteritems(subcommands): + for name, command in subcommands.items(): for path in collect_commands_with_given_args(command, include_args=include_args, match_mode=match_mode, prefix=prefix + [name]): yield path else: @@ -607,10 +606,10 @@ def check_json_key_format(json_data): """Ensure that all keys in the json data are in the correct format. The exceptions include metadata dictionaries and tags, which must reflect user input""" - if isinstance(json_data, six.string_types): + if isinstance(json_data, str): pass elif isinstance(json_data, abc.Mapping): - for key, value in six.iteritems(json_data): + for key, value in json_data.items(): if key not in SKIP_JSON_KEY_FORMAT_CHECK: assert "_" not in key assert key.islower() @@ -787,7 +786,7 @@ def vcr_mode_aware_sleep(duration): def capture(): oldout, olderr = sys.stdout, sys.stderr try: - out = [StringIO(), StringIO()] + out = [io.StringIO(), io.StringIO()] sys.stdout, sys.stderr = out yield out finally: